curric

View on GitHub

./curric/basics/Type/

Type

reference: Basic Types and Arrays and Strings

All of the above types are known as primitives, except String. Primitive types begin with a lowercase letter and are the types you’d expect a language to handle intuitively. However, they don’t have all the features of complex types like String and ArrayList, which you’ll learn about later. For this reason, Java has a workaround known as auto-encapsulation where it will automatically treat primitives like int as complex wrappers like Integer, and vice versa, depending on context.