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 is the difference between procedural and object-oriented programs?

530


What is the difference between reader/writer and inputstream/output stream?

563


How variables are stored in memory?

541


What is java’s garbage collected heap?

542


Is alive and join method in java?

545






Explain the difference between abstract classes and interfaces in java?

602


Is null a string or object in java?

554


What is lambda expression in java?

543


What is unicode in java?

511


What will happen if static modifier is removed from the signature of the main method?

532


Where is core java used?

588


What do you mean by inner class in java?

574


What does this () mean in constructor chaining concept?

568


Are functions objects in java?

550


Can a class have a static inner class?

614