When we give defination of interface method in the class why
method must be public???
Answer Posted / 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 |
Post New Answer View All Answers
What is the generic function?
Explain the pointers in Java?
What are the types of inner classes (non-static nested class) used in java?
What is string pooling concept?
How to use Media tracker Class.
What are passing parameters?
What is the purpose of extern variable?
What are different access specifiers in java? Explain
Why do we need variables?
How will you get the platform dependent values like line separator, path separator, etc., ?
What are drawbacks of singleton class?
What is sorting algorithm in java?
What are the advantages of arraylist over arrays?
What is method overloading and method overriding?
How do you square a number in java?