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 predicates in java 8?
What is a lock or purpose of locks in java?
What are abstract methods in java?
What occurs when an object is constructed?
What is a for loop in java?
What is the list interface?
What is a map? What are the implementations of map?
What is maximum size of arraylist in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is a short in java?
What is the difference between && and & in java?
What is high level language in computer?
How do you compare characters in java?
Explain the difference between runnable and callable interface in java?
What is a percentage sign called?