Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| |||||||||||
Core Java - Interview Questions and Answers for 'Marker interface' - 6 question(s) found - Order By Newest | |||||||||||
Very frequently asked in phone and walk in interviews. | |||||||||||
| |||||||||||
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 | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   oops   interfaces   marker interface   serializable   clonable Asked in 21 Companies intermediate   frequent | |||||||||||
Try 1 Question(s) Test | |||||||||||
| |||||||||||
Ans. Serializable is a marker interface whereas externalizable is not. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   oops   serialization   externalizable   interface   marker interface | |||||||||||
| |||||||||||
This question was recently asked at 'GGK Technologies'.This question is still unanswered. Can you please provide an answer. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  marker interfaces  interfaces Asked in 1 Companies expert   rare | |||||||||||
| |||||||||||
Ans. No , it has run method declared. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   oops   interfaces   marker interface   runnable   yes-no | |||||||||||
| |||||||||||
Ans. They just tell the compiler that the objects of the classes implementing the interfaces with no defined methods need to be treated differently. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   interfaces   marker interfaces   clonable   serializable basic   frequent | |||||||||||
| |||||||||||
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. | |||||||||||
Help us improve. Please let us know the company, where you were asked this question : | |||||||||||
Like Discuss Correct / Improve  java   oops   cloneable   marker interface  cloning Asked in 2 Companies | |||||||||||
| |||||||||||