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 functionability stubs and skeletons?
Does garbage collection occur in permanent generation space in jvm?
How to call one constructor from the other constructor ?
What is output buffer?
Can we override protected method in java?
Which is fastest collection in java?
What is the difference between superclass and subclass?
What is the largest number a double can hold?
What is string builder in java?
Is list thread safe in java?
Explain about varargs in java?
Why java is call by value?
Can we declare the main method of our class as private?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is the abstraction?