why marker interfaces are there in java
Answer Posted / siva kumar g
Marker interfaces can create an environment.
Marker interfaces are used to specify that a class belongs
to a logical family or grouping - as quoted above,
Cloneable is used to indicate that a particular class can
be cloned, or Serializable is used to indicate that a
particular class can be serialized.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
explain the difference between jdk and jvm?
Why local variables are stored in stack?
How do you compare two objects?
Explain the difference between treeset and treemap in java?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Is ruby built on java?
How do generics work in java?
How to create an interface?
What is externalizable interface?
What is an object’s lock and which object’s have locks?
Can we execute java program without main method?
When is the finally clause of a try-catch-finally statement executed?
Can we catch more than one exception in single catch block?
What is the function of character?
Discuss different types of errors that generally occur while programming.