explain about casting of objects?

Answer Posted / niranjanravi

Casting betrween object references is to refer to a object
compatible by class or interface or array type reference.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is java called java?

778


Is minecraft 1.15 out?

737


State some advantages of java?

970


What is method overloading with type promotion?

904


What is the purpose of assert keyword used in jdk1.4.x?

755


What is the importance of finally block in exception handling?

757


Explain the difference between protected and default access.

730


what is singleton in java?

787


What is the unit of plancks constant?

768


Is boolean a wrapper class in java?

815


List some important characteristics on jre

794


What is ternary operator? Give an example.

789


What is meant by 'bit masking' in java?

861


What is difference between array and arraylist in java?

681


when should you use stringbuilder class in a program?

723