what is meant by UP& DOWN casting in java?

Answer Posted / jack

i think.. UPcasting is converting one type to another
without any loss of data... and DOWNcasting is converting
one type to another with loss of data

Is This Answer Correct ?    7 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which package is used for pattern matching with regular expressions?

857


Which is better arraylist or vector?

799


What is array initialization in java?

708


What is lambda programming?

718


What are the basics of core java?

763


What is the primitive type byte?

781


Is there a jre for java 11?

819


What is static and final keyword in java?

780


What is the difference between JDK and JVM?

873


What is return data type?

785


Write a program in java to create a doubly linked list containing n nodes.

754


What is difference between checked and unchecked exception in java?

814


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1065


What is a "pure virtual" member function?

859


Why hashset is used in java?

751