Guides
For school, university and job interviews, wherever you study: interview questions with answers, clear comparisons and roadmaps. Each guide links to the lessons that teach it step by step.
Java
Interview questions
The questions interviewers ask most, with short answers and runnable code.
Java interview questions for freshers (with answers)
35 Java interview questions for freshers with short, clear answers and runnable code: basics, OOP, strings, exceptions, collections, Java 8 and threads.
18 min read
OOP interview questions in Java (with answers)
32 OOP interview questions in Java with clear answers and runnable code: classes, encapsulation, inheritance, polymorphism, interfaces and equals.
16 min read
Java collections interview questions (with answers)
29 Java collections interview questions with clear answers and code: ArrayList, HashSet, HashMap internals, TreeMap, Comparator and concurrent maps.
15 min read
Java multithreading interview questions (with answers)
30 Java multithreading interview questions with answers and code: threads, synchronized, volatile, locks, executors, CompletableFuture and deadlocks.
16 min read
Spring Boot interview questions (with answers)
30 Spring Boot interview questions with clear answers and code: dependency injection, auto-configuration, REST controllers, JPA, transactions, security.
17 min read
SQL interview questions for Java developers
25 SQL interview questions for Java developers with answers and queries: joins, second highest salary, window functions, indexes, transactions.
15 min read
Java interview questions for 2 years experience
31 Java interview questions for developers with about 2 years experience: collections internals, streams, concurrency, JVM, Spring Boot and design.
18 min read
Concepts and comparisons
Clear side-by-side explanations of the topics people mix up.
HashMap vs TreeMap vs LinkedHashMap in Java
HashMap vs TreeMap vs LinkedHashMap in Java: order, speed, null keys and when to use each, with a comparison table and runnable examples.
9 min read
Java 8 features with examples
Java 8 features with runnable examples: lambdas, functional interfaces, method references, streams, Optional, default methods and the date-time API.
12 min read
ArrayList vs LinkedList in Java
ArrayList vs LinkedList in Java: how each works inside, time complexity, memory use and when to choose which, with a comparison table and runnable code.
8 min read
Abstract class vs interface in Java
Abstract class vs interface in Java: the differences, what changed in Java 8, when to use each, with a comparison table and runnable examples.
8 min read
== vs equals() in Java
== vs equals() in Java: reference versus content comparison, the string pool, Integer caching and writing your own equals(), with examples.
8 min read
String vs StringBuilder vs StringBuffer in Java
String vs StringBuilder vs StringBuffer in Java: immutability, speed, thread safety and when to use each, with a comparison table and runnable examples.
7 min read
Checked vs unchecked exceptions in Java
Checked vs unchecked exceptions in Java: the exception hierarchy, when the compiler forces handling, examples of each and designing your own exceptions.
8 min read
Comparable vs Comparator in Java
Comparable vs Comparator in Java: natural order versus custom order, compareTo and compare, multi-field sorting, with a comparison table and examples.
8 min read
NullPointerException in Java explained
Why Java throws NullPointerException, how to read the error message, the most common causes in student code and simple ways to fix and prevent them.
6 min read
Object-oriented programming explained for students
Object-oriented programming in plain English: classes, objects, encapsulation, inheritance, polymorphism and abstraction, with short Java examples.
8 min read
Linked lists explained for university students
How singly and doubly linked lists work in Java: nodes, references, insertion, deletion, reversal, Big O costs and the bugs students hit most.
8 min read
next() vs nextLine() in Java Scanner
The difference between Scanner next() and nextLine() in Java, why nextLine() returns an empty string after nextInt(), and the simple fix.
5 min read
AP CSA free-response questions: the four types, with worked Java examples
The four AP Computer Science A free-response question types with worked Java examples: methods, class design, ArrayList and 2D arrays.
9 min read
USACO Bronze practice problems explained: simulation and complete search
Two USACO Bronze-style problems solved step by step in Java: a simulation and a complete search, plus how to check if your solution is fast enough.
8 min read
How to debug code step by step (Java, Python, C, C++)
Learn to debug like a pro: breakpoints, step over, step into, step out and run to line, with a simple method to find any bug in Java, Python, C or C++.
7 min read
Roadmaps and careers
What to learn, in what order, and how to get ready for your first job.
Java roadmap for freshers: from first program to first job
A step-by-step Java roadmap for freshers: what to learn in each stage, in what order, which projects to build and how to get ready for interviews.
10 min read
DSA in Java roadmap: what to learn, in what order
A step-by-step DSA in Java roadmap: what to learn in order, the patterns that matter, how to practise and how to track progress.
11 min read
Spring Boot roadmap: from Java to backend developer
A step-by-step Spring Boot roadmap: what to learn before Spring, then REST APIs, JPA, security, testing and deployment, with projects for each step.
10 min read
How to prepare for Java placements
How to prepare for Java placements: the usual hiring rounds, what each tests, a week-by-week plan, resume and project tips, and mistakes to avoid.
11 min read
Java project ideas for students, from beginner to advanced
Java project ideas for students by level: console apps, OOP and collections projects, file and threading projects, and Spring Boot APIs for your resume.
9 min read
USACO: how to move from Bronze to Silver
What USACO Bronze and Silver test, the topics to learn, a weekly practice plan and the habits that help students get promoted to the next division.
7 min read
AP Computer Science A study guide: what to learn and how to practise
An AP CSA study guide: the Java topics the exam tests, the four free-response question types, common mistakes and an 8-week practice plan.
8 min read
How to choose a 1:1 programming tutor (online)
A checklist for choosing an online programming tutor for Java, Python or DSA: what to look for, questions to ask, red flags and making classes count.
6 min read
How colleges can measure placement readiness in coding
For TPOs and placement cells: what coding placement readiness means, which signals to track, a term-by-term plan and how to build fair drive shortlists.
6 min read
Python
Interview questions
The questions interviewers ask most, with short answers and runnable code.
Python interview questions for freshers (with answers and code)
35 Python interview questions for freshers with short answers and code you can run: types, functions, copies, GIL, data structures and exceptions.
18 min read
Python OOP interview questions and answers
25 Python OOP interview questions with clear answers and runnable code: self, init, inheritance, MRO, properties, ABC, dunder methods and dataclasses.
15 min read
Campus placement coding round: question patterns and how to prepare
How campus placement and online assessment coding rounds work, the question patterns that repeat, Python solutions and a 6-week plan.
9 min read
Concepts and comparisons
Clear side-by-side explanations of the topics people mix up.
List vs tuple vs set vs dict in Python
List vs tuple vs set vs dict in Python: a side-by-side table, runnable examples, speed of lookup and how to choose the right one in an interview.
8 min read
Recursion explained for students
Recursion explained step by step: the base case, the recursive case, the call stack and how to trace a recursive function, with simple Python examples.
7 min read
Big O notation explained simply
Big O notation explained for students: O(1), O(log n), O(n), O(n log n) and O(n²), how to work out the complexity of code, and common exam questions.
7 min read
The standard algorithms for computer science exams
Linear search, binary search, bubble sort, insertion sort and merge sort explained with Python code and when to use each, for school CS exams.
8 min read
Pseudocode vs Python for computer science exams
How to write clear pseudocode in GCSE, IGCSE and A level computer science exams, how it maps to Python, and the mistakes that lose marks.
7 min read
Binary and hexadecimal conversion explained
Convert between denary, binary and hexadecimal step by step, with place value tables, worked examples, Python checks and the mistakes students make.
6 min read
Trace tables explained
How to complete a trace table in computer science exams: set up columns, follow each line, track loops and outputs, with worked Python examples.
6 min read
SQL joins explained for students
Understand SQL joins with two small tables: INNER, LEFT, RIGHT, FULL OUTER and self joins, what each returns and the mistakes students make.
7 min read
Off-by-one errors and loops
Why loops run one time too many or too few, how range and list indexes cause off-by-one errors in Python, and simple checks to avoid them.
6 min read
Dynamic programming for beginners
Dynamic programming explained simply: overlapping subproblems, memoization, bottom-up tables and how to build a DP solution, with Python examples.
8 min read
Roadmaps and careers
What to learn, in what order, and how to get ready for your first job.
DSA in Python roadmap: what to learn, in what order
A step-by-step DSA in Python roadmap: the order to learn topics, the patterns and Python tools that matter, common mistakes and a practice routine.
11 min read
Python roadmap for freshers: from zero to campus placements
A clear Python roadmap for college students in five stages: Python, DSA, core CS and SQL, resume projects and interview preparation, with a 16-week plan.
9 min read
Python project ideas for students: beginner to resume-ready
Python project ideas for college students in three levels, from beginner scripts to resume-ready backend projects, and how to present them to recruiters.
7 min read
How to revise for computer science exams
A practical revision plan for school and university computer science exams: theory, programming practice, past papers and the final weeks.
7 min read
GCSE Computer Science Python practice: the skills to master and how to practise
The Python skills GCSE Computer Science programming questions test, worked examples of common tasks and a weekly practice routine for the exam.
7 min read
AP Computer Science Principles study guide: big ideas, the Create task and practice
An AP Computer Science Principles study guide: the big ideas, reading exam pseudocode, the Create performance task and a simple revision plan.
7 min read
A-Level Computer Science project ideas (NEA) and how to pick a good one
A-Level Computer Science NEA project ideas with the complexity examiners look for, how to choose a real user, and a plan from analysis to evaluation.
7 min read
Coding for kids and teens: where to start, by age
A parent's guide to coding for kids and teens: what to learn at each age, from block coding to Python and Java, plus first projects and habits.
6 min read