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

What is Marker interface in java? and what is clone?

Answer Posted / kavya

Use of marker interface in java

Marker Interfaces are used to indicate something to compiler/JVM. If JVM see that a class is a object of Marker Interface then it will perform some special operation. Take an example with Serializable, Clonnable marker interface, if JVM see a Class is Serialized/Clonnable then It will do some special operation on it, similar way if JVM sees one Class is implemented custom marker interface which is created by ourself then the JVM do some special operation. How it’d do the special operation

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a boolean be null java?

927


Write a program to calculate factorial in java?

962


What is t in parametric equations?

950


What is communist flag?

974


Why do people says “java is robust”?

961


Which is illegal identifier in java?

1028


What are internal variables?

945


Is a string literal?

1018


What is indexof?

925


What are three advantages of using functions?

967


How are multiple inheritances done in Java?

1100


What data type is true or false?

1000


What is data type in java?

871


Why do we need data serialization?

934


How do I write a self declaration?

1029