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 state is a thread in when it is executing?

0 Answers  


What happens if we don’t define serial version uid?

0 Answers  


How to invoke external process in java.

0 Answers  


what is thread in Java ?

0 Answers  


what is the Diff. between Access Specifiers and Access Modifiers?

39 Answers   BMC, Cyber Shot, Infosys, VTS, Wipro,






What is an example of procedure?

0 Answers  


how to handled exceptions & erros in ejb?

1 Answers   Satyam,


Can an interface be final?

0 Answers  


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

0 Answers   HCL, SAP Labs, Vital Soft,


What is method overloading in JAVA? Why is it not present in C ?

0 Answers   Akamai Technologies,


What is a method header?

0 Answers  


Differentiate between overriding and overloading cases?

0 Answers   Amdocs,


Categories