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 / ajay tiwari

Marker interfaces are those interface which may contain any
method but they provide some special information to the JVM
about what type of class or object it can be.

EX. Cloneable is a marker interface with no method which
means but it provide information to the JVM that class's
object who implement it can be cloned.

Runnable is also a marker interface with a run() method
which provide the information to the JVM that class's
object which implement this is used as a thread.

while the collection interface doesn't provide any special
information to the JVM that's why it is not as a Marker
interface

Is This Answer Correct ?    33 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anonymous inner class?

1047


What is the maximum length of a url?

906


What are the two categories of data types in the java programming language?

947


What is nextline method in java?

991


What is arrays aslist in java?

935


why would you use a synchronized block vs. Synchronized method? : Java thread

922


Can we override protected method in java?

1011


How does java enable high performance?

1110


how are methods defined?

1009


What are variable arguments or varargs?

972


Explain the differences between abstraction and encapsulation?

1018


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1044


How to pass arraylist to stored procedure in java?

1088


Can you give names of Container classes?

2272


What are the different conditional statements?

951