What happens when you assigned a 'double' value to
a 'String'?
Answer Posted / paras bist
compilation fails ,
even for
double d=10.5;
String f=(String)(10.5);
"Cannot cast from double to String"
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain about main() method in java ?
What do you mean by pointer value and address?
what is a green thread? : Java thread
How to do encapsulation in java?
What does string mean in java?
How many functional interfaces does java 8 have?
What does split function do in java?
Explain importance of inheritance in java?
what is difference between equals and ==?
What is a class object?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is the use of put method?
What is locale in java?
How does predicate work in java?
How will you communicate between two applets?