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 |
What does the “static” keyword mean?
Can a constructor call another constructor?
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?
What does a boolean method return?
Explain restrictions on using enum?
There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation
What is stack explain?
What is the numeric promotion?
What is Vector?Can you elaborate how Vector is Thread safe?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Can multiple catch statements be used in exceptions ?
What are basic data types?