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 ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we sort hashset in java?

866


What is ‘is-a ‘ relationship in java?

796


What is a flag variable?

744


What is a methodologist?

774


What is dot operator?

793


What does java se mean?

779


Why is stringbuffer called mutable?

758


What is the different between get and post?

732


What are the different ways to handle exceptions?

743


How to sort an array in java without using sort method?

723


What is the final keyword denotes?

874


What is java util collection?

770


What is the base class in java from which all classes are derived?

744


Why stringbuilder is not thread safe?

772


What is difference between checked and unchecked exception in java?

806