long d =10;int i =0;i=d; /// is this possible? If d is very
long number (10 digits or some thing) then?
Answers were Sorted based on User's Feedback
Answer / vicks
this is possible by using Type Casting, But there is an
exception occure "LostOfPressesions". because "Long" having
64bit (8 Bytes) of memory bolck, on the other hand "int"
having only 32bit (4 Bytes) of memory. which is less then
long. there is a case to lost some amount of data.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What is threaded programming and when is it used? : Java thread
Ducking is automatic in checked exception?True or false
What are the advantages of autoboxing?
Explain a situation where finally block will not be executed?
What are singleton services?
what is Dictionary? and what purpose it is used for?
What is the purpose of the system class in java?
What is the return type of readLine() when end of a file is reached?
what is type of statement in jdbc connection?
What is replacefirst in java?
Which package is used for pattern matching with regular expressions?
What is the use of accept () method in java?