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 there a way to increase the size of an array after its declaration?

0 Answers  


What is immutability in java?

0 Answers  


Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.

2 Answers  


why the primitive data type have classes?

4 Answers  


What is the properties class?

0 Answers  






What is the SimpleTimeZone class?

0 Answers  


Is passing by reference faster?

0 Answers  


I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

0 Answers  


What is comparator in java?

0 Answers  


Is set ordered in java?

0 Answers  


Differentiate between class and structure.

0 Answers   Amdocs, Motorola,


What are the uses of java?

0 Answers  


Categories