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
What is jpa specification?
What is character in data type?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is a programming object?
What is a parameter used for?
What is arraylist class in java?
describe synchronization in respect to multithreading? : Java thread
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Can we call a non-static method from inside a static method?
What is size of int in java?
What are the two types of streams offered by java 8?
Explain parallel processing in java8?
How can an object be unreferenced?
can I implement my own start() method? : Java thread
Can you override static methods?