Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| |||||||||||
| Core Java - Interview Questions and Answers for 'Marker interface' - 6 question(s) found - Order By Newest | |||||||||||
| |||||||||||
| Ans. An interface without any method declaration is called as marker interface. there are 3 in-built interfaces in JVM i.e. serializable, clonable, remote | |||||||||||
| Ans. Serializable is a marker interface whereas externalizable is not. | |||||||||||
| |||||||||||
| |||||||||||
| Ans. No , it has run method declared. | |||||||||||
| Ans. They just tell the compiler that the objects of the classes implementing the interfaces with no defined methods need to be treated differently. | |||||||||||
| |||||||||||
| Ans. Cloneable is a declaration that the class implementing it allows cloning or bitwise copy of it's object state. It is not having any method because it is a MARKER interface. | |||||||||||
| |||||||||||