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
Difference between throw and throws?
What is the final blank variable?
Are arrays classes in java?
What do you mean by checked exceptions?
What is a class variable?
How do you create a method in java?
What is the difference between super class & sub class?
What is complexity and its types?
What is the benefit of inner / nested classes ?
Difference between start() and run() method of thread class?
What is integer valueof?
What is a method declaration?
Is java a virus?
What is final keyword in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net