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
what is the significance of listiterator in java?
Explain the difference between private, public, package and protected in java?
Give the hierarchy of inputstream and outputstream classes.
What is procedure overloading?
What is thread pool? How can we create thread pool in java?
How does singleton class work?
What is a byte array?
Difference between static binding and dynamic binding?
What is the use of bufferedreader?
What are the advantages and disadvantages of reference counting in garbage collection?
Can we sort a map in java?
How big is a 64 bit float?
What does 0 mean in boolean?
Can I uninstall java?
Can java list be null?