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 is singleton service?
What is final method in java?
How can you traverse a linked list in java?
What is difference between string and new string?
What is Java Shutdown Hook?
What are abstract classes and anonymous classes?
What is array list in java?
What is a function in java?
What are the types of methodology?
Is it possible to write a regular expression to check if string is a number?
Why java is secure? Explain.
What is java dot?
What is the difference between pass by reference and pass by pointer?
extending thread class or implementing runnable interface. Which is better? : Java thread
What is the importance of main method in Java?