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 are the 8 primitive data types in java?
What is try-with-resources in java?
What does null mean in java?
What is difference between classpath and path variables in java?
Explain the scope or life time of class variables or static variables?
what is session in java?
What technique can be employed to compare two strings?
What’s meant by anonymous class?
Can we have 2 main methods in java class?
What is thread start?
What is difference between string and stringbuffer?
Can we have multiple classes in a single file?
What is scope of a variable?
Which is faster string or stringbuilder?
What is ordered map in java?