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 |
How can we make string upper case or lower case?
What are exception handling keywords in java?
Is class is a data type?
What does t in java mean?
What is skeleton and stub?
Difference between string, string builder, and string buffer?
Is 64bit faster than 32 bit?
What ide should I use for java?
Can we inherit the constructor in a Class?please give one example.
What is math exp in java?
write a program to create an vector with string(add,remove) operation.and value should be enter through keyboard.
What is the basically use of finally while we know it is always executed but why?