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 are reference variables in java?
What are "methods" and "fields"?
How many types of operators are there?
List some java keywords sun like c, c + + keywords?
What is string value?
Why is java called the platform independent programming language?
what is abstract class in Java?
When do we need to use internal iteration? When do we need to use external iteration?
How do you differentiate abstract class from interface?
Can we cast any other type to boolean type with type casting?
Explain about OOPS concepts and fundamentals.
Differentiate storage classes on the basis of their scope?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
Why is stringbuffer thread safe?
What are the important features of Java 11 release?