How is final different from finally and finalize()?
Answer:
-Final - constant declaration.
-The finally block always executes when the try block exits, except System.exit(0) call.
-finalize() is a method of Object class which will be executed by the JVM just before garbage collecting object to give a final chance for resource releasing activity.
Share To Friends Via:
More Questions For Programming in Java:
What is Java? (Answered) What is Java? . Posted On:Sat 20, March 2021 20:03:42 pm