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 ? what is the necessity of it?

Answers were Sorted based on User's Feedback



what is marker interface ? what is the necessity of it?..

Answer / sandeep

An interface that contains no methods. Eg: Serializable,
Cloneable, SingleThreadModel etc. It is used to just mark
java classes that support certain capability.

Is This Answer Correct ?    24 Yes 3 No

what is marker interface ? what is the necessity of it?..

Answer / ganesh reddy

markble interface does not contains any methods,but
implementing of these interfaces will be recognise by Jvm
then it will decide that "this class is going do
something".for example for cloneable interface implements
by some class x which consists of a,b variable ,But I need
to interchange instance variables a to b and b to a (pass
by value)of class x and i want again the same values for a
and b.At this situations we can implement cloneable
interface.Like this markble interface are very useful as my
knowledge........

Is This Answer Correct ?    4 Yes 0 No

what is marker interface ? what is the necessity of it?..

Answer / tulasi prasad

this is one type on null interface, it doesn't contain any
methods

Is This Answer Correct ?    3 Yes 1 No

what is marker interface ? what is the necessity of it?..

Answer / prasanna sahu, munnekolal

Marker interface is an interface which gives a mark to the
runtime environment. This gives a mark that "I am going to
happen". It contains no methods.

Is This Answer Correct ?    2 Yes 1 No

what is marker interface ? what is the necessity of it?..

Answer / javaexp

<a
href="http://www.javaexperience.com/java-marker-interfaces/">Marker
interfaces in Java</a> are used for marking a specific
behavior and we can only simulate the behavior by writing
custom interfaces without any methods and having
implementing them by other classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do listeners work?

0 Answers  


Explain different types of thread priorities ?

0 Answers  


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

0 Answers  


Explain spliterator in java8?

0 Answers  


what are the differences between java and .net?..why u choose java?

1 Answers  


I dont want to use serialzable in java is there any another concept so plz tell me

3 Answers   WDC,


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

0 Answers  


What is the use of anonymous inner classes ?

12 Answers   DELL, HCL,


What are the benefits of operations in java?

0 Answers  


Define an applet in java?

0 Answers  


what is java

10 Answers  


Whats the difference between notify() and notifyall()?

0 Answers  


Categories