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
How many functional interfaces does java 8 have?
how can you take care of mutual exclusion using java threads? : Java thread
How do you create a reference in java?
What is the java idl system?
Define iterator and methods in iterator?
What is the use of keywords in java?
Describe what a thread-local variable is in java?
What does it mean that a method or field is “static”?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is <> used for in java?
What is the function of static in java?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What does int argc char * argv [] mean?
difference between byte stream class and character stream class?
What is singleton pattern?