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
Is null a string in java?
What is a class variable?
What is data and its types?
How do you achieve polymorphism in java?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is Session reduplication and how its done?
Which collection is best for sorting in java?
Explain the hierarchy of java exception classes?
How do you execute a thread in java?
What is the nested interface?
What will happen if static modifier is removed from the signature of the main method?
Justify your answer that you can't define a method inside another method in java, if you can then how?
what is the purpose of the runtime class?
What are latest features introduced with java 8?
what is the constructor and how many types of constructors are used in java?