🔑 Core Java (Basics + OOP)
Write a program to check if a number is prime.
Implement factorial using recursion.
Reverse a string without using built-in functions.
Explain the difference between == and .equals() with examples.
Create a Student class with fields, constructors, and methods. Demonstrate
inheritance.
What is polymorphism? Show compile-time vs runtime polymorphism with code.
Explain abstraction in Java. Implement using abstract classes or interfaces.
📚 Collections & Data Handling
Difference between ArrayList and LinkedList. Write code to demonstrate.
Implement a frequency counter for characters in a string using HashMap.
Sort a list of integers using [Link]().
Write a program to remove duplicates from a list using HashSet.
Explain how HashMap works internally (hashing, collisions).
⚠️ Exceptions & Advanced Features
Write a program to handle ArithmeticException (divide by zero).
Create a custom exception class and use it.
Explain checked vs unchecked exceptions with examples.
Demonstrate use of try-with-resources for file handling.
🚀 Modern Java (Java 8+)
Write a program using streams to filter even numbers from a list.
Use map and reduce to calculate the sum of squares of numbers.
Demonstrate a lambda expression for sorting strings by length.
Explain functional interfaces. Implement one with @FunctionalInterface annotation.
🎯 How to Use These
Jan 12: Focus on Q1–7 (Core Java + OOP).
Jan 13: Focus on Q8–12 (Collections) + Q13–15 (Exceptions).
Jan 14: Focus on Q16–20 (File handling + Java 8 features).
By Jan 14 night, you’ll have solved all 20 and be interview-ready in Java.