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 n in java?
What is file in java?
What do bitwise operators do?
Can we use both this () and super () in a constructor?
What is the static keyword?
What does s mean in regex?
Write a java program that prints all the values given at command-line.
What is a stringbuffer?
worst case complexities of Quick sort and Merge sort.
Why are global variables used?
Can private method static?
What is jar?
Which is dependent variable?
What is supplier in java?
How many types of equations are there?