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
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is a blocking method in Java?
What is void keyword?
How many bits is size_t?
Can we override private methods?
What is locale?
What are the Main functions of Java?
Can we make a constructor final?
Explain public static void main(string args[]) in java.
what is the difference between process and thread? : Java thread
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
Write a java program to print fibonacci series?
Are true and false keywords?
What is assembly language?
What is main function purpose?