NullStaticMethodpublic class NullStaticMethod extends Object Test if you can use a null reference to find a static method. |
Methods Summary |
---|
public static void | main(java.lang.String[] argv)
System.out.println("XXX ");
NullStaticMethod2 x = null;
x.invoke(); // EXPECT COMPILE WARNING
|
|