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
Explain the init method?
What is dynamic binding(late binding)?
What is a void method java?
What is protected access modifier?
Can private members of a base class are inheritable justify?
What is difference between path and classpath in java?
What is jvm? Why is java called the platform independent programming language?
What is bytecode verifier?
What is methods in java?
What is the syntax and characteristics of a lambda expression? Explain
In how many ways we can do synchronization in java?
How is a structure different from array ?
what is synchronization? : Java thread
How do you format in java?
Why is the main method declared static?