Answer Posted / javachi
Casting is nothing but data type conversion.
Up casting is the conversion of data type from lower range data type to higher data type eg: int to long, byte to long, int to double etc...
Down casting is vice versa of up casting, here we do type casting from larger value to lower value,
eg: double to byte, long to int etc
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Is java call by value?
What is string literal in java?
What is the difference between final, finally and finalize()?
Is java same as core java?
Write a program to print all permutations of string?
Can you add null to a list java?
Write a program to reverse a number in java?
How do you check if a string contains only numeric digits?
What is meant by structural programming?
how do I create a runnable with inheritance? : Java thread
Can we create an object of static class in java?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
Can you achieve runtime polymorphism by data members?
Is char * a string?
How do you compare objects in java?