Big O Notation Explained for Java Developers
Understand Big O notation with plain-English explanations and Java examples for O(1), O(log n), O(n), O(n log n) and O(n²), plus the complexity of the collections you use every day.
Understand Big O notation with plain-English explanations and Java examples for O(1), O(log n), O(n), O(n log n) and O(n²), plus the complexity of the collections you use every day.
Learn how binary search works, implement it iteratively and recursively in Java, avoid the classic overflow bug, and use variations to find first and last occurrences.
Create a working CRUD REST API with Spring Boot 3, covering the project setup, records, controller, service, validation, proper HTTP status codes and error handling, and how to test it with curl.
Solve the classic palindrome problem five ways, using StringBuilder, two pointers, recursion, streams and a version that ignores spaces and punctuation, with a comparison of their trade-offs.
The core Java questions entry-level candidates are asked most often, with clear, concise answers and short code examples you can explain confidently.
Stack traces look scary but follow a simple pattern. Learn to read one line by line, find the real cause in “Caused by” chains, and fix the five exceptions beginners hit most.
When should a class extend another, and when should it contain one? Learn inheritance and composition in Java, the fragile base class problem, and a simple rule for choosing.
A clear comparison of interfaces and abstract classes in modern Java, including default methods, sealed types, real examples and the question interviewers love to ask.
Create, fill, loop over, sort, search and safely modify an ArrayList, plus how it works inside and when to choose another collection.
Understand Java’s exception hierarchy, the difference between checked and unchecked exceptions, how to use try, catch, finally and try-with-resources, and how to write your own exceptions.