When we give defination of interface method in the class why
method must be public???

Answer Posted / prakash

all methods in interfaces are public by default...

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should database connections be singleton?

644


What are the methods of object class ?

656


What is singleton class example?

679


Difference between static synchronization vs. Instance synchronization?

679


What is static and final keyword in java?

665






Is there a jre for java 11?

680


Can we convert stringbuilder to string in java?

643


What is meant by object oriented programming – oop?

640


What is the difference between serializable and externalizable interface?

669


Why call by value prevents parameter value change?

678


What is return null in java?

602


Can a private method of a superclass be declared within a subclass?

613


What is volatile keyword in java

748


Is logger a singleton?

608


What is incompatible types in java?

629