Can I create any Marker Interface? If yes then how can I
use it???
Answers were Sorted based on User's Feedback
Answer / amit singh
there is no difference between blank inerface and marker
interface
yes we can creae our own marker inerface
interface Xyz
{
}
but is this work for us like a serializable and cloneable
marker inerface
i don't know so please
you do one thing to do your own interface to check only
through the insanceof operator in a clsses those implemen
this interface
thanks amit singh
amitsing2008@gmail.com
| Is This Answer Correct ? | 9 Yes | 4 No |
Answer / naveen
Yes, we can create Marker interface, But no use of this type
of interfaces, y because all marker interfaces have contain
special meaning in JVM. But our created marker interface
have no meaning in JVM.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / diya
public class abc implements Serializable
{
write your own logic
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / rama
In my view we can not create marker interfaces. with out defining an interface how will u implement it.serealizble have some predefined methods so called marker interface
| Is This Answer Correct ? | 1 Yes | 8 No |
What is a Wrapper class?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is the main functionality of the remote reference layer?
why java does compile time polymorphism at run time ?
Explain the available thread states in a high-level?
What happens when a thread cannot acquire a lock on an object in java programming?
how to identify duplicate values in arraylist
What is the constructor?
What is the access scope of a protected method?
Write code of any action class?
What is the purpose of a default constructor?
Is there any sort function in java?