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 meant by distributed application? Why are we using that in our application?
Tell me the latest versions in java related areas?
How can you handle java exceptions?
How do you decide when to use arraylist and linkedlist?
What is dynamic binding(late binding)?
What is difference between public static and void?
Can I import same package/class twice?
Can a static member function access member variable of an object?
What is meant by bytecode?
Define array. Tell me about 2-D array.
Can constructor be protected in java?
Can you explain the usages of class.forname()?
What is extension method in java?
Which collections are thread safe in java?
When should the method invokelater() be used?