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 difference between static binding and dynamic binding?
What is the maximum size of array in java?
what is the constructor and how many types of constructors are used in java?
How many characters is 16 bytes?
What is a function in java?
What is difference between adapter class and listener?
Which package is always imported by default?
Explain oops concepts in detail?
What are meta-annotations?
What's the difference between an abstract class and interface in java?
When do you get classcastexception?
What are constructors in java?
What are the differences between include directive and include action?
What is the difference between size and length in java?
How to display arraylist values in java?