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 / 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 |
Post New Answer View All Answers
What is logical variable?
What is a parameter in java?
Can we have multiple catch block for a try block?
What about member inner classes?
Difference between ‘>>’ and ‘>>>’ operators in java?
Can a class extend 2 classes in java?
Explain java thread life cycle.
Explain the difference between throw and throws in java?
What is nested loop? What is dangling else condition in it?
What are advantages of using Java?s layout managers than windowing systems?
What is printwriter in java?
Explain implementation and how is it different from conversion?
What is the difference between multitasking and multithreading in Java
Why strings in java are called as immutable?
What does ide stand for?