What are null interfaces? Give some examples?

Answer Posted / debapriya patra

Null interfaces in java means "marker interfaces".Interface
which does not contain any variables and methods are called
marker interfaces.

Example:

serialize,cloneable etc...

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can It is possible to synchronize the constructor of a Java Class?

840


What does index mean in java?

766


How does compareto method work?

742


Can we have more than one package statement in the source file?

876


What is the benefit of using enum to declare a constant?

882


What is the difference between jfc & wfc?

819


What is unicode in java?

736


How many bits is a double?

767


Is there a jre for java 11?

829


Can I override protected method in java?

824


In java, how many ways you can take input from the console?

761


What is the difference between the size and capacity of a vector?

803


How to display all the prime numbers between 1 and n (n is the number, get the input from user)

755


What is difference between variable declaration and definition?

758


How do you check if a number is a perfect square?

765