What happens when you assigned a 'double' value to
a 'String'?
Answer Posted / vinay kumar
Actually java doesn't have string type
there is only 'char' type.
Here String is a class (in java) ,
but i am saying one thing,
these comes 1 & if not 2 & if not 3
1) if in a line have float value that total conversion value
comes a float value.
other wise
2) if in a line have double value that total conversion
value comes a double value.
otherwise
3) if in a line have long value that total conversion value
comes a long value.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between hashmap and hashtable? What is an interface?
How many types of exception can occur in a java program?
Can a java program have 2 main methods?
What is difference overloading and overriding?
Explain runtime exceptions?
What is return in java?
How many types of design patterns are there?
why not override thread to make a runnable? : Java thread
Can you access the private method from outside the class?
Is java owned by oracle?
what is the messsage u r going to get from an objectoriented programing?
Explain different types of wrapper classes in java?
How do you know if a value is nan?
What are static variables and functions?
How many bits is size_t?