when asub class inherits a super class and overrides a
public method of super class in sub class(public method in
super class).
why these methods needs to be public in sub class.
(otherwise compile time error).
Answer Posted / ravikiran
the access specifies sould not me more restrictive in a
subclass.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the epoch date?
Can we assign null to double in java?
What is lambda programming?
What is indexof in java?
What are the four pillars of java?
What is stream api in java8?
How can you generate random numbers in java?
What is entry in java?
What do you understand by the term polymorphism?
Is finalize() similar to a destructor?
What is difference overloading and overriding?
What is the requirement of thread in java?
What is the difference between hashmap and hashtable in java?
What are the topics in core java?
What is difference between throw and throws ?