does anyone have an explanation for the a.equals(b) and a==b in the above code..? you can refer the image also, which shows the output for the following code.
public class Main
{
public static void main(String[] args) {
Integer a=new Integer(10);
double b=10;
System.out.println(a==b);
System.out.println(a.equals(b));
}
}