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 |
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.
Which method will get invoked first in a stand alone application?
what is d difference between deep cloning and shallow cloning in core java?
What is reverse function?
Why vector is used in java?
How can two threads be made to communicate with each other?
What is communist flag?
What is an anonymous class?
How does map works in java?
Explain the meaning of java applet.
What is difference between hash mapping and hash table?
Can you make a constructor final?