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
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 |
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 |
Answer / olok
compiler treat this type of interface differently.
eg coloneable,serializable
| Is This Answer Correct ? | 1 Yes | 3 No |
Can static methods be inherited?
What is the set interface in java programming?
Does garbage collection guarantee that a program will not run out of memory?
Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target
What is the meaning of find and replace?
What is an object’s lock and which object’s have locks?
What is the difference between parameters and arguments ?
What is the main functionality of the remote reference layer?
Can final class have constructor?
An inner class can actually be a subclass of the outer class? a. true b. false
What is anti pattern in programming?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?