dvas0004 / NerdNotes

A collection of notes: things I'd like to remember while reading technical articles, technical questions I couldn't answer, and so on.
11 stars 0 forks source link

Primitive Types vs Reference Types (Object Wrappers) #48

Open dvas0004 opened 5 years ago

dvas0004 commented 5 years ago

image

Primitive Types live in the stack, while Reference Types live in the heap. This determines how fast the object is accessed. Primitive types are faster

dvas0004 commented 5 years ago

https://www.baeldung.com/java-primitives-vs-objects