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
How many inner classes can a class have?
What is nextline method in java?
What is the difference between serializable and externalizable interface?
How can constructor chaining be done by using the super keyword?
Mention a package that is used for linked list class in java.
Is string a wrapper class?
What does flagged out mean?
What are internal and external variables?
How big is a boolean?
What is the difference between Grid and Gridbaglayout?
How many types of the indexof method are there for strings?
What is memory leak and how does java handle it?
What is a text string?
How can you read content from file in java?
What methodology can be employed to locate substrings inside a string?