Q. In Java, what is the purpose of the final keyword when applied to a class?

  • (A) It makes the class non-final.
  • (B) It prevents subclassing.
  • (C) It makes the class constant.
  • (D) It makes the class abstract.
πŸ’¬ Discuss
βœ… Correct Answer: (B) It prevents subclassing.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
95%
Success Rate