Contents    Page-10    Prev    Next    Page+10    Index   

Consider the following code:


   i = 200;
   j = i;
   i++;
   j++;
What is the value in Java of ( i == j ) ,
if i and j are both int or both Integer?

  • A: true for both cases
  • B: true for int, false for Integer
  • C: false for int, true for Integer
  • D: false for both cases
  • E: WTF

    Answer