what is marker interface ? what is the necessity of it?

Answer Posted / javaexp

<a
href="http://www.javaexperience.com/java-marker-interfaces/">Marker
interfaces in Java</a> are used for marking a specific
behavior and we can only simulate the behavior by writing
custom interfaces without any methods and having
implementing them by other classes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a static class implement an interface?

541


why would you use a synchronized block vs. Synchronized method? : Java thread

528


What do u mean by variable?

559


What is toarray method in java?

550


What is the difference between variable & constant?

536






What are exceptions

635


What is parameters example?

543


how can i use a nonsynchronized hashtable?

2094


What is serial version uid and its importance in java?

593


Explain java thread life cycle.

576


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

522


What is difference between jdk,jre and jvm?

557


Give a practical example of singleton class usage?

581


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2126


What are three types of loops in java?

577