What is Marker interface in java? and what is clone?
Answer Posted / sai
Marker Interface is a interface which does not have methods
and also one more point is that it makes the method to
execute compulsory.Example Runnable Interface we call it as
a Marker Interface but as per the First Point it should not
be a Marker Interface but it contains a run() and when u r
extending the Thread Class it is making u to execute run()
Indirectly.
So my dear friends when u r argue abt some topic plz be
clear with it and then argue.
| Is This Answer Correct ? | 16 Yes | 32 No |
Post New Answer View All Answers
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is the purpose of a transient variable?
In java, how we can disallow serialization of variables?
Can you create an object of an abstract class?
If two threads have same priority which thread will be executed first ?
Does variable declaration allocate memory?
What is the difference between member variables initialization and assignment in a constructor?
What is the difference between assignment and initialization?
What are filterstreams?
What is the use of static methods?
Why string is a class?
What is the difference between yield() and sleep()?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Why parameters should be passed by reference?
What do you mean by hashing?