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 to create a base64 decoder in java8?

1006


Explain about interthread communication and how it takes place in java?

966


Why runnable interface is used in java?

1058


What is a method vs function?

980


How do you reverse sort a list in java?

897


What do you understand by java virtual machine?

1123


What do you understand by synchronization?

987


What does i ++ mean in Java?

891


How do you implement polymorphism in our day to day life?

3177


What is ternary operator?

960


What is the Scope of Static Variable?

1165


why Interface used?

952


explain what is transient variable in java?

1063


What two classes are used to read data only?

1036


Implementations of set interface?

947