What happens when you assigned a 'double' value to
a 'String'?

Answer Posted / pankaj

use toSting() method for printing double value as String or
assigning to string variable

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain super keyword in java.

556


What is valid keyword in java?

534


In java, how many ways you can take input from the console?

490


What is a superclass?

903


What is a memory leak in java?

514






Write a function to print Fibonacci series and Tribonacci series?

732


What are the 2 types of java programs?

538


how many types of Inheritance?

614


If two threads have same priority which thread will be executed first ?

815


Is array passed by reference in java?

556


What is use of static method?

514


define polymorphism in java

611


What does null mean in java?

606


What is the primary benefit of encapsulation?

538


Explain the importance of finally block in java?

548