Quantcast
Viewing latest article 11
Browse Latest Browse All 37

Immutability of Java’s Integer

As Wiki states In object-oriented […], an immutable object is an object whose state cannot be modified after it is created. That totally applies to Java’s Integer. Let’s take a look at the code to talk about: [crayon-5733e940b20fa922993648/] Integer is a class then why variables a and b have different values?! – you may ask. … Continue reading Immutability of Java’s Integer

Viewing latest article 11
Browse Latest Browse All 37

Trending Articles