Why is java.lang.Integer.valueOf a flyweight pattern?

Viewed 5119

Why is java.lang.Integer.valueOf a flyweight pattern? I tried to find the reason but wasn't able to.

2 Answers
Related