fork download
  1. class TestComparison {
  2. public static void main(String[] args) throws Exception {
  3. boolean b = true;
  4. Object o = new Boolean(true);
  5. System.out.println("comparison result: "+
  6. (o == b)); // Eclipse complains about this expression
  7. }
  8. }
Success #stdin #stdout 0.06s 381184KB
stdin
Standard input is empty
stdout
comparison result: false