Vidyalelo
Java Programming · Q13

Declaration and Access Control

Programming · Java Programming · question 13

Q13

In Java, what is the purpose of the static keyword when applied to a variable?

A.
It makes the variable non-static.
B.
It initializes the variable.
C.
It allows access from any class.
Answer
D.
It makes the variable constant.

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board