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...

What happens when you assigned a 'double' value to
a 'String'?

Answer Posted / ravikiran(aptech mumbai)

compilation fails

double d=10.5;
String f=(String)(10.5);

will work

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between jfc & wfc?

1012


What's the difference between comparison done by equals method and == operator?

913


When is update method called?

1083


What are the steps involved to create a bean?

1092


What is local class in java?

1019


How would you format a date in java? I.e. In the ddmmyyy format?

1313


What are the special characters?

926


What is a parent class in java?

953


what is inner class in java?

1070


What is set in java?

982


Can we assign integer value to char in java?

957


Can java arraylist hold different types?

984


When does a class need a virtual destructor?

949


How do you reverse a string in java?

1051


What is a default method?

980