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 happens to a static var that is defined within a method of a class?
What class allows you to read objects directly from a stream in java programming?
How many threads does a core java have?
What is the this keyword?
What is a java object and java application?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is bool mean?
What is += mean in java?
Is singleton set an interval?
Explain about sets?
Do loops java?
What are constants?
How to do encapsulation in java?
Tell us something about an iterator.
How do you sort a set in java?