I'm currently reading the book called Java the complete reference. In chapter 18 , there is a introduction for Primitive Type Wrappers.
As mentioned in Part I of this book, Java uses primitive types, such as int and char, for performance reasons. These data types are not part of the object hierarchy. They are passed by value to methods and cannot be directly passed by reference. Also, there is no way for two methods to refer to the same instance of an int At times, you will need to create an object representation for one of these primitive types. For example, there are collection classes discussed in Chapter 19 that deal only with objects; to store a primitive type in one of these classes, you need to wrap the primitive type in a class.
What does the author actually mean in the the lines given in the bold? there is no way for two methods to refer to the same instance of an int. It would be great if someone explain this line using an example:) Thank You in advance.