Skip to lesson

Choosing What to Revise for Your Target Role

A drive is days away and the syllabus feels endless. Interviewers cannot test everything either: they test what the role needs and what is on your resume, so a good plan starts from the role, not from page one.

Core modules for every fresher

A core module is an interview-prep module that almost every Java fresher interview tests, whatever the company: Core Java, OOP, Collections, Output Prediction, DSA, Projects and Mock Interviews.

Seven modules come up in almost every fresher interview. Here they are in one place, with what each one drills.

Example 1 · The core list in one place

Text
Core for every fresher (Section 23)  1. Core Java Questions              -> definitions + output puzzles  2. OOP Questions                    -> four pillars, equals/hashCode  3. Collections & Generics Questions -> List/Set/Map, HashMap inside  4. Output Prediction & Debugging    -> trace code by hand  5. DSA in Interviews                -> arrays, strings, hashing first  6. Talking About Your Projects      -> 2-minute walkthrough  7. Mock Technical Interviews        -> full timed practice
Rule
Revise these first, to depth.

What this code does

  • These seven modules match the topics most fresher technical rounds cover, whatever the company type.
  • Mock interviews are on the core list on purpose: practising aloud under time is a skill of its own.

Revise these first and to a good depth. A candidate who is solid on them usually clears the first technical round of a service company, and has the base that product companies build on.

Start your drills here:

Optional modules and when they matter

An optional module is an interview-prep module that some roles test often and others rarely: Streams and Modern Java, Multithreading and JVM, and Backend, Spring and Database questions.

Three modules depend on the role. Below, each one is linked to the stage of the course that teaches it.

Example 2 · Optional modules and the stages behind them

Text
Optional module                        Built on                   Most useful forStreams & Modern Java Questions        Stage 3 (Section 8)        most Java rolesMultithreading & JVM Questions         Stage 3 (Sections 10-11)   product SDE, backendBackend, Spring & Database Questions   Stages 4-5 (12-22)         Java backend roles
Rule
Add these after the core, in the order of your interviews.

What this code does

  • Each optional module revises a whole stage of the course, so it takes more time; plan for it.
  • If your project uses Spring Boot or SQL, revise those parts even for a service role, because project questions will reach them.

Streams come up in many Java interviews today, so a short revision is worth it for most people. Multithreading and JVM questions are more common for experienced roles and some product companies. Spring and databases matter a lot for Java backend roles and for any project built with them, such as ShopLite.

Revise:

Mapping your target role to modules

Service fresher, product SDE and Java backend are three common role types: a fresher at a large IT services firm, a software development engineer at a product company, and a Java developer working with Spring, REST and SQL.

Read the job description, match it to one of the three role types, and plan from it. This program prints the plan for each role.

Example 3 · A role-to-modules planner

RolePlan.javaJava
import java.util.LinkedHashMap;import java.util.List;import java.util.Map;
public class RolePlan {    static final List<String> CORE = List.of("Core Java", "OOP", "Collections", "Output Prediction",            "DSA", "Projects", "Mock Interviews");
    static final Map<String, List<String>> EXTRA = new LinkedHashMap<>();    static final Map<String, String> DSA_LEVEL = new LinkedHashMap<>();
    static {        EXTRA.put("Service fresher", List.of("Streams (light)"));        EXTRA.put("Product SDE", List.of("Streams", "Multithreading & JVM"));        EXTRA.put("Java backend", List.of("Streams", "Multithreading & JVM", "Spring & Database"));        DSA_LEVEL.put("Service fresher", "easy to medium");        DSA_LEVEL.put("Product SDE", "medium to hard, with complexity");        DSA_LEVEL.put("Java backend", "easy to medium");    }
    public static void main(String[] args) {        for (String role : EXTRA.keySet()) {            System.out.println(role);            System.out.println("  core:  " + CORE.size() + " modules");            System.out.println("  extra: " + String.join(", ", EXTRA.get(role)));            System.out.println("  DSA:   " + DSA_LEVEL.get(role));        }    }}
Output
Service fresher
  core:  7 modules
  extra: Streams (light)
  DSA:   easy to medium
Product SDE
  core:  7 modules
  extra: Streams, Multithreading & JVM
  DSA:   medium to hard, with complexity
Java backend
  core:  7 modules
  extra: Streams, Multithreading & JVM, Spring & Database
  DSA:   easy to medium

What this code does

  • Every role gets the same core; only the extra modules and the DSA depth change. This is a sensible default, not a rule: always read the actual job description.
  • A LinkedHashMap keeps the roles in the order they were added, so the printout is always in the same order.

A service fresher role tests the core well. A product SDE role tests DSA much harder. A Java backend role tests the core plus Spring, REST and SQL.

If you apply to all three, revise the core first, then add the optional modules in the order of your next interviews. Your own projects always count: anything on your resume is fair game.

Find the bug

Find the wrong plan line

Select the line that is wrong.

Plan for a Java backend role. Which line is wrong?

Round 1 of 3

Going back to earlier sections for a weak topic

