Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

Write a program to print count of empty strings in java 8?

200


What is the difference between the ">>" and " >>>" operators in java?

207


What is the purpose of static methods and variables?

199


When should you use arraylist and when should you use linkedlist?

207


What does serializing data mean?

162






Why spring singleton is not thread safe?

190


please send me hr interview questions in it industry

1239


What is java regex?

186


Explain about interthread communication and how it takes place in java?

203


What is the difference between overriding & overloading?

205


Is stringwriter thread safe?

170


What is command line argument

285


Can you create an object of an abstract class?

187


What happens to the Exception object after handling an exception?

1464


What are constants?

232