DEV Community

Saravanan B
Saravanan B

Posted on

Core Java - Final & Marker Interface

Final
If a class is marked as final, we cannot extend the class.
If a variable is marked as final, we cannot change the value of it.
If a method is marked as final, we cannot override it.

An a marker interface is interface which has no method by using we are telling jvm to perform some actions.
Serializable cloneable.

Top comments (0)