What is Marker interface in java? and what is clone?
Answer Posted / kavya
Use of marker interface in java
Marker Interfaces are used to indicate something to compiler/JVM. If JVM see that a class is a object of Marker Interface then it will perform some special operation. Take an example with Serializable, Clonnable marker interface, if JVM see a Class is Serialized/Clonnable then It will do some special operation on it, similar way if JVM sees one Class is implemented custom marker interface which is created by ourself then the JVM do some special operation. How it’d do the special operation
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why java is platform independent? Explain.
What are the four corner stones of oop?
Difference between static synchronization vs. Instance synchronization?
What is java and why do we need it? Explain
What does it mean that strings are immutable?
What is a double vs float?
What is difference overloading and overriding?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What are the different tags provided in jstl?
Explain the difference between jvm and jre?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is the purpose of methodology?
What does arrays sort do in java?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
What is data object example?