final vs finally vs finalize in java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Though final, finally and finalize in Java may look similar by there name, they are not related to each other in any way. final keyword is a modifier,

Statistics

  • Total Hits - 36428

  • Total Votes - 216 votes

  • Vote Up - 99 votes

  • Vote Down - 117 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2013-05-17 12:51:05

Description

Though final, finally and finalize in Java may look similar by there name, they are not related to each other in any way. final keyword is a modifier, which means different things if used among class, variable and methods. Similarly finally is used in exception handling, while finalizer is a method, which gets called when garbage collector collects objects. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements