Q. Identify the correct restriction on static methods.

1. They must access only static data
2. They can only call other static methods.
3. They cannot refer to this or super.

  • (A) 1 and 2
  • (B) 2 and 3
  • (C) Only 3
  • (D) 1, 2 and 3
πŸ’¬ Discuss
βœ… Correct Answer: (D) 1, 2 and 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
982
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Chandrakant
Publisher
πŸ“ˆ
91%
Success Rate