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
why we use merge option in hybernate pls give a ex snippet
Can I override protected method in java?
What is the purpose of skeleton and stub?
Is set ordered in java?
What does n mean in java?
How to perform binary search in java?
Can constructor return value?
What is the purpose of using the java bean?
What is the difference between delete and delete[]
What is <> used for in java?
What is tochararray in java?
Explain the features of java?
Will minecraft java be discontinued?
What is user defined exception in Java?
Explain constructors and types of constructors in java.