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 |
Can we have 2 main methods in java class?
Can a final variable be manipulated in java?
what is the Diff. between Access Specifiers and Access Modifiers?
39 Answers BMC, Cyber Shot, Infosys, VTS, Wipro,
what is interface in java? Explain
which one is performance wise advantageious from List,Set,Map?
Can one thread block the other thread?
State some advantages of java?
can we add two numbers without using arthematic operators? if possible how?
How can we find the actual size of an object on the heap?
What super () does in java?
Explain constructors and types of constructors in java.
What is parsing and its types?