News for hackers. Stuff that matters.
Re:IT Runs on Java 8 by dbaupp on Friday May 10, 2019 @08:09PM (#19883479)
Yes, those value classes are still heap/GC allocated objects.

Value types are a generalisation of `int`, `long`, `float` (etc), where values are stored inline, not allocated on the heap. For instance, a `Pair<long, double>` that isn't a pointer, but is instead the exactly the size of a long plus a double, and is the same as writing `long first; double second;` inline.

There are no comments on this comment yet.