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 |
What is the difference between jfc & wfc?
Does sprintf allocate memory?
how to connect two diffrent applet files
Can You Have Virtual Functions In Java?
Explain inheritance in java?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What are different access specifiers in java? Explain
How do you write a scanner class in java?
Is null an object java?
Why we do exception handling in java and how many types of exceptions are there?
Which package is imported by default?
Why javac is not recognized?