how is final different from finally and finalize


How is final different from finally and finalize ()?

Final is a modifier which can be applied to a class or a method or a variable. final class can't be inherited, final method can't be overridden and final variable can't be altered.

Finally is an exception handling code section which gets implemented whether an exception is raised or not by the try block code segment.

Finalize() is a method of Object class which will be implemented by the JVM just before garbage collecting object to give a final chance for resource releasing activity.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Networking: how is final different from finally and finalize
Reference No:- TGS0310908

Expected delivery within 24 Hours