long d =10;int i =0;i=d; /// is this possible? If d is very
long number (10 digits or some thing) then?
Answer Posted / vijayakumar chinnasamy
It display compile time error. Cant convert form long to
int. becacuse it -2 32 bit and long is 64bit, so u need to
type case the long value into int value.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the advantages of assembly language?
What does exp mean in math?
Can we serialize arraylist in java?
What do you mean Abstraction in java?
What is the destroy method?
Can a constructor be private and how are this() and super() method used with constructor?
How many digits is int32?
Can you extend main method in java?
Can we override private method?
What does regex mean?
What is size of int in java?
What are the differences between this and super keyword?
what is the difference between yielding and sleeping? : Java thread
Is void a wrapper class?
Can we define private and protected modifiers for variables in interfaces?