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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the disadvantage of synchronization?

1008


How to sort a collection of custom Objects in Java?

1056


Define "Access specifiers" in java.

1166


What is passing by reference in java?

1015


Which is bigger double or float?

966


How do you print array in java?

987


explain different ways of using thread? : Java thread

1009


Give the hierarchy of inputstream and outputstream classes.

1098


Which list does not allow duplicates in java?

936


What is temp in java?

995


Is java 1.7 the same as java 7?

1042


Which is faster string or stringbuilder?

922


What is the difference between the font and fontmetrics classes in java programming?

1140


Does list allow duplicates in java?

928


What is the advantage of preparedstatement over statement?

1103