explain about casting of objects?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Which sorting algorithm is in place?
Difference between current previous versions of Java?
What is a module function?
What is the default value of float and double datatype in java?
Can a final variable be null?
Define Compiling?
Difference between Array and vector?
How many types of array are there?
What is java lang object?
Which class is the superclass for all the classes?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is substring 1 in java?