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
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is unicode used for?
What is a nested class?
How can you generate random numbers in java?
How many types of operators are there?
Explain about serializable interface in java?
What is meant by inheritance and what are its advantages?
What is a boolean field?
How do you check if a string is lexicographically in java?
What is strings in java?
What are anonymous inner classes?
I want to print “hello” even before main is executed. How will you acheive that?
Can inner class extend any class?
What is the disadvantage of synchronization?
Why hashmap is used in java?