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 is the benefit of inner / nested classes ?
What is ternary operator in java?
What data type is string java?
What is type parameter in java?
Can try statements be nested?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
If set accepts only one argument then how can it compare two objects to avoid duplicates
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
What is a bubble sort in java?
Explain the difference between private, public, package and protected in java?
What are scriptlets?
What is advantage of using threads?