

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Final class in Java
The main purpose of using a class being declared as final is to prevent the class from being subclassed. If a class is marked as final then no class can inherit any feature from the final class.
public final class Test { // body of class }
- Related Questions & Answers
- Why Final Class used in Java?
- Make a class final in Java
- Can a final class be subclassed in Java?
- Explain final class and final method in PHP.
- Simulating final class in C++
- Why String class is immutable or final in Java?
- Can a class in Java be both final and abstract?
- final keyword in Java
- Final variable in Java
- Blank final in Java
- Final Arrays in Java
- final variables in Java
- What happens if we try to extend a final class in java?
- Can a method local inner class access the local final variables in Java?
- Why can't a Java class be both abstract and final?
Advertisements