Users Pricing

forum

Home Forums How Autoboxing is going here? – MindStick

How Autoboxing is going here?

Anonymous User 1790 28 Apr 2015
Hi there 

This is my code 

public class Autoboxing {
     
     
    public static void main(String[] args) {
 
               double x2 = 0.0/0.0, y2 = 0.0/0.0;
            Double a2 = x2, b2 = y2;
            StdOut.println(x2 == y2);
            StdOut.println(!a2.equals(b2));
    }}
 


its Output is :
false 
false 

I am expecting 
false

1 Answers

Anonymous User 28 Apr 2015 Accepted Answer
Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md