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 string english?
What is java used for on a computer?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
When should you make a function static?
What are constants?
What is sortedmap in java?
What is the size of integer?
What is not object oriented programming?
What does exp mean in math?
Difference between character constant and string constant in java ?
How can we create a synchronized collection from given collection?
Explain the use of shift operator in java. Can you give some examples?
Is void a data type?
What is == and === in javascript?
If a variable is declared as private, where may the variable be accessed?