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
What is the difference between arraylist and hashset in java?
Is java ee a framework?
Which java ide is used the most?
List the different types of classloaders in java.
What is binary tree in java?
What differences exist between iterator and listiterator?
What is java command?
Where is core java used?
What is jar?
Can a set contain duplicates?
What is variable length arguments in java?
What is lifetime variable?
What is arraylist e?
What is javac in java?
What are synchronized methods and synchronized statements in java programming?