What is the purpose of the "static" keyword in Java?
A. To create a new object.
B. To access an instance variable.
C. To declare a variable or method that belongs to the class, rather than to instances of the class.
D. None of the above.
Answer:C
What is the purpose of the "static" keyword in Java?
A. To create a new object. B. To access an instance variable. C. To declare a variable or method that belongs to the class, rather than to instances of the class. D. None of the above.