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
How do you reverse sort in java?
What is static block?
Can a lock be acquired on a class in java programming?
What is skeleton and stub?
What is * argv?
what do you understand by synchronization? : Java thread
What is an inner class in java?
Which is illegal identifier in java?
What modifiers are allowed for methods in an interface?
Is treeset sorted in java?
What does main method?
How do you escape sequences in java?
How do you convert int to char in java?
Is void a keyword in java?
How are destructors defined in java?