Answer Posted / rakesh jain
Whenever u want to assign the value of one type variabel to
another type variable . in this case u must type cast
between them.
Generally there is two type of Type casting
1 Implicit Type Casting
2 Explicit Type Casting
example:=
short s=10;
int i=240;
s=(short)i; //Explicit type casting
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How do you add an arraylist to an array in java?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
How do you read a char in java?
what is a thread pool in java and why is it used?
What is the use of math abs in java?
Can we call a non-static method from inside a static method?
What is the functionability stubs and skeletons?
What is meant by null and void?
What is a variable in java?
What is a method header?
How do you include a string in java?
How to perform binary search in java?
What is a JAR file?
What are the different ways of implementing thread? Which one is more advantageous?
Is 9 a prime number?