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
Can you pass functions in java?
List any five features of java?
Can we able to pass objects as an arguments in java?
What does 3 dots mean in java?
What is considered an anti pattern?
Name some classes present in java.util.regex package.
What is the use of keywords in java?
What is the purpose of an interface?
How do you clear a list in java?
What is empty list in java?
Explain the pointers in Java?
Can we catch more than one exception in a single catch block?
Why singleton is not thread safe?
what is deadlock? : Java thread
What is string in java is it a data type?