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

Answers were Sorted based on User's Feedback



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

Answer / pradeep singh

because class which implements the interfaces if the
access modifiers are protected or private then we can not
override this metods. somethos must be publicand java there
is notmultiple inheritance

Is This Answer Correct ?    7 Yes 1 No

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

Answer / prakash

all methods in interfaces are public by default...

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Core Java Interview Questions

What is meant by Java ?

2 Answers   CMC, Infosys,


What is jagged array in java?

0 Answers  


what is aberivation of java?

14 Answers  


What is set string?

0 Answers  


describe synchronization in respect to multithreading? : Java thread

0 Answers  






What are java methods?

0 Answers  


What is a stream? what are the different types and classes of Streams?

2 Answers  


How do you compare objects in java?

0 Answers  


What is the use of arraylist in java?

0 Answers  


What does you mean in math?

0 Answers  


Does java have extension methods?

0 Answers  


What is jit compiler in java?

0 Answers  


Categories