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

Is null a string in java?

1168


What is a class variable?

1099


What is data and its types?

1055


How do you achieve polymorphism in java?

1039


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1031


What is Session reduplication and how its done?

2087


Which collection is best for sorting in java?

1177


Explain the hierarchy of java exception classes?

1187


How do you execute a thread in java?

999


What is the nested interface?

1167


What will happen if static modifier is removed from the signature of the main method?

1016


Justify your answer that you can't define a method inside another method in java, if you can then how?

1274


what is the purpose of the runtime class?

1109


What are latest features introduced with java 8?

1155


what is the constructor and how many types of constructors are used in java?

1040