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 daemon Threads in java?
How to set the permissions to a file in java?
when to use ArrayList and when to use HashMap in webApplication.
Which of the classes will have more memory allocated?
Discuss 2D arrays.
Why is singleton not thread safe?
What is a stack class in java ?
Can vector have duplicates in java?
How many types of threads are there in java?
What is abstraction in java?
What is t in parametric equations?
Can I learn java without any programming experience?
Can a class be final?
What about instanceof operator in java?
What is unmodifiable collection in java?