What is the output of following program?
- package com.instanceofjava;
- public class A{
- public static void main(String[] args) {
- Integer i1 = 128;
- Integer i2 = 128;
- System.out.println(i1 == i2);
- Integer i3 = 127;
- Integer i4 = 127;
- System.out.println(i3 == i4);
- }
- }
- false
- true
No comments:
Post a Comment