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

What are the legal operands of the instanceof operator?

568


why doesn't java run on all platforms?

573


What is the purpose of javac exe?

562


What is the meaning of 3 dots in java?

683


How dead lock situation occurs in java and how you can identify it?

548






What is the use of set in java?

614


Can we override private methods?

549


What is hash table in java?

494


Can a final variable be null?

554


Is 0 a real number?

593


explain local datetime api in java8?

562


What is java in layman terms?

531


What are different types of inner classes ?

567


Can you override static methods?

506


What is the functionability stubs and skeletons?

690