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 a flag variable?
What is the purpose of void class?
Why string is immutable with example?
Why is sizeof not a function?
What is floor in java?
What is files manifesting?
What is meant by overloading?
Why for each loop is used?
What is javac_g?
Can we make constructors static?
What does those terms actually mean included in the j.d.k i.6?
Is cout buffered?
What is java instanceof operator?
Can an object subclass another object?
What is entry set in java?