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 use of static class?
How do you sort in java?
What are packages in java?
What does the “static” keyword mean?
Are functions objects in java?
What do you mean by light weight and heavy weight components?
How are this() and super() used with constructors in java programming?
What is multithreading in java?
State differences between C and Java?
What are the different data types in java?
Is string is a keyword in java?
What is complexity in java?
What is object-oriented paradigm?
What is an object’s lock and which object’s have locks?
What does arrays sort do in java?