When we give defination of interface method in the class why
method must be public???
Answer Posted / 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 |
Post New Answer View All Answers
What are different type of exceptions in java?
How to change the priority of thread or how to set the priority of thread?
Explain with example the concept of constant variable in java.
What is a generic code?
What is the difference between form & report?
Is heap stored in ram?
When is the garbage collection used in Java?
Can we compare two strings in java?
What does indexof return in java?
What is exception handling in java?
Is minecraft java edition free?
What is the relationship difference the canvas class and the graphics class?
What is hashset in java?
How do you escape sequences in java?
Can a serialized object be transferred via network?