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 are observer and observable used in java programming?
What is static synchronization?
Tell us something about an iterator.
can we have function for truncating the sign as like abs in oracle.
Can we call thread start () twice?
What does it mean to be immutable?
What are encapsulation, inheritance and polymorphism?
What does ide stand for?
Why is whitespace important?
What is the difference between logical data independence and physical data independence?
finalize() method?
Explain the term serialization?