what is meant by UP& DOWN casting in java?

Answer Posted / keli

UP CASTING: it is the process of assigning subclass reference to the super class.
DOWN CASTING:the process of assigning superclass reference to subclass

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When can an object reference be cast to an interface reference in java programming?

577


What are scalar data types?

524


Explain exception chaining in java?

604


What is the protected method modifier?

561


How to print nodes of a Binary tree?

1752






What is void in java?

587


In how many ways we can create threads in java?

628


do I need to use synchronized on setvalue(int)? : Java thread

549


What is the purpose of using java.lang.class class?

523


What is indexof in java?

512


Is void a data type?

534


explain multi-threading in java?

546


What is the main function in java?

527


What data type is string java?

535


What is slash r?

539