class Impossible {
public Impossible() {
throw new AssertionError("you cannot instantiate me");
}
public void foo() {
System.out.println("The impossible is possible!");
}
}
http://blog.publicobject.com/2010/04/java-objects-back-from-dead.html
Please visit the link to find the answer. It's very nice
Arun
Friday, April 16, 2010
Java Objects from dead very nice java snippet
Challenge: can you write code that invokes foo()?
Subscribe to:
Comments (Atom)