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 instanceof operator used in java?
What is the use of math abs in java?
What does 3 dots mean in java?
Where is java located?
Define a package.
What is class variable java?
What are the fileinputstream and fileoutputstream?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What is meant by class and object in java?
What is the final blank variable?
What is function and method in java?
What is hotjava?
What does the append?
Why stringbuffer is faster than string?
What is a conditional statement explain with example?