+1 vote
in JAVA by
What will this return 3*0.1 == 0.3? true or false?

1 Answer

0 votes
by

This is one of the really tricky questions. Out of 100, only 5 developers answered this question and only of them have explained the concept correctly. The short answer is false because some floating point numbers can not be represented exactly.

Related questions

+1 vote
asked Jan 24, 2020 in JAVA by rahuljain1
0 votes
asked Feb 12, 2020 in JAVA by rahuljain1
...