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
Explain the transient field modifier?
What is synchronization and why is it important in java programming?
What is the numeric promotion?
When do we use synchronized blocks and advantages of using synchronized blocks?
How can we make a class virtual?
What is map and hashmap in java?
What is use of super keyword?
What is a war file?
How does enum work in java?
Which package is used for pattern matching with regular expressions?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
Which is the best approach for creating thread ?
What is the generic class?
Is array serializable java?
What is collection api?