Preethi+Groktestuk10

27%
Flag icon
boxing. The JVM defines primitive types (boolean, byte, char, float, int, long, short, and double) that are stack-allocated rather than heap-allocated. When a generic type is introduced, for example, scala.collection.immutable.List, the JVM references an object equivalent, instead of a primitive type. In this example, an instantiated list of integers would be heap-allocated objects rather than integer primitives. The process of converting
Scala High Performance Programming
Rate this book
Clear rating