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

Hi can u pls tell me what is the use of marker interface.
Iknow what is marker interface but what ability will the
object get by implementing this.

Answer Posted / sudheer

The interfaces with no defined methods act like markers. They just tell the compiler that the objects of the classes
implementing the interfaces with no defined methods need to be treated differently.
Example Serializable, clonable etc.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You're given a Boolean 2D matrix, can you find the number of islands?

1111


What is a class in java?

1012


What is Major and importance difference between for and foreach loop ?

1154


How objects are stored in java?

1034


Is array dynamic in java?

936


What is appletviewer?

1037


How many types of methods are there?

1061


What are the different types of sorting in java?

980


What are multiple inheritances? Is it supported by java?

952


What is abstract class constructor called?

1004


How do you create a reference in java?

982


What does \ mean in regex?

1223


What happens if we don’t define serial version uid?

1028


What is the difference between I ++ and ++ I in java?

982


How does a cookie work in Servlets?

845