2,381 views
1 votes
1 votes
What is the result of expression 5.45 +
"3.2"?
(a) The double value 8.6 (b) The string ""8.6"
(c) The long value 8. (d) The String "5.453.2"

1 Answer

0 votes
0 votes

The result of the expression depends entirely on the receving Data Type. If  receiving type is treated as String then, 

Result will be  5.453.2 

If it is treated as any other Primitve Type , then the program will throw an Error .

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
2
1 votes
1 votes
2 answers
3