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 significance of listiterator in java?

1063


Explain the difference between private, public, package and protected in java?

1031


Give the hierarchy of inputstream and outputstream classes.

1085


What is procedure overloading?

2295


What is thread pool? How can we create thread pool in java?

1049


How does singleton class work?

970


What is a byte array?

1080


Difference between static binding and dynamic binding?

1088


What is the use of bufferedreader?

983


What are the advantages and disadvantages of reference counting in garbage collection?

1003


Can we sort a map in java?

1020


How big is a 64 bit float?

1017


What does 0 mean in boolean?

965


Can I uninstall java?

1026


Can java list be null?

979