I have two java objects that are instantiated from the same class.
Ob x = new Ob( );
Ob z = x;
Since it is of the same type, is it not supposed to execute the statements in the 'if' part?
if (x == z) {
  //Do something
}
else {
   //Do something else
}
 
     
    