What happens when you assigned a 'double' value to
Answer Posted / cleon
What are you trying to do?, trying to call a function from
primitive type/reference, that that will never work. You can
call function on Object types.
Double d = 5.5D; //D is optional as by default it is treated
to be double value
String s = d.toString();
If one tries to do something like
String s = 5.5;
A type mismatch errors will be shown during compilation itself!!
|Is This Answer Correct ?||1 Yes||0 No|
Why is multithreading important?
What is the difference between Java and C++?
Define how objects are stored in java?
What is the full form of jpeg?
What is mean by exception?
What is off heap memory?
Describe method overriding
Is map sorted in java?
How many static init can you have?
What is a platform?
Can we pass null as argument in java?
Write a program to print all permutations of string?
What is method reference?
Can you call one constructor from another if a class has multiple constructors?
What are synchronized methods ?