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 the minimum and maximum length of an identifier?
What are streams?
Why does it take so much time to access an applet having swing components the first time?
Where will it be used?
Which sorting is best in java?
What is volatile keyword in java
java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
How does queue work in java?
real time example for deadlock,starvation,livelock
What do you mean Abstraction in java?
Explain pass by reference and pass by value?
What is OOP's Terms with explanation?