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
How to create a base64 decoder in java8?
Explain about interthread communication and how it takes place in java?
Why runnable interface is used in java?
What is a method vs function?
How do you reverse sort a list in java?
What do you understand by java virtual machine?
What do you understand by synchronization?
What does i ++ mean in Java?
How do you implement polymorphism in our day to day life?
What is ternary operator?
What is the Scope of Static Variable?
why Interface used?
explain what is transient variable in java?
What two classes are used to read data only?
Implementations of set interface?