PYQPulse
HomeMocksPracticePYQsUpdatesDashboard
PYQPulse

Timing-accurate mock tests and PYQs for SSC, Banking and Railway exams — so the real paper feels like a revision.

Exams

  • SSC exams
  • Banking exams
  • Railway exams
  • All exams

Practice

  • Practice questions
  • Mock test series
  • Sectional tests
  • Year-wise PYQs
  • Performance analytics

Company

  • About us
  • Help Centre
  • Pricing
  • Sign in

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • hello@testwala.co.in
  • Telegram
  • +91 62816 87760

Practice interface modeled on the official exam pattern — not the official examination. PYQPulse is not affiliated with the Staff Selection Commission, IBPS, SBI, RBI, NABARD, SEBI or Indian Railways.

© 2026 PYQPulse. All rights reserved.

Built for aspirants, by aspirants.

HomeMocksPracticeStats
  1. Home
  2. ›
  3. PYQs
  4. ›
  5. ibps-so
  6. ›
  7. 2016
  8. ›
  9. Q6

ibps-so 2016 · Question 6 of 394

The reconciliation utility compares the instrument numbers returned by two systems. The reviewer has objected that the comparison is written with the identity operator upon boxed values rather than with equals, and the author has replied that it has always worked. The committee has asked for the actual output of the following fragment, which uses one pair of small values and one pair of larger ones. Integer a = 127, b = 127; Integer c = 128, d = 128; System.out.println((a == b) + " " + (c == d) + " " + c.equals(d)); The output of the fragment is:

  1. Atrue true true — identity upon a wrapper always follows the value it wraps
  2. Btrue false true — identity holds for 127, which lies within the cached range, but not for 128, which does not, while equals compares the wrapped values themselvesCorrect
  3. Cfalse false true — identity upon a wrapper never follows the value it wraps
  4. Dtrue false false — equals upon a wrapper compares references exactly as == does
  5. Efalse true true — the cache holds the larger values and not the smaller ones

Answer: B. true false true — identity holds for 127, which lies within the cached range, but not for 128, which does not, while equals compares the wrapped values themselves

Official answer key verified. Detailed explanation coming soon.

Source: IBPS SO 2016 IT Officer (held 28-29 Jan 2017, single-stage CWE) - Prepp · memory-based

← Q5View full paper (394 questions)Q7 →

Practice the full ibps-so 2016 paper

Timed test with all 394 questions, just like the real exam.

Start test