Coding on a Whiteboard or Paper in Offline Interviews
40 min · Intermediate
In an offline interview (campus drives, walk-ins, onsite rounds) you often write code on a whiteboard or paper with no compiler. The skill is different from typing in an IDE: you plan the space, write Java that would compile without help, and prove it works with a dry run, all while explaining aloud.
Topics in this lesson
- Step by step at the board
- Board layout, handwriting and naming
- Writing Java without an IDE: the syntax that matters
- Dry running with a variable table, then edge cases aloud
- Shared editor habits: no autocomplete, compile mentally, test calls in main
Interview questions this lesson answers
- How do you start when given a whiteboard problem?
- Why talk while writing on the board?
- How do you lay out the board?
- What if your handwriting is messy?
- Which Java syntax mistakes are most common on paper?
- Do you need to write import statements on the board?
- What do interviewers forgive and what do they not?
- What is a dry run?
- How do you choose the input for a dry run?
- What if the dry run shows a bug?
Sign in free to continue this lesson
Create a free account to read every lesson, practise with the exercises and keep track of your progress.