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 java reflection?
Is string a wrapper class?
what is meant by encapsulation?
How define set in java?
Define how destructors are defined in java?
What is string syntax?
How can you handle java exceptions?
Is 0 true or false in java?
Can we inherit a class with private constructor?
What is the concatenation operator in java?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
How to perform binary search in java?
What is the difference between length and size in java?
Can you create an object of an abstract class?
In java, how many ways you can take input from the console?