Question 54 from JvalTest:
Which of the following is true about static modifier.
A. static can be applied to : instance variables, methods, code Segments and classes
B. a static method cannot be overridden.
C. inner classes can be both static & private.
D. a static reference cannot be made through non static method or code block
E. abstract & static both can be applied together to a method.
Correct Answer is B, C and D.
But I think the correct answer is A, B, C and E.
A is correct because applying static to an instance variables make it become static variables and there's static method, static initializer block and nested class.
D is wrong because you can always refer to a static variables from an instance method.
E is correct because interface method is of public, static, abstract
Correct me If I am wrong.