When we give defination of interface method in the class why
method must be public???

Answers were Sorted based on User's Feedback



When we give defination of interface method in the class why method must be public???..

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

When we give defination of interface method in the class why method must be public???..

Answer / prakash

all methods in interfaces are public by default...

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Core Java Interview Questions

What is the difference between jfc & wfc?

1 Answers  


Does sprintf allocate memory?

1 Answers  


how to connect two diffrent applet files

0 Answers  


Can You Have Virtual Functions In Java?

1 Answers  


Explain inheritance in java?

1 Answers  


if u open login & logout ,how can udisplay the timelogin & logout members ?

1 Answers   Virtusa,


What are different access specifiers in java? Explain

1 Answers  


How do you write a scanner class in java?

1 Answers  


Is null an object java?

1 Answers  


Why we do exception handling in java and how many types of exceptions are there?

1 Answers  


Which package is imported by default?

1 Answers  


Why javac is not recognized?

1 Answers  


Categories