Q. Which of the following is not a keyword in Java.

  • (A) assert
  • (B) boolean
  • (C) abstract
  • (D) finalize
πŸ’¬ Discuss
βœ… Correct Answer: (D) finalize
Explanation: Final class can't be inherited, final method can't be overridden and final variable value can't be changed. Finally is used to place important code, it will be executed whether exception is handled or not. Finalize is used to perform clean up processing just before object is garbage collected.
Explanation by: Yatendra Sir
Final class can't be inherited, final method can't be overridden and final variable value can't be changed. Finally is used to place important code, it will be executed whether exception is handled or not. Finalize is used to perform clean up processing just before object is garbage collected.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
251
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Yatendra Sir
Publisher
πŸ“ˆ
82%
Success Rate