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 / vinay kumar

Actually java doesn't have string type
there is only 'char' type.
Here String is a class (in java) ,
but i am saying one thing,
these comes 1 & if not 2 & if not 3

1) if in a line have float value that total conversion value
comes a float value.
other wise
2) if in a line have double value that total conversion
value comes a double value.
otherwise
3) if in a line have long value that total conversion value
comes a long value.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the functionability stubs and skeletons?

1205


Does garbage collection occur in permanent generation space in jvm?

1140


How to call one constructor from the other constructor ?

1118


What is output buffer?

1093


Can we override protected method in java?

1114


Which is fastest collection in java?

1145


What is the difference between superclass and subclass?

1248


What is the largest number a double can hold?

1092


What is string builder in java?

1059


Is list thread safe in java?

969


Explain about varargs in java?

1183


Why java is call by value?

1083


Can we declare the main method of our class as private?

1049


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

998


What is the abstraction?

1064