What happens when you assigned a 'double' value to
a 'String'?
Answer Posted / ravikiran(aptech mumbai)
compilation fails
double d=10.5;
String f=(String)(10.5);
will work
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is the difference between jfc & wfc?
What's the difference between comparison done by equals method and == operator?
When is update method called?
What are the steps involved to create a bean?
What is local class in java?
How would you format a date in java? I.e. In the ddmmyyy format?
What are the special characters?
What is a parent class in java?
what is inner class in java?
What is set in java?
Can we assign integer value to char in java?
Can java arraylist hold different types?
When does a class need a virtual destructor?
How do you reverse a string in java?
What is a default method?