Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.
A. static
B. final
C. abstract
D. native
E. volatile
Answer: Option A
Join The Discussion
Comments ( 1 )
Related Questions on Declaration and Access Control
What is the default access modifier for class members in Java if no access modifier is specified?
A. public
B. protected
C. private
D. package-private
A. private
B. public
C. protected
D. package-private
What keyword is used to declare a constant in Java, which is implicitly final and static?
A. final
B. const
C. static
D. constant
A. protected
B. private
C. public
D. default
static is a keyword used near the class but not inside the method which holds the state during the method calls also