public class Test {
public static void method(){ System.out.println("Called"); }
public static void main(String[] args) {
Test t4 = null;
t4.method();
}
}
what will be output of this?
No NullPointer Exception : Static methods and variables use class reference to get invoked.
(not the object even it is initialized) (parsing time search)
Tyre Expiry and Tyre Safety
15 years ago