Which of the following statements are incorrect?
A. static methods can call other static methods only.
B. static methods must only access static data.
C. static methods can not refer to this or super in any way.
D. when object of class is declared, each object contains its own copy of static variables.
Answer:A
Which of the following statements are incorrect?
A. static methods can call other static methods only. B. static methods must only access static data. C. static methods can not refer to this or super in any way. D. when object of class is declared, each object contains its own copy of static variables.
Explanation: All objects of class share same static variable, when object of a class are declared, all the objects share same copy of static members, no copy of static variables are made.