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 does the “static” keyword mean?

0 Answers  


Does java support multiple inheritance or not?

0 Answers   Hexaware,


Can an integer be null java?

0 Answers  


What is autoboxing and unboxing?

0 Answers  


What is string intern in java?

0 Answers  






Objects or references which of them gets garbage collected?

0 Answers  


why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?

2 Answers   Global Logic, Satyam,


How to connect to a remote database using Applet?

0 Answers  


What will be the output of round(3.7) and ceil(3.7)?

0 Answers  


how to connect two diffrent applet files

0 Answers  


What is a variable analysis?

0 Answers  


What method is used to know the status of Checkbox(i.e it is checked or unchecked)?

1 Answers  


Categories