Skip to content
InterviewEra
What is InterviewEraThe platform, founder, and missionHow It WorksAdaptive interview, live captions, scoringResume-aware ScoringCV-native questions + 5-dimension feedback
Campus Placements OverviewStructured mock interviews and cohort analytics for T&P teamsSet up Campus WorkspaceCreate your campus dashboard and invite your batchT&P Product & PricingPilot pricing, bulk onboarding, and placement trackingStudent Invitation HelpHow to accept a campus invite and start practising
Software EngineerDSA, system design, OOP roundsFrontend DeveloperReact, HTML/CSS, JavaScript interviewsTCS Interview QuestionsNQT + technical + HR roundsWipro Careers HubNLTH, WILP, Turbo hiring tracksSolera Careers HubCognitive assessment + Java/SQL roundsReact Interview QuestionsHooks, state, performance topics
Interview Question GeneratorRole-specific questions in secondsATS Resume CheckerScore your resume against job rolesSTAR Answer BuilderStructure behavioral answers clearly
All ResourcesCentral guide and hub directoryBlogInterview prep articles and guidesAgentic AI Interview GuideAI-assisted coding interviews, rubrics, and prepPlacement GuideStep-by-step campus prep playbookSTAR Method GuideMaster behavioral answers
Help CenterGuides, FAQs, and supportDSA Topic MapPatterns, roadmap, and top 50 problemsSoftware Engineer GuideSWE questions and prep hubAndroid GuideKotlin, Compose, MVVM prep hubFrontend GuideReact and JavaScript interviews
PricingFor Teams
Sign inSign up
InterviewEra

InterviewEra is an AI-powered mock interview platform with adaptive follow-ups, resume-aware scoring, and structured interview preparation for campus placements and early-career hiring.

Start Mock Interview

Mock Interview

  • How It Works
  • For Teams
  • Start Mock Interview
  • Campus Placements
  • Campus Workspace
  • Help Center

Free Tools

  • Interview Question Generator
  • ATS Resume Checker
  • STAR Answer Builder

Interview Questions

  • Wipro Careers Hub
  • Solera Careers Hub
  • Amazon SDE Questions
  • Microsoft SDE Questions
  • Infosys SWE Questions
  • Infosys Java Questions
  • Freshworks Frontend Questions
  • Android Developer Questions
  • Frontend Developer Questions
  • Java Developer Questions

Resources

  • Community Hub
  • All Resources
  • Blog
  • Agentic AI Interview Guide
  • What Is Agentic AI
  • Agentic Coding Round
  • AI Prompt Engineering
  • Cursor AI Interview Guide
  • DSA Topic Map
  • Placement Guide
  • STAR Guide
  • HR Guide
  • Interview Tips

Company

  • What is InterviewEra
  • About Us
  • Pricing
  • Contact

© 2026 InterviewEra. All rights reserved.

Privacy PolicyTermsRefundRanchi, Jharkhand, India
Interview Questions›Java Developer

engineering · Fresher-friendly

Java Developer Interview Questions India 2026

Java Developer interview questions on Core Java, Spring Boot, OOPs principles, and collections — the most-tested stack at TCS, Infosys, and Wipro.

Fresher-friendlyengineering role12 curated questionsUpdated 2026

Java Developers Interview Questions

Placement-oriented · Updated 2026
  1. 01

    What is the difference between `==` and `.equals()` in Java?

    TechnicalEasy

    Tip: `==` compares object references (memory addresses). `.equals()` compares logical content — overridden in String and most value classes. Classic trap: `new String("a") == new String("a")` is false; `.equals()` is true.

  2. 02

    What are the key features introduced in Java 8?

    TechnicalEasy

    Tip: Lambda expressions, Stream API, Optional class, functional interfaces, default/static interface methods, new Date-Time API (java.time), and CompletableFuture. Streams and lambdas are the most commonly tested.

  3. 03

    What is the difference between ArrayList and LinkedList in Java?

    TechnicalEasy

    Tip: ArrayList: O(1) random access, O(n) insert/delete at middle. LinkedList: O(n) access, O(1) insert/delete at head/tail. Use ArrayList by default; LinkedList only when you frequently add/remove at ends and never random-access.

  4. 04

    What are checked and unchecked exceptions in Java? When do you use each?

    TechnicalMedium

    Tip: Checked exceptions (extend Exception) must be declared or caught — for recoverable conditions like file not found. Unchecked (extend RuntimeException) are for programming errors (NPE, ArrayIndexOutOfBounds). Do not catch RuntimeException broadly.

  5. 05

    What are the SOLID principles? Give a one-line Java example for each.

    TechnicalMedium

    Tip: S: Single Responsibility — one class, one reason to change. O: Open/Closed — extend via inheritance, not modification. L: Liskov Substitution — subclasses must be substitutable. I: Interface Segregation — small focused interfaces. D: Dependency Inversion — depend on abstractions.

  6. 06

    What is multithreading in Java? Explain `synchronized`, `volatile`, and when you use each.

    TechnicalHard

    Tip: `synchronized` acquires a monitor lock — prevents concurrent access to a block. `volatile` ensures a variable is read from main memory, not a thread-local cache — no atomicity guarantee. Use `volatile` for single-write flags; `synchronized` for compound operations.

  7. 07

    Explain Spring Boot auto-configuration. How does it work under the hood?

    TechnicalHard

    Tip: @SpringBootApplication triggers @EnableAutoConfiguration. Spring Boot scans META-INF/spring.factories, finds @Configuration classes, and applies them conditionally using @ConditionalOnClass/@ConditionalOnMissingBean. The app gets sensible defaults without XML.

  8. 08

    Tell me about a Spring Boot application you built. What design decisions are you most proud of?

    BehavioralMedium

    Tip: Name a specific technical choice: service layer separation, DTO pattern, exception handler with @ControllerAdvice, custom validation. Tie it to the problem it solved, not just "it follows best practices."

  9. 09

    A Java service is throwing OutOfMemoryError in production at peak traffic. What is your approach?

    SituationalHard

    Tip: Immediate: increase heap (-Xmx), take heap dump (jmap), restart if needed. Analysis: load heap dump in Eclipse MAT or VisualVM, find largest retained set. Common causes: unbounded caches, session leaks, large result sets loaded into memory. Fix root cause.

  10. 10

    What is garbage collection in Java? Explain generational GC.

    TechnicalMedium

    Tip: GC automatically reclaims unused heap memory. Generational GC: most objects die young (Eden). Young Gen: minor GC, fast. Old Gen: major GC, slower. G1GC (Java 9+ default) divides heap into regions for predictable pause times.

  11. 11

    What is the difference between HashMap and HashTable in Java?

    TechnicalEasy

    Tip: HashMap is non-synchronised (faster, not thread-safe), allows one null key. HashTable is synchronised (thread-safe but slow), no null keys. Prefer ConcurrentHashMap over HashTable in multithreaded code.

  12. 12

    Java vs Python — for a high-throughput, low-latency backend service, which would you choose and why?

    HREasy

    Tip: Java: JVM JIT compilation, mature concurrency primitives, type safety. Python: GIL limits true parallelism, but async frameworks (FastAPI) excel for I/O-bound workloads. Show you understand the trade-off — neither is universally better.

Key topics to prepare for Java Developer interviews

Recruiters test these skill areas specifically. Click any topic to see curated questions.

DSJavaSQLOOPsDBMSSpring

Practice, not just reading

Get scored on your Java Developer answers

Upload your resume and practice a full Java Developer mock interview with AI-generated questions and rubric-based scoring across 5 dimensions — free to start.

Start free mock interviewGenerate more questions free

Related concepts

  • Software Engineer
  • DSA
  • SQL
  • System Design
  • Resume / ATS

Learn next

Continue in this order for the fastest path through this topic.

  1. Step 1DSA Topic MapCoding interview patterns
  2. Step 2Software Engineer HubBroader SWE question bank
  3. Step 3AI Mock InterviewBackend technical practice

Recommended tools

  • AI Mock InterviewTimed mocks with rubric-style feedback
  • Question GeneratorRole-specific practice problems
  • ATS Resume CheckerImprove resume keyword match
  • STAR Answer BuilderStructure behavioral stories

Related Guides

  • Software EngineeringWipro Java Developer Interview Questions and Answers (2026)Wipro Java guide — NLTH, Core Java, Spring Boot, JVM, collections, salary, 30-day roadmap, and expert sample answers.
  • JavaInfosys Java Developer Interview Questions (2026)Infosys Java guide — InfyTQ, Core Java, Spring Boot, microservices, and coding round strategy.
  • Software EngineeringWipro Software Engineer Interview Questions and Answers (2026)Wipro SWE guide — NLTH, DSA, OOP, DBMS, SQL, salary, 30-day roadmap, and expert sample answers.
  • Software EngineeringJava Interview QuestionsCore Java interview questions on OOPs, collections, multithreading, JVM internals, and exception handling — the primary language tested by TCS, Infosys, and Wipro.
  • Software EngineeringSpring Boot Interview QuestionsSpring Boot interview questions covering auto-configuration, REST controllers, JPA/Hibernate, and Spring Security.
  • Software EngineeringData Structures Interview QuestionsData structures interview questions on arrays, linked lists, trees, graphs, stacks, and queues — mandatory for every engineering role at Indian tech companies.

Companies hiring Java Developers

  • TCS Java Dev questions
  • Infosys Java Dev questions
  • Wipro Java Dev questions
  • HCL Java Dev questions
  • Zoho Java Dev questions
  • Capgemini Java Dev questions

Practice tools

  • Java Dev question generator
  • Java Dev ATS checker
  • STAR answer builder

Other engineering roles

  • Software Engineer questions
  • Python Developer questions
  • Frontend Developer questions
  • Backend Developer questions
  • Full Stack Developer questions

Guides and resources

  • All interview questions
  • STAR method with examples
  • HR interview answer tips
  • Placement interview prep guide