what is use of marker interface? give me good example?

Answer Posted / devendra.m

Marker interface is a interface,in which that,it doesn't
have any methods...just which is giving mark to the run time
environment.
clonable,serializable,singleThreadModel are marker interfaces.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is user defined exception in Java?

607


Define an enumeration?

609


What is null object in java?

567


Does treeset use compareto?

534


What things should be kept in mind while creating your own exceptions in java?

621






What is the basic of java?

566


Why should we use singleton pattern instead of static class?

456


how its run?

561


What is thread life cycle in java?

578


What is the point of java?

546


Explain about main thread in java?

606


When a byte datatype is used?

561


What data type is string java?

529


Can the interface be final?

570


What is the difference between compare and compareto in java?

489