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
If you do not want your class to be inherited by any other class. What would you do?
Why hashcode is used in java?
difference between byte stream class and character stream class?
How do you add spaces in java?
Write a function to print Fibonacci series and Tribonacci series?
How will you invoke any external process in java?
What is the maximum length of a url?
What do you mean by mnemonics?
What is adapter in java?
Difference between stack and queue?
Is a char always 1 byte?
How many types of the indexof method are there for strings?
Where are the card layouts used?
Explain public static void main(string args[]).
List some oops concepts in java?