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,AND NO METHODS IS NOT THERE ON THAT
INTERFACE THEN WHY WE USED IN JAVA?

Answers were Sorted based on User's Feedback



WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?..

Answer / ravi

Interfaces without any methos or constants are known as
Marker interface.They are used only to mark or tag a
class.it indicates that class supports that functionality.

Is This Answer Correct ?    7 Yes 0 No

WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?..

Answer / rameshreddy

it is in depth concept. The compiler developer internally
developed like that, Through that markinterface only(tag
interface) ,compiler identifies its internal functinality

Is This Answer Correct ?    1 Yes 2 No

WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?..

Answer / olok

compiler treat this type of interface differently.
eg coloneable,serializable

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

Can constructor be static or final?

0 Answers  


What is the method to declare member of a class static?

0 Answers   HCL,


what is meant by abstract class?

0 Answers   Aspire,


What are predicates in java 8?

0 Answers  


What is integer valueof?

0 Answers  


What is the difference between the continue and break statement?

2 Answers  


what is the difference between yielding and sleeping? : Java thread

0 Answers  


How to make object serializable in java?

0 Answers  


How can you add and remove nodes in jtree?

0 Answers  


How to perform merge sort in java?

0 Answers  


What is appletviewer?

0 Answers  


In java how do we copy objects?

0 Answers  


Categories