Latest

Nov
04
Shadowing and Using this in Java

Shadowing and Using this in Java

When variables or methods are shadowed, you can fix this by using this.
2 min read
Nov
01
Java Class Constructors

Java Class Constructors

Constructors are a block of code that is executed when creating an instance of that class.
5 min read
Oct
31
Classes vs Objects

Classes vs Objects

Classes a type of template, whereas objects are an instance of a class.
1 min read
Oct
30
Local Classes in Java

Local Classes in Java

Local classes are classes defined inside of a method.
2 min read
Oct
29
Proper Use of Nested Classes

Proper Use of Nested Classes

Nested classes are used to encapsulate a class.
2 min read
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