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
How does multithreading take place on a computer with a single cpu?
Is char a method in java?
What is difference between array and vector?
Can java inner class be static?
What is difference between length and length() method in java ?
Explain java thread life cycle.
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What is collection api?
What is an interoperable application in java ?
What is a constructor overloading in java?
What is the difference between declaration and definition in java?
What does += mean coding?
What is difference between next () and nextline () in java?
How can we create a thread in java?
What are mutable classes?