What happens when you assigned a 'double' value to
a 'String'?
Answer Posted / paras bist
compilation fails ,
even for
double d=10.5;
String f=(String)(10.5);
"Cannot cast from double to String"
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How to find the index of the largest number in an arraylist java?
How do you check if a string contains only numeric digits?
How do you define a singleton class?
How do I remove a character from a string in java?
Is string a class in java?
What does indexof return in java?
Is a boolean 1 bit?
What do you mean by an interface in java?
How do you declare an array that will hold more than 64KB of data?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is synchronization and why is it important in java programming?
What are the differences between wait() and sleep()?
How many java versions are there?
What is static variable with example?
Explain covariant method overriding in java.