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
How hashmap increases its size in java?
How do you declare a destructor in java?
What is the purpose of the System class?
What is the use of parse function in java?
Is heap stored in ram?
How does hashmap work in java ?
What is java used for?
What loop means?
Is there a case when finally will not execute?
What is thread pool in java with example?
How do you make an arraylist empty in java?
How to use string tokenizer class.
What are checked exceptions?
What does string mean in java?
What is Session reduplication and how its done?