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

Can we extend private class in java?

1026


Why do we need variables?

1036


Can an unreferenced object be referenced again?

1246


How many bytes is a string in java?

1040


What is the use of accept () method in java?

1136


Which browsers work with java?

1119


What is final method?

1119


What is the difference between post and put?

1134


What are the two types of java programming?

1112


How does map works in java?

1050


Is java call by value?

1137


Why string is immutable or final in java

1141


What is an infinite loop? How infinite loop is declared?

1172


What do you understand by private, protected and public?

1092


How can I right-justify a string?

1256