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 && and & in java?
What is the use of math abs in java?
Difference between java and javascript
Can a class be private or protected in java?
Does variable declaration allocate memory?
Does sprintf allocate memory?
What is the difference between the ">>" and " >>>" operators in java?
Is array passed by reference in java?
What do you mean by chromounits in java8?
What is variable and example?
What is parsing and its types?
how to split string in java?
What are the different access modifiers available in java?
What is the difference between a local variable and an instance variable?
What is a nested list?