Answer Posted / malligontla
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, because compiler
will internally take care of the casting. This is known as
Upcasting.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How are this() and super() used with constructors in java programming?
What are measurable parameters?
What are different data structures in java?
Can we have static methods in an interface?
How do you compare arrays in java?
Difference between start() and run() method of thread class?
is it possible to instantiate the math class?
Can constructor be synchronized?
What is numeric data type?
What is meant by the value of a variable?
How to store image in arraylist in java?
What do you meant by active and passive objects?
What does @override mean?
How hashset works internally in java?
What are the different types of constructor?