what is marker interface ? what is the necessity of it?

Answer Posted / prasanna sahu, munnekolal

Marker interface is an interface which gives a mark to the
runtime environment. This gives a mark that "I am going to
happen". It contains no methods.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to obtain a performance profile of java program

538


What data type is true or false?

567


Why destructor is not used in java?

510


What is constructor chaining and how is it achieved in java?

564


What is the type of lambda expression?

533






What is a singleton puppy?

520


what is interface in java? Explain

524


I want to persist data of objects for later use. What is the best approach to do so?

587


Which variables are stored in stack?

441


Can we extend private class in java?

540


Differentiate between a class and an object.

556


How many types of array are there?

541


What is the loop in java?

564


What is an object's lock and which object's have locks in java programming?

561


What do you mean by aggregation?

561