[Java] Integer wrapper class reference

		Integer a = new Integer(1);
		Integer b = new Integer(1);
		System.out.println(a == b); // #=> false
		Integer c = 127;
		Integer d = 127;
		System.out.println(c == d); // #=> true
		c = 128;
		d = 128;
		System.out.println(c == d); // #=> false


Recommended Posts

[Java] Integer wrapper class reference
Java class methods
[Java] Class inheritance
java Scanner class
Java HashMap class
java (abstract class)
Java8 method reference
[Java] Nested class
Java anonymous class
About Java class
[java] abstract class
java8 method reference
[Java] Object class
JAVA reference materials
Java local class
My Java reference
About class division (Java)
About Java StringBuilder class
[Java] About Singleton Class
Java inner class review
Java class type field
Java programming (class method)
About Java String class
Java programming (class structure)
About java abstract class
Java memo (standard class) substring
What is a wrapper class?
Java tips --StaticUtility class modifier
Java VB.net service reference halfway
Java inflexible String class substring
Java memo (standard class) length
[Implementation] Java Process class notes
About Java class loader types
How to use java class
[Java] Comparator of Collection class
Java class definition and instantiation
Java learning memo (abstract class)
Sftp (JSch wrapper) in Java
Summary of Java Math class
[Java] What is class inheritance?
About Java class variables class methods
[Java basics] What is Class?
[Java] Wrapper that executes private method of object from outside class
Create an immutable class with JAVA
Why are class variables needed? [Java]
Call Kotlin's sealed class from Java
[Java] Object-oriented syntax --class method / argument
Various methods of Java String class
[Java] Memo for naming class names
How to disassemble Java class files
Kotlin Class to send to Java developers
How to use the wrapper class
Basic data types and reference types (Java)
Java primitive types, reference types, Immutable, Mutable
Java reference mechanism (stack and heap)
Java array variables are reference types
StringBuffer and StringBuilder Class in Java
How to decompile java class files
[Java] How to use LinkedHashMap class
Java pass by value and pass by reference
java (use class type for field)