forum

home / developersection / forums / how autoboxing is going here?

How Autoboxing is going here?

Anonymous User 1669 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 
true 
false

Updated on 28-Apr-2015

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By