Want to write articles/new answer to be published in javapedia.net? Send in your article with your name to javatutorials2016@gmail.com!

Prev Next

Java / final keyword

What is the use of the final keyword in Java?

The final keyword can be used with a class, method, and variables.

With class, it prevents inheritance by not allowing to create subclasses.

With methods, it prevents overriding, you cannot override a final method in Java.

With variable, it is treated as constant because you cannot change their value once assigned.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

static keyword

Comments & Discussions