Understanding Constant Pool

# Introduction In this challenge, we will be solving a programming problem related to understanding the constant pool in Java. The challenge involves completing the implementation of a static method called `getInstance(int i)` in the `IntegerExt` class. The objective is to use the constant pool for instances with parameters between -128 and 127 (inclusive), and not use it for parameters outside this range. Additionally, we need to ensure that the `equals` method is properly overridden to meet the required equality conditions for the given examples. By completing this challenge, we will gain a better understanding of the constant pool and how to override the `equals` method in Java.

|
60 : 00

Click the virtual machine below to start practicing