Click here - to get notifications. You can submit your resume for right Job
Welcome to www.InterviewDot.com
Can an interface be final ? Java Marker Interface ? Job Java Interview Questions
Can an interface be final ?
No,an interface cannot be final ,the compiler will have the following error.
Illegal modifier for the interface finalInterface; only public & abstract are permitted
What is a Marker Interface?
An interface which does not have any declaration inside but still enforces a mechanism.
Marker interface is used as a added to inform a message to the java compiler so that it can add special behavior to the class implementing it.
Examples :
java.io.Serializable
java.lang.Cloneable
java.util.EventListener
You can submit your resume for right Job
You can submit your resume for right Job