Drilling questions on a topic you never understood only builds memorised lines. This program looks up where each weak topic was taught.

Example 4 · Mapping weak topics back to course sections

WeakTopicMap.javaJava
import java.util.LinkedHashMap;import java.util.List;import java.util.Map;
public class WeakTopicMap {    public static void main(String[] args) {        Map<String, String> taughtIn = new LinkedHashMap<>();        taughtIn.put("String pool", "Section 1 Strings; Section 3 References, Casting & Immutability");        taughtIn.put("equals and hashCode", "Section 3 Object Class & Equality");        taughtIn.put("HashMap", "Section 4 Maps");        taughtIn.put("Checked exceptions", "Section 1 Exception Basics; Section 9 Exceptions in Depth");        taughtIn.put("Thread safety", "Section 10 Race Conditions & synchronized");        taughtIn.put("Sliding window", "Section 5 Sliding Window");
        List<String> myWeakTopics = List.of("equals and hashCode", "Sliding window", "Docker volumes");        for (String topic : myWeakTopics) {            String where = taughtIn.getOrDefault(topic, "not in my map yet: search the course outline");            System.out.println(topic + " -> " + where);        }    }}
Output
equals and hashCode -> Section 3 Object Class & Equality
Sliding window -> Section 5 Sliding Window
Docker volumes -> not in my map yet: search the course outline

What this code does

  • The map links each topic to the section and module that taught it, using the real names from the course outline.
  • getOrDefault handles a topic you have not mapped yet, such as Docker volumes (Section 20), with a reminder instead of null.

When a topic feels shaky, go back to the lesson that taught it, redo two or three practice items, then drill the questions. Revise: String equals vs == (opens in a new tab), the equals method (opens in a new tab), how HashMap works (opens in a new tab), checked vs unchecked exceptions (opens in a new tab) and why count++ is unsafe (opens in a new tab).

Course map by stage:

  • Sections 1-4 (Stage 1): basics, Git, OOP, collections
  • Sections 5-7 (Stage 2): problem-solving patterns, DSA, coding challenges
  • Sections 8-11 (Stage 3): streams, files and exceptions, concurrency, JVM
  • Sections 12-22 (Stages 4-5): SQL, JDBC, web and REST, Spring, testing, design, deployment, system design, projects

Predict the output

Predict the tracker code

Read each snippet and pick what it prints.

Round 1 of 3

List<Integer> scores = new ArrayList<>(List.of(4, 2, 5, 2, 3));
Collections.sort(scores);
System.out.println(scores.get(0) + " " + scores.get(scores.size() - 1));

A personal revision tracker

A revision tracker is a list of topics with your own confidence score from 1 to 5 and a short note on what went wrong, updated after every practice session so you always revise the lowest scores first.

The note matters most. This tracker sorts topics by confidence and shows the next action, weakest first.

Example 5 · A revision tracker that puts the weakest topics first

RevisionTracker.javaJava
import java.util.ArrayList;import java.util.Comparator;import java.util.List;
record Topic(String name, int confidence, String note) {    String action() {        if (confidence <= 2) return "re-learn from the section";        if (confidence == 3) return "drill questions";        return "quick review";    }}
public class RevisionTracker {    public static void main(String[] args) {        List<Topic> topics = new ArrayList<>(List.of(                new Topic("OOP pillars", 4, "good examples ready"),                new Topic("Integer cache", 2, "said 128 == 128 is true"),                new Topic("HashMap inside", 3, "unsure about resize"),                new Topic("Exceptions", 2, "mixed up throw and throws"),                new Topic("String pool", 5, "solid")));
        topics.sort(Comparator.comparingInt(Topic::confidence).thenComparing(Topic::name));
        for (Topic t : topics) {            System.out.printf("%d  %-15s %-26s (%s)%n", t.confidence(), t.name(), t.action(), t.note());        }        long weak = topics.stream().filter(t -> t.confidence() <= 2).count();        System.out.println("Weak topics to re-learn first: " + weak);    }}
Output
2  Exceptions      re-learn from the section  (mixed up throw and throws)
2  Integer cache   re-learn from the section  (said 128 == 128 is true)
3  HashMap inside  drill questions            (unsure about resize)
4  OOP pillars     quick review               (good examples ready)
5  String pool     quick review               (solid)
Weak topics to re-learn first: 2

What this code does

  • Sorting by confidence, then by name, puts the two score-2 topics at the top in a fixed order, so you always start with the weakest.
  • The note column keeps the exact mistake (said 128 == 128 is true), which tells you precisely what to re-learn.

A note such as "confused == and equals on Integer 128" tells you exactly what to fix; "wrappers weak" does not. Keep the tracker in a notebook, a spreadsheet or a tiny Java program like this one, and add a row for each ShopLite feature you must explain, such as "orders API: unsure about transactions".

Revise: mock interview self-review (opens in a new tab).

Order of execution

One revision loop

Put one round of the revision loop in the order you would do it.

Next step

Check your understanding

12 quick questions