Skip to content

Interview questions

Java J2ee Developer interview questions, from 174 real job postings

What employers ask Java J2ee Developer candidates about, based on the skills their open postings list. Each question says what a strong answer shows.

Open postings
174

174 list skills

Top skill
Java

in 100% of postings

Fully remote
0%

of open postings

Posted pay
–

Not enough posted pay

What employers ask for

Share of 174 open Java J2ee Developer postings that list each skill.

Technical questions

Three questions for each of the 6 skills Java J2ee Developer postings ask for most.

Java

In 100% of postings
  1. 1

    Explain the difference between checked and unchecked exceptions in Java.

    What a strong answer shows: Describes checked exceptions must be caught or declared; unchecked (RuntimeException) don't. Gives an example like IOException (checked) vs NullPointerException (unchecked) and when each is appropriate.

  2. 2

    You're building a service that needs to handle multiple concurrent requests. Walk me through your approach.

    What a strong answer shows: Mentions threads or thread pools (like ExecutorService), explains why they don't just create a thread per request, and discusses synchronization concerns or thread-safe data structures if relevant.

  3. 3

    Tell me about a time you optimized a Java application that was running slowly or using too much memory.

    What a strong answer shows: Describes what was slow (database queries, loops, object creation), what tool they used to profile it (JProfiler, async-profiler, heap dumps), and what they changed and measured.

SQL

In 2% of postings
  1. 4

    What is the difference between INNER JOIN, LEFT JOIN, and OUTER JOIN, and when would you use each?

    What a strong answer shows: Explains INNER JOIN returns only matching rows; LEFT JOIN keeps all left rows plus matches; OUTER JOIN keeps unmatched rows from both sides; gives an example scenario for each.

  2. 5

    You have a query that's running slowly on a large table. Walk me through how you'd diagnose and optimize it.

    What a strong answer shows: Mentions running EXPLAIN to see the execution plan, checking for missing indexes, looking for full table scans, and testing an optimized version with measurements before deploying.

  3. 6

    Tell me about a time you wrote a complex query to solve a business question that was harder than it first seemed.

    What a strong answer shows: Describes what the business asked, why the query was tricky (maybe multiple joins, aggregations, window functions, or temporal logic), and how they verified it was correct.

JavaScript

In 2% of postings
  1. 7

    What's the difference between var, let, and const in JavaScript?

    What a strong answer shows: Explains var has function scope and hoisting quirks; let and const have block scope; const prevents reassignment but doesn't make objects immutable. Gives an example of when this matters.

  2. 8

    You notice a web page is loading slowly. Walk me through how you'd identify whether the problem is in your JavaScript code.

    What a strong answer shows: Mentions opening browser DevTools (Performance tab or Network tab), checking for long-running scripts, measuring execution time, and looking at which operations are blocking the main thread.

  3. 9

    Tell me about a time you fixed a tricky bug related to asynchronous code or callbacks.

    What a strong answer shows: Describes a specific issue (race condition, callback hell, unhandled promise, etc.), what they tried first, how they solved it, and what they'd do differently now.

Spring

In 2% of postings
  1. 10

    What is a Spring Bean and how does dependency injection work in Spring?

    What a strong answer shows: Explains beans are objects managed by Spring container, @Bean and @Component mark classes for injection, @Autowired injects dependencies; mentions Spring handles lifecycle and scope (singleton, prototype, request).

  2. 11

    You're building a REST API with Spring Boot that needs to handle authentication and return JSON responses—how do you structure it?

    What a strong answer shows: Describes @RestController, @RequestMapping for routes, mentions Spring Security for auth, uses @GetMapping/@PostMapping, automatic JSON serialization; shows familiarity with Spring Boot's defaults.

  3. 12

    Tell me about a Spring application you built and an issue with performance, testing, or configuration you had to solve.

    What a strong answer shows: Names the app, describes a real problem (slow database queries with Hibernate, complex Spring configuration, testing with mocks, managing application.properties) and their solution.

CSS

In 1% of postings
  1. 13

    Explain the CSS cascade and specificity. When would you use !important and why should you generally avoid it?

    What a strong answer shows: Defines cascade as later rules override earlier ones, explains specificity scoring (inline > IDs > classes > elements), notes !important breaks the cascade and makes debugging harder.

  2. 14

    You're building a layout that needs to work on phones, tablets, and desktops. Walk me through how you'd approach this with CSS.

    What a strong answer shows: Mentions mobile-first approach, describes using media queries with breakpoints, explains using flexible units (em, rem) over pixels, discusses testing at actual sizes not just resizing.

  3. 15

    Tell me about a time you solved a layout problem in CSS that turned out to have a simple solution.

    What a strong answer shows: Describes the problem in detail (centering, spacing, overflow), explains what they tried first, names the CSS property that actually fixed it and why it worked.

HTML

In 1% of postings
  1. 16

    When would you use semantic HTML elements like `<article>`, `<section>`, and `<nav>` instead of just `<div>` tags?

    What a strong answer shows: Explains semantic tags improve accessibility for screen readers, help search engines understand structure, make code more readable, and are required for proper document outline.

  2. 17

    A designer hands you a mockup with a form that needs to validate email and phone number while typing. What HTML attributes or elements would you use to handle this?

    What a strong answer shows: Mentions input type attributes (email, tel), describes using pattern attribute for custom validation, notes that browser validation is a first line of defense but server validation is always needed.

  3. 18

    Tell me about a time you had to fix accessibility issues in existing HTML markup.

    What a strong answer shows: Describes a specific problem (missing alt text, unlabeled form fields, broken heading hierarchy), names the tool they used to find it (axe, WAVE, screen reader), explains what they changed.

Behavioral questions

Have one real story ready for each.

  1. 19

    Tell me about a time you had to debug a production issue—what was the problem and how did you solve it?

    What a strong answer shows: Describes the specific error or symptom, the debugging steps they took (logs, profiling, etc.), and what root cause they found. Shows they can isolate problems methodically, not just apply random fixes.

  2. 20

    Describe a situation where you had to refactor legacy code—what made it necessary and what approach did you take?

    What a strong answer shows: Explains the actual problems in the old code (performance, maintainability, bugs), the refactoring strategy they used, and how they verified nothing broke. Shows they balance pragmatism with code quality.

  3. 21

    Tell me about a time you disagreed with another engineer on how to solve a technical problem—how did you handle it?

    What a strong answer shows: Recounts the disagreement and how they discussed trade-offs (performance vs. maintainability, timelines, etc.), what decision was made, and what they learned. Shows they can advocate for ideas while staying collaborative.

  4. 22

    Give an example of a feature you built that turned out more complex than expected—how did you manage it?

    What a strong answer shows: Describes what assumptions were wrong, how they re-scoped or communicated the complexity to stakeholders, and how they delivered. Shows they can adapt when reality diverges from the plan.

  5. 23

    Tell me about a code review where you found a significant issue—how did you communicate it?

    What a strong answer shows: Explains the issue itself (security flaw, performance problem, edge case bug), how they framed feedback constructively, and whether the person accepted it. Shows they can be thorough without being harsh.

Questions to ask them

Use the data. Interviewers remember candidates who ask specific questions.

The role. Ask whether this is a new role or a backfill, and what happened to the last person in it. Check the company's hiring score on HirQ first.

  1. 1

    How do you measure success for someone in this role during their first year?

    What the answer tells you: Their answer reveals whether the company has clear expectations or vague goals, and what they actually care about you delivering.

  2. 2

    Can you walk me through what a typical week looks like for someone in this position?

    What the answer tells you: You'll learn whether the role matches the job description and whether the daily work aligns with what you want to do.

  3. 3

    Why is this role open right now—did someone leave, or is this a new position?

    What the answer tells you: If it's a backfill, you understand the workload; if new, you learn whether the company is growing or shifting priorities.

  4. 4

    What's the team structure, and who would I be working with most closely?

    What the answer tells you: You get a sense of your peer group, reporting lines, and whether you'll be isolated or have colleagues to learn from.

  5. 5

    What's your timeline for making a decision, and what does the rest of the process look like?

    What the answer tells you: You know when you'll hear back and what to prepare for, so you can plan next steps and avoid uncertainty.

  6. 6

    What does onboarding look like here—do people have a ramp period or are they expected to contribute immediately?

    What the answer tells you: Their answer shows whether the company invests in new hires or throws them in; this affects how quickly you can actually be effective.

  7. 7

    What are the biggest challenges this team is facing right now?

    What the answer tells you: You hear what problems are real versus what they said in the job posting, and whether you're equipped to help solve them.

  8. 8

    How has this role evolved since it was first created, or how do you expect it to change in the next year or two?

    What the answer tells you: You understand whether the job is stable, growing, or shifting—and whether your skills will stay relevant here.

  9. 9

    What does a typical career path look like for someone doing well in this role?

    What the answer tells you: You learn whether there's room to advance within the team or if you'd need to move around to grow.

  10. 10

    What made you decide to work here, and what keeps you here?

    What the answer tells you: Their honesty about why they stay tells you whether this is a place people actually want to be or just tolerate.

Practice for a specific job

Practice for a specific job

Uses 1 AI run

Paste a HirQ job link or the job description. We write 8 likely questions with talking points from your resume (your profile resume if you leave it blank).

For example hirq.ai/jobs/123456/…

Leave blank to use the resume on your profile.

Skills come from the text of open postings on HirQ, matched against a fixed list of 230 skills. Questions were written once per skill and category with AI and checked against that list; they are not from any one employer.

Get new Java J2ee Developer jobs by email

Free alerts, daily or weekly. We only send jobs that are still open.

Create a free alert

Questions people ask

What skills do Java J2ee Developer interviews focus on?

Based on 174 open Java J2ee Developer postings that list skills, employers most often ask for Java (100%), SQL (2%), JavaScript (2%), Spring (2%), CSS (1%). Expect technical questions on the first two or three.

How should I answer behavioral questions for a Java J2ee Developer role?

Use one real story per question: the situation, what you did yourself, and the result. Keep each under two minutes and be ready for a follow-up on what you would do differently.

Keep going