Java

Articles on the Java programming language.
Oct
28
Lists in Java

Lists in Java

Lists are a collection of elements that are ordered and not unique.
5 min read
Oct
25
Nested vs Inner Classes in Java

Nested vs Inner Classes in Java

Nested classes cannot access an outer classes variables or methods, whereas inner classes can.
2 min read
Oct
24
Nested Classes in Java

Nested Classes in Java

Nested classes are classes declared inside another class marked as static.
1 min read
Oct
23
Inner Classes in Java

Inner Classes in Java

Inner classes are non-static classes defined inside of another class.
2 min read
Oct
22
Size vs Capacity in Java Collections

Size vs Capacity in Java Collections

Size is the number of elements in a collection, whereas capacity is the size of the backing array.
2 min read
Oct
21
Infinite Streams in Java

Infinite Streams in Java

Infinite streams are similar to infinite loops but use a stream instead.
2 min read
Oct
18
Spliterator in Java

Spliterator in Java

Spliterators are used in Java streams and a way to process elements in parallel.
3 min read
Oct
17
ListIterator in Java

ListIterator in Java

ListIterator is a bidirectional iterator used in collections that implement the List interface.
2 min read
Oct
16
Iterators in Java

Iterators in Java

Iterators are a way to traverse over the elements in a collection.
3 min read
Oct
15
Arrays in Java

Arrays in Java

Arrays are a container object that contain a fixed number of elements of the same type.
4 min read