Java Interview Questions in Kolkata
36 practice questions with answers for Java interviews in Kolkata.
Java jobs in Kolkata
Kolkata has a steady IT-services and BFSI technology job market around Salt Lake Sector V and New Town. Many openings are with service companies and their delivery centres, with a focus on strong fundamentals.
Below are 36 questions that match the mix of service, product and domain employers hiring java developers in Kolkata.
What is the difference between JDK, JRE and JVM?
Show answer
What is Optional and how should it be used?
Show answer
What is the difference between HashMap and ConcurrentHashMap?
Show answer
You must expose configuration that differs between dev, QA and production. How do you manage it?
Show answer
Describe a time you improved the design of existing code.
Show answer
What is the difference between List.of(), Arrays.asList() and Collections.unmodifiableList()?
Show answer
Describe a time you had to learn a new technology quickly.
Show answer
Does the finally block always execute?
Show answer
What are sealed classes and how do they help?
Show answer
Explain the SOLID principles briefly.
Show answer
What are virtual threads and when should you use them?
Show answer
Run two tasks in parallel with CompletableFuture and combine their results.
Show answer
What are the ways to create a thread in Java?
Show answer
Tell me about a time you improved performance by choosing a better data structure.
Show answer
Why does Java not support multiple inheritance of classes?
Show answer
When should you avoid parallel streams?
Show answer
What is the difference between == and equals() in Java?
Show answer
Your application hangs and CPU is near zero. How do you find out why?
Show answer
A log file shows a NullPointerException only for some users. How do you debug it?
Show answer
When would you choose ArrayDeque over Stack and LinkedList?
Show answer
GC pauses of two seconds are causing request timeouts. How would you reduce them?
Show answer
Clients report duplicate orders when they retry after a timeout. How do you prevent it?
Show answer
What is the contract between equals() and hashCode()?
Show answer
What is garbage collection and how does the JVM decide an object is garbage?
Show answer
Write a sealed interface with records and a switch that computes area.
Show answer
Bind typed configuration properties with validation in Spring Boot.
Show answer
Why is connection pooling important and how do you size a pool?
Show answer
An API listing 100 orders fires 101 SQL queries. How do you fix it?
Show answer
What is the difference between map() and flatMap()?
Show answer
Your service throws OutOfMemoryError: Java heap space in production. How do you investigate?
Show answer
An API needs to find the price band for any amount, for example the nearest lower slab. Which structure fits?
Show answer
Explain the hierarchy of the Java Collections Framework.
Show answer
How would you write a simple thread safe rate limiter in Java?
Show answer
Explain bean scopes in Spring.
Show answer
A getter returns an internal List and callers modify it, causing bugs. How do you fix this?
Show answer
Companies with offices in Kolkata (2)
Frequently asked questions
Which companies hire Java professionals in Kolkata?
Companies with large offices in Kolkata include Wipro, Cognizant. Use their company pages below to practise employer-specific sets.
Are Java interviews in Kolkata different from other cities?
The questions depend more on the company than the city. Kolkata's mix of employers decides the style: Many openings are with service companies and their delivery centres, with a focus on strong fundamentals
How do I find Java jobs in Kolkata?
Shortlist companies with Kolkata offices, keep your CV focused on Java projects, apply on company career pages and job portals with the Kolkata filter, and practise the questions on this page before each interview.