Answer Posted / arjun kumar
When we cast a reference along the class hierarchy in a
direction from the sub classes towards the root, it is an
upcast.
When we cast a reference along the class hierarchy in a
direction from the root class towards the children or
subclasses, it is downcast.
| Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
what is meant wrapper classes?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
What is the final method?
What is the main functionality of the remote reference layer?
Explain the difference between abstraction and encapsulation.
What is unicode datatype?
Is it possible to instantiate the abstract class?
What is the null?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What is flush () in java?
What is the concatenation operator in java?
What is the significance of java packages?
What are the types of relation?
What is string manipulation?
Can we declare array without size in java?