If there is no implementation of MARKER INTERFACE in java.
Then how compiler come to know about specification.
Answers were Sorted based on User's Feedback
Answer / kamlesh yadav
Implementing a java Class with the help of Marker Interface
will inform compiler about specification.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / vijayakumar chinnasamy
Every marker interface has some specific functionality and
no methods in that interface.
Ex:
Searializable - Persistent purpose
Clonnable - for cloning the object
SingleThreadedModel - only one object can be create.
| Is This Answer Correct ? | 1 Yes | 0 No |
i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????
Can interface be private in java?
What are parsing rules?
What are different types of Exceptions?.
What are multiple inheritances?
What is the reason that multiple inheritance is not possible in java??
What is the difference between actual and formal parameters?
Explain the difference between transient and volatile in java?
Program to find greatest prime number in n numbers?
How do you convert int to char in java?
Name the types of 'priority'?