Arrays and Strings

One and multi dimensional arrays, String, the string pool and builders.

4 notes

Notes

Java

Arrays in Java

An array is a fixed size object holding elements of one type, indexed from zero, with the length fixed at creation.

Read more
Java

Strings in Java

String is an immutable object with a shared literal pool, and both facts explain how comparison, concatenation and performance behave.

Read more