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 a parameter example?
What is a loop java?
What is difference overloading and overriding?
Give me an example of array and linked list? Where they can be used?
What is loop in java?
Explain the use of javap tool.
What is command line argument in java?
Explain about member inner classes?
How do constructors use this() and super()?
When is an object subject to garbage collection?
What is the difference between stream and buffer?
What are adapter classes?
Why is flag used in java?
what is thread? What are the high-level thread states? : Java thread
Can we overload final method in java?