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 library functions in java?

1108


What’s the difference between constructors and other methods?

1050


Does .length start 0 java?

1065


why java uses class level type casting ?

2705


How do I find and replace in word?

1025


Why is the singleton pattern considered to be an anti pattern?

946


Write an algorithm for quick sort?

1088


What are the five major types of reference sources?

1199


Give a practical example of singleton class usage?

1102


How do you create a bulleted list?

1308


Can a private method of a superclass be declared within a subclass?

1106


Can we have multiple classes in single file ?

1117


Differentiate between overriding and overloading cases?

1168


What are the various access specifiers in java?

1053


What do you mean by append?

1136