explain about casting of objects?

Answers were Sorted based on User's Feedback



explain about casting of objects?..

Answer / niranjanravi

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

Is This Answer Correct ?    7 Yes 1 No

explain about casting of objects?..

Answer / niranjanravi

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

Is This Answer Correct ?    8 Yes 4 No

explain about casting of objects?..

Answer / 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

explain about casting of objects?..

Answer / 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

explain about casting of objects?..

Answer / rajesh

Casting can be applied to data types for like narrowing and
widening of primitive data types.
Casting can be applied for objects instantiated from the
inheritance hierarchy but only upward casting.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Which sorting algorithm is in place?

0 Answers  


Difference between current previous versions of Java?

0 Answers   Atos Origin,


What is a module function?

0 Answers  


What is the default value of float and double datatype in java?

0 Answers  


Can a final variable be null?

0 Answers  






Define Compiling?

3 Answers  


Difference between Array and vector?

9 Answers  


How many types of array are there?

0 Answers  


What is java lang object?

0 Answers  


Which class is the superclass for all the classes?

0 Answers  


What is constructor and virtual function? Can we call a virtual function in a constructor?

0 Answers  


What is substring 1 in java?

0 Answers  


Categories