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 |
Define inheritance with reference to java.
What are the library functions in java?
Difference between process and thread?
what is the difference between object and class
What is Locale class?
What is this keyword in java?
hi to all. well can you please tell me that why String class is immutable? Thanks in advance.
What is the purpose of final keyword and when to use it?
Is it possible to override private or static method in java?
In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?
What is deadlock and how to avoid this?
What is the difference between JDK and JVM?