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 function overloading in java?
What is a package in java? List down various advantages of packages.
How the metacharacters are different from the ordinary characters?
What is 32 bit float?
How do you use spaces in java?
What are the important methods of java exception class?
What is gui programming?
What is the meaning of I ++ in java?
What is regex used for?
Which is fastest collection in java?
Which class represents the socket that both the client and server use to communicate with each other?
What is the difference between preemptive scheduling and time slicing?
What is the benefit of singleton pattern?
What java is used for?
How many characters is 16 bytes?