why marker interfaces are there in java
Answer Posted / srinu
when class implements marker interface our class object
getting special behavoiur.
EX:-
suppose our class implements java.lang.Serializible
interface our class object getting special behaviour(our
class object converting java support format object to
network support)
Another Example our class implements java.rmi.Remote
interface our class object acts as Remote object.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is the constructor and how many types of constructors are used in java?
What does sprintf mean?
What does the string method compareto () do?
Can we declare a class as abstract without having any abstract method?
Is it possible to compare various strings with the help of == operator?
Can we define private and protected modifiers for variables in interfaces?
What do you mean by compiler?
How do you sort a string in alphabetical order in java?
What is the this keyword?
Is null keyword in java?
What is the ==?
What is functional interface in java example?
How does sublist works in java?
Explain public static void main(string args[]).
What do you mean by platform independence? What is an interface?