+1 vote
in JAVA by
Write a program to do bubble sort on an array in java.

1 Answer

0 votes
by

What will this return 3*0.1 == 0.3? true or false?

This is one of the really tricky questions and can be answered only if your concepts are very clear. The short answer is false because some floating-point numbers can not be represented exactly.

Related questions

+3 votes
asked May 13, 2021 in JAVA by rajeshsharma
+1 vote
asked Oct 24, 2020 in JAVA by sharadyadav1986
...