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

Can we serialize singleton class?

535


Which is the best sorting technique in java?

527


Differences between external iteration and internal iteration?

577


What are methods and how are they defined?

603


Can you declare a private method as static?

699






How to convert string to char and vice versa?

515


What technique can be employed to compare two strings?

576


What is byte code and why is it important to java’s use for internet programming?

596


What is the difference between a switch statement and an if statement?

517


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

532


Explain listiterator and methods in listiterator?

549


How do you sort words in java?

538


What is the use of using enum to declare a constant?

558


What are controls and their different types in awt?

606


How to sort array of 0 and 1 in java?

543