If there is no implementation of MARKER INTERFACE in java.
Then how compiler come to know about specification.

Answers were Sorted based on User's Feedback



If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about sp..

Answer / kamlesh yadav

Implementing a java Class with the help of Marker Interface
will inform compiler about specification.

Is This Answer Correct ?    6 Yes 2 No

If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about sp..

Answer / vijayakumar chinnasamy

Every marker interface has some specific functionality and
no methods in that interface.

Ex:
Searializable - Persistent purpose
Clonnable - for cloning the object
SingleThreadedModel - only one object can be create.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is it possible to instantiate the abstract class?

0 Answers  


java is puerly object oriented or not ?

5 Answers  


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

0 Answers  


How do you check if an arraylist is not empty?

0 Answers  


How to convert string to byte array and vice versa?

0 Answers  






Why we use multi threading instead of multiprocessing?

0 Answers  


Can a class have multiple constructors?

0 Answers  


Are arrays immutable in java?

0 Answers  


What is the independent variable in an experiment?

0 Answers  


What is difference between array and vector?

0 Answers  


What is difference between float and double?

0 Answers  


What’s the difference between applets and standalone program?

0 Answers  


Categories