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
Tell us something about an iterator.
What is a nested class?
Is ++ operator thread-safe in java?
What is the difference between private & public & friendly classes?
What if constructor is protected in java?
Does .length start 0 java?
How do you write a conditional statement?
What is collections framework?
What is r * in math?
What are the 2 types of java programs?
What is starvation?
What is array size in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
How many types of constructors are used in java?
Define jre i.e. Java runtime environment?