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

What is better- service oriented or batch oriented solutions?

2195


Can a class be defined inside an interface?

1013


How to find the largest value from the given array.

998


What are dot operator queries?

1093


What is ascii code?

1231


Is null or empty java?

966


What is advantage of java?

998


Why singleton pattern is better than creating singleton class with static instance?

986


How do I enable java in safari?

1011


How would you use Bubble Sort to sort the number of elements?

990


Why do we declare a class static?

1120


How many threads can java run?

1094


Is math class static in java?

1095


What are the uses of synchronized keyword?

986


What is the difference between the paint() and repaint() methods in java programming?

1165