why marker interfaces are there in java

Answer Posted / srinu

when class implements marker interface our class object
getting special behavoiur.
EX:-
suppose our class implements java.lang.Serializible
interface our class object getting special behaviour(our
class object converting java support format object to
network support)

Another Example our class implements java.rmi.Remote
interface our class object acts as Remote object.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types supported by java? What is autoboxing and unboxing?

770


Are arrays primitive data types?

856


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

2214


Explain public static void main(string args[]).

862


What is the use of generics? When was it added to the Java development Kit?

769


I don’t want my class to be inherited by any other class. What should I do?

801


What is slash r?

763


What are the four corner stones of oop?

788


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3427


How will you get the platform dependent values like line separator, path separator, etc., ?

796


What is compareto?

747


How to perform linear search in java?

757


Is a boolean variable?

737


What's the base class of all exception classes?

795


What is meant by interface?

792