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 state is a thread in when it is executing?
What happens if we don’t define serial version uid?
How to invoke external process in java.
what is thread in Java ?
what is the Diff. between Access Specifiers and Access Modifiers?
39 Answers BMC, Cyber Shot, Infosys, VTS, Wipro,
What is an example of procedure?
how to handled exceptions & erros in ejb?
Can an interface be final?
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?
Differentiate between overriding and overloading cases?