Free · Practical · Up to date
Learn to code with clear, practical tutorials
A complete, step-by-step Core Java course with runnable examples and real output. More technologies are on the way.
Explore technologies
All tutorials →Latest tutorials
Anonymous Class vs Lambda
Anonymous classes and lambdas can both implement an interface inline. Learn the differences in syntax, this, state, interfaces supported and performance.
Difference Between Array and ArrayList
Array vs ArrayList in Java: fixed vs dynamic size, primitives vs objects, length vs size(), performance, and when to use each, with examples.
ArrayList Internal Working
How ArrayList works inside: the internal array, default capacity of 10, growth by 1.5 times, copying on resize, and the cost of add, get and remove.
Difference Between ArrayList and LinkedList
ArrayList vs LinkedList in Java: internal structure, speed of get, add and remove, memory use, and how to choose, with a timing example.
Difference Between ArrayList and Vector
ArrayList vs Vector in Java: synchronization, performance, growth rate, legacy methods and iteration. Learn the differences and which one to use.
Arrays.asList vs List.of
Arrays.asList and List.of both create lists quickly, but differ in mutability, null support and their link to the array. Learn every difference with examples.
Learning paths
482+ Java lessons, and more on the way
Get new lessons and new technologies in your inbox as they are published.
No spam. Unsubscribe any time.