Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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


Please Help Members By Posting Answers For Below Questions

Why there are some null interface in java? What does it mean?

246


What are advantages and disadvantages of OOPs?

241


Why does java does not support multiple inheritance? Explain

198


What is the difference between C++ and Java and your preferences?

252


What is a null class?

183






Tell me a few examples of final classes defined in Java API?

241


Is cout buffered?

195


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

195


What environment variables do I need to set on my machine in order to be able to run java programs?

228


What do you mean by thread safe?

166


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1222


Which package is imported by default?

259


Does java return by reference?

166


how can you take care of mutual exclusion using java threads? : Java thread

214


Differentiate between a class and an object.

212