Java Reference
In-Depth Information
< Day Day Up >
Puzzle 54: Null and Void
Here is yet another variant on the classic Hello World program. What does this one do?
public class Null {
public static void greet() {
System.out.println("Hello world!");
}
public static void main(String[] args) {
((Null) null).greet();
}
}
Solution 54: Null and Void
 
 
Search WWH ::




Custom Search