When we give defination of interface method in the class why
method must be public???
Answers were Sorted based on User's Feedback
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 |
Answer / prakash
all methods in interfaces are public by default...
Is This Answer Correct ? | 3 Yes | 3 No |
What is meant by Java ?
What is jagged array in java?
what is aberivation of java?
What is set string?
describe synchronization in respect to multithreading? : Java thread
What are java methods?
What is a stream? what are the different types and classes of Streams?
How do you compare objects in java?
What is the use of arraylist in java?
What does you mean in math?
Does java have extension methods?
What is jit compiler in java?