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
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
Can a class have an interface?
What is the full meaning of java?
What are different types of expressions?
Why is java multithreaded?
How java is similar to c?
What is the difference between access specifiers and access modifiers in java? 16
What is java in simple terms?
What are three types of loops in java?
What is compiler and what its output.
How do you override a variable in java?
what methods would you overwrite in java.lang.object class?
How do you convert an int to a string in java?
Why put method is used?
What are the different tags provided in jstl?