what is marker interface ? what is the necessity of it?
Answer Posted / sandeep
An interface that contains no methods. Eg: Serializable,
Cloneable, SingleThreadModel etc. It is used to just mark
java classes that support certain capability.
Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
What’s the difference between the methods sleep() and wait()?
What do you mean by platform independence?
What 4 doubled?
Why do people says “java is robust”?
What is the advantage of OOP in java?
What are methods in java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is operator overloading. Is it is supported in java?
Can we have two main methods in a java class?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What is a boolean structure?
How does enum work in java?
What is difference between path and classpath in java?
What are the disadvantages of object oriented programming?
What does microservices mean?