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 / chaitanyaelluru
Yes,It is possibel through casting.
|Is This Answer Correct ?||1 Yes||1 No|
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
What is the life-cycle of an object?
Why should I use abstract class?
What is += mean in java?
What does a boolean method return?
What is classes in java?
What is a list in java?
What is multithreading in java?
Name the method that used to clear the buffer ?
What is the default value of byte datatype in java?
What is bufferedreader in java?
What is java util list?