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 |
How do you pass by reference?
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
What is predicate in java?
Explain all java features with real time examples
Can we declare a class as abstract without having any abstract method?
What are the rules for variable declaration?
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?
justify c is portable
What is the use of a conditional inclusion statement in Java ?
What is a boolean output?
What is a bufferedreader?
can any one send me the example program of immutable class?