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 |
Write a program to print the pattern given below
What is the purpose of the finally clause?
why do we use interface in java?
What will happen if we write code like: try{}catch(exception e)catch(IOException i)
Write a program to check string is palindrome without using loop?
What is unicode?
What is binary tree in java?
Can we add default constructor to Servlet?
Difference between arraylist and hashset in java?
What is the specification of ?CODEBASE? in an applet?
What is the difference between logical data independence and physical data independence?
When should I use stringbuffer?