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 are the different access modifiers available in java?
What is bubble sorting in java?
Can sleep() method causes another thread to sleep?
What is the difference between the file and randomaccessfile classes?
What is the unit of plancks constant?
What is the default size of load factor in hashing based collection?
What do you understand by private, protected and public?
What is java literals?
What is set string?
What are the differences between the constructors and methods?
What is array list in java?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is a treeset class?
What is a default constructor and also define copy contrucyor?
How garbage collection is done in java?