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


How can be define MARKER interfce in java



How can be define MARKER interfce in java..

Answer / ravinder

MARKER INTERFACE or TAGGED INTERFACE ARE GIVING SOME SORT
OF INFORMATION ABOUT THAT PARTICULAR OBJECT and it will
giving some marker abt thae object

Generally a interface witout methods are called are
marker/tagged interface..(but this is not corect)

Ex:
clonable,runnable,comparable,serializable


A inrefaces with some ability are ex of marker interface

1)in comparable interface,
one method compare() will be there.......>
.....



ex:
interface Good{}....>gives some infor.abt obj called as it
is good

interface Bad{}

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More Core Java Interview Questions

What is treeset in java?

0 Answers  


What about interrupt() method of thread class ?

0 Answers  


How do you empty a list in java?

0 Answers  


What is bean? Where it can be used?

0 Answers  


What is a variable in java?

0 Answers  


What is the main advantage of passing argument by reference?

0 Answers  


What is temp in java?

0 Answers  


What is the difference between throw and throws? What is the similarity between try and throw?

2 Answers  


What is constructor chaining and how is it achieved in java?

0 Answers  


What are the common problems you have faced while implementing Java?

1 Answers   IBM,


What does compareto () do in java?

0 Answers  


Differences between C and Java?

0 Answers   TCS,


Categories