Q. 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.
  • (D) It makes the variable constant.
πŸ’¬ Discuss
βœ… Correct Answer: (C) It allows access from any class.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
116
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
97%
Success Rate