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 inheritance in java?
What environment variables are required to be set on a machine in order to run Java programs?
How variables are stored in memory?
What is a numeric digit?
Explain thread life cycle in java?
What is considered an anti pattern?
What are the drawbacks for singleton class?
What is object cloning in Java?
How many bytes is 255 characters?
Why isn’t there operator overloading?
How many types of flags are there?
Can variables be used in java without initialization?
Explain the differences between static and dynamic variables?
Can we declare a class as abstract without having any abstract method?
When should I use singleton?