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

How is string immutable in java?

1041


Does java allow default arguments?

1005


How do you get the length of a string in java?

1010


What kind of variables can a class consist?

1060


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1101


What access modifiers can be used for methods?

1104


Why multiple inheritance is not supported by java?

985


Why we used break and continue statement in java?

1150


What are the wrapped, classes?

1058


Is java a compiler?

987


Explain the difference between association, aggregation and inheritance relationships.

1090


Differentiate between a constructor and a method? Can we mark constructors final?

1200


What is flush () in java?

1013


Is string a class?

1039


What is java command?

1090