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 |
What are the ways of polymorphism other than Overridding & Overloading
Which class is the immediate superclass of the Container class?
Name container classes in java programming?
Can a string be null?
What is an off by one error in java?
Can substring create new object?
Can you override static methods?
What is a substring of a string?
What are loops in java? What are three types of loops?
How do you define a set in java?
Can we define constructor in inner class?
What is output buffer?