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 are different types of multitasking?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
what are the high-level thread states? : Java thread
Can private class be extended java?
Similarity and difference between static block and static method ?
What is string length in java?
How can we make a class singleton?
How strings are created in java?
How can you sort dates?
Briefly explain the term Spring Framework
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance...
How do I enable java in safari?