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

What is a copy constructor in java?

0 Answers   Amazon,


Why non nested classes in java are not having marked as protected access specifier

2 Answers   Google,


What is javac in java?

0 Answers  


Where is core java used?

0 Answers  


When we will use an Interface and Abstract class?

9 Answers  


What is the purpose of the main method?

0 Answers  


What are the differences between heap and stack memory in java?

0 Answers  


how to deploy tomcatserver to weblogic server? write d following steps?

0 Answers  


What is an interface in java?

0 Answers  


What are 3 data types?

0 Answers  


What is the difference between an interface and an abstract class?

0 Answers   Cyient,


what is use of session tracking ?with example?

1 Answers   Photon,


Categories