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 |
Is map sorted in java?
What are the types of casting?
what are depricated methods in threads and explain the lifecycle methods
What is string args [] in java?
Why bytecode is called bytecode?
What is a void return type?
What are data types in programming?
What is thread start?
what is the J2EE BluPrints?
Is arraylist zero based?
What is the purpose of lambda expressions?
What are the methods available in a class?