In Java how does the ==
operator internally work, I'm not able to analyze
What is the output for the below code
public class Demo {
public static void main(String[] args) {
System.out.println(0.1 * 2 == 0.2);
System.out.println(0.1 * 3 == 0.3);}
}
When I execute this code, I am getting : true false output. How it comes I'm not able to understand. How does JVM calculate the operations?