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
What is the independent variable in an experiment?
What is immutable state?
What data type is true or false?
What is the purpose of a volatile variable?
How does regex work?
What are extraneous variables examples?
Explain the difference between treeset and treemap in java?
Is singleton a bad practice?
What is method overriding in java ?
How do you create a reference in java?
Can we have try without catch block?
Explain the public class modifier?
What is string intern in java?
What are drawbacks of singleton class?
What is slash r?