Answer Posted / regalla soujanya naresh reddy
A super class reference can be converted into a subclass
reference but this
subclass reference is not useful to call the methods of any
of the classes. This convention is known as Downcasting.
We can convert the subclass reference to a superclass
reference without using the cast operation compiler because
it will internally take care of the casting. This is known
as Upcasting.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What are white spaces in java?
What does the “static” keyword mean? Can you override private or static method in java?
What is the significance of continue jump statement? Explain with an example.
Explain what access modifiers can be used for methods?
Is minecraft 1.15 out?
Implement a stack with push (), pop() and min() in O(1) time.
How do you format in java?
What is a stack class in java ?
Explain restrictions on using enum?
Compare overloading and overriding?
What are some characteristics of interference class?
What do you mean by formatting?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
Can memory leak happen java?