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...

how a marker interface gets its functionality and when we
implements a marker interface how it got invoked

Answer Posted / somasundar m

Marker interface are a design pattern which is used to mark
the classes for doing some specific actions. Marker
interface are just to mark the classes. For example
Serializable is a marker interface. So jvm looks for the
classes which are marked as serializable to serialize the
objects. It tells the compiler that the marked items
should be treated differently. Since it is a older design
pattern. Now a days Annotations has been introduced, so we
can replace the usage of marker interface with annotations.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can final class have constructor?

971


What is the difference between object oriented programming language and object based programming language?

1063


What is the finalize method do?

1153


Difference between Linked list and Queue?

1083


How will you invoke any external process in java?

1169


Can private class be inherited in java?

1088


When is the garbage collection used in Java?

1262


how can you catch multiple exceptions in java?

1067


What is dot operator?

1094


What is singleton class and how can we make a class singleton?

1155


What is loop in java?

1053


How will you add panel to a frame?

1165


How can you write a loop indefinitely in java programming?

1072


can java object be locked down for exclusive use by a given thread? : Java thread

1155


What are computer functions?

997