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 / vijayakumar chinnasamy

It display compile time error. Cant convert form long to
int. becacuse it -2 32 bit and long is 64bit, so u need to
type case the long value into int value.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of assembly language?

872


What does exp mean in math?

934


Can we serialize arraylist in java?

957


What do you mean Abstraction in java?

1037


What is the destroy method?

994


Can a constructor be private and how are this() and super() method used with constructor?

935


How many digits is int32?

926


Can you extend main method in java?

1093


Can we override private method?

1031


What does regex mean?

952


What is size of int in java?

993


What are the differences between this and super keyword?

894


what is the difference between yielding and sleeping? : Java thread

905


Is void a wrapper class?

882


Can we define private and protected modifiers for variables in interfaces?

1018