Java Reference
In-Depth Information
Given:
public class Operation {
public static void main(String[] arguments) {
int x = 1;
int y = 3;
if ((x != 1) && (y++ == 3))
y = y + 2;
}
}
What is the final value of y ?
a. 3
b. 4
c. 5
d. 6
The answer is available on the topic's website at http://www.java21days.com. Visit the
Day 20 page and click the Certification Practice link.
Exercises
To extend your knowledge of the subjects covered today, try the following exercises:
1. The programming site Advogato offers an XML-RPC interface to read member
diaries at http://www.advogato.org/xmlrpc.html. Write an application that reads a
member's last 10 diary entries.
2. The XML-RPC interface for the weblog update service Weblogs.Com is at
http://www.weblogs.com/api.html. Write a client and server that can send and
receive the weblogUpdates.ping method.
20
Where applicable, exercise solutions are offered on the topic's website at http://www.
java21days.com.
 
Search WWH ::




Custom Search