Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Hi can u pls tell me what is the use of marker interface.
Iknow what is marker interface but what ability will the
object get by implementing this.

Answers were Sorted based on User's Feedback



Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what a..

Answer / guest

Marker interface plays vital role even though it doesn't
contain any methods.The main purpose is to identify the
special objects from normal objects for example if you want
to serialize an object then how you will inform to the JVM
to serialize the particular object because there may be so
many objects available in JVM. In order to know which object
is to be serialized marker interfaces are used. When you
implement a marker interface the object will be tagged with
boolean property with that property JVM knows which object
should be serialized and which object should not be serialized.

Is This Answer Correct ?    3 Yes 0 No

Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what a..

Answer / sudheer

The interfaces with no defined methods act like markers. They just tell the compiler that the objects of the classes
implementing the interfaces with no defined methods need to be treated differently.
Example Serializable, clonable etc.

Is This Answer Correct ?    1 Yes 0 No

Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what a..

Answer / sowmya sreenivasan

Marker Interface is also called Tagging interface which are used as a boolean property of a class but actually doesnt require implementation of any methods.
eg:java.io.serializable interface.
The objects of the class implementing this interface are serializable objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is main in java?

0 Answers  


what is check p object in java

1 Answers   TCS,


What is meant by Java interpreter?

4 Answers  


write a program to create an vector with string(add,remove) operation.and value should be enter through keyboard.

0 Answers   Axcend,


What Is Query Throttling in java?

0 Answers   HCL,


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

0 Answers  


How do you execute a thread in java?

0 Answers  


What is the major difference between linkedlist and arraylist?

0 Answers  


What is indexof?

0 Answers  


Can we use return in constructor?

0 Answers  


What is the difference between error and an exception?

0 Answers  


What is fail fast in java?

0 Answers  


Categories