Home » JAVA Programming » Arrays » Question
  1. Which of the following statements are incorrect?
    1. static methods must only access static data
    2. when object of class is declared, each object contains its own copy of static variables
    3. static methods can call other static methods only
    4. static methods can not refer to this or super in any way
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.