The CX310-035 (Sun Certified Programmer for Java 2 Platform 1.4) test checks your ability to use the basic syntax and structure of the Java programming language. This test requires you to have a good understanding of the Java language and the capability to write code for well-defined design applications. For this purpose, along with studying books and taking various practice tests, you should also practice with Java. While practicing with Java, you can learn a lot of things that are of great importance from the test point of view. The test asks all sorts of tricky questions that you might not consider in the real world. Practicing the following things with Java will make you confident enough of scoring well in the test:
- Write code that declares, constructs, and initializes arrays of any base type using any of the permitted forms both for declaration and for initialization.
- Write code using if and switch statements.
- Write code using all forms of loops including labeled and unlabeled, using break and continue statements.
- Write code that makes proper use of exceptions and exception handling clauses (try, catch, finally).
- Write code that makes proper use of assertions.
- Write code that explicitly makes objects eligible for garbage collection.
- Write code to invoke overridden or overloaded methods and parental or overloaded constructors.
- Write code to construct instances of any concrete class including normal top level classes and nested classes.
- Write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable.
- Write code using synchronized wait, notify, and notifyAll to protect against concurrent access problems and to communicate between threads.
- Write code using the abs, ceil, floor, max, min, random, round, sin, cos, tan, and sqrt methods of the java.lang.Math class.