I dunno! I tried the following and got compile error:
public class Q21 {
public void aMethod(){
Q21 newQ21;
System.out.println( newQ21 ); // Variable newQ21 may not have been initaialized.
}
public static void main(String[] args) {
Q21 anotherQ21 = new Q21();
anotherQ21.aMethod();
}
}
Soo...According to the code above you must use the [ new ] statement to compile the code. andyou will get something like this
// Q21@73d65a5
------------------
Preparing for the
Java 2 Certification exam