Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is logical variable?

956


What is a parameter in java?

971


Can we have multiple catch block for a try block?

967


What about member inner classes?

1082


Difference between ‘>>’ and ‘>>>’ operators in java?

1107


Can a class extend 2 classes in java?

1020


Explain java thread life cycle.

1003


Explain the difference between throw and throws in java?

978


What is nested loop? What is dangling else condition in it?

1057


What are advantages of using Java?s layout managers than windowing systems?

2350


What is printwriter in java?

937


Explain implementation and how is it different from conversion?

1055


What is the difference between multitasking and multithreading in Java

1167


Why strings in java are called as immutable?

968


What does ide stand for?

918