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


Please Help Members By Posting Answers For Below Questions

Describe the term diamond problem.

575


What is java developer skills?

516


What is complexity and its types?

526


What is included in core java?

583


Write a java program to check if a number is prime or not?

537






What is the epoch date?

568


What are the differences between processes and threads?

520


What is map and hashmap in java?

622


What is an array in java?

640


Is java platform independent?

570


Define "Access specifiers" in java.

610


What is a class reference?

555


What is merge sort in java?

585


What are static initalizers in java ?

583


How does predicate work in java?

539