Java Interview Questions in Pune
36 practice questions with answers for Java interviews in Pune.
Java jobs in Pune
Pune combines IT-services campuses in Hinjewadi and Kharadi with product, automotive and BFSI technology centres. It has a large mid-level job market for data and QA roles, and interviews are often practical and project-based.
Below are 36 questions that match the mix of service, product and domain employers hiring java developers in Pune.
What are records in Java and when should you use them?
Show answer
Write Java code to reverse an integer without converting it to a string.
Show answer
Why must you be careful when initial capacity of a HashMap is too small?
Show answer
Your service throws OutOfMemoryError: Java heap space in production. How do you investigate?
Show answer
Explain pattern matching for switch and record patterns in Java 21.
Show answer
What is the difference between JPA, Hibernate and Spring Data JPA?
Show answer
Explain bean scopes in Spring.
Show answer
Memory usage is high because millions of Integer objects are stored in an ArrayList. What would you do?
Show answer
Describe a situation where you had to deliver under a tight deadline.
Show answer
Write a Java method to check whether a string is a palindrome, ignoring case and non-letters.
Show answer
How do you take a thread dump and a heap dump of a running Java process?
Show answer
What is the difference between static and dynamic binding?
Show answer
You have to process tasks in order of priority. Which collection do you use?
Show answer
A log file shows a NullPointerException only for some users. How do you debug it?
Show answer
What is the difference between Comparable and Comparator?
Show answer
Code builds a large CSV report with String += inside a loop and it is very slow. Why and what is the fix?
Show answer
Write a record with validation in its compact constructor.
Show answer
What is the difference between ArrayList and LinkedList?
Show answer
A file handle leak causes Too many open files errors after a day. What is the likely cause?
Show answer
Clients report duplicate orders when they retry after a timeout. How do you prevent it?
Show answer
What are sealed classes and how do they help?
Show answer
What is a deadlock and how can it be prevented?
Show answer
Users get LazyInitializationException when the API returns an entity. What is happening?
Show answer
Implement an LRU cache using LinkedHashMap.
Show answer
How do you explain OOP concepts to a junior developer who is new to Java?
Show answer
Tell me about a time you found and fixed a difficult production bug in a Java application.
Show answer
What is the N+1 select problem in Hibernate and how do you fix it?
Show answer
What is the String constant pool?
Show answer
What is optimistic versus pessimistic locking in JPA?
Show answer
Write a JDBC method to fetch a user by email safely.
Show answer
GC pauses of two seconds are causing request timeouts. How would you reduce them?
Show answer
What is a functional interface?
Show answer
What is autoboxing and what pitfall can it cause?
Show answer
Why should we hire you as a Java backend developer?
Show answer
Sort a list of employees by department, then by salary descending.
Show answer
Companies with offices in Pune (13)
TCS
Java interview questions
Mumbai, Chennai, Pune +2
View questionsInfosys
Java interview questions
Bengaluru, Mysuru, Pune +2
View questionsWipro
Java interview questions
Bengaluru, Hyderabad, Pune +2
View questionsAccenture
Java interview questions
Bengaluru, Hyderabad, Pune +2
View questionsCognizant
Java interview questions
Chennai, Bengaluru, Pune +2
View questionsCapgemini
Java interview questions
Mumbai, Bengaluru, Pune +2
View questionsTech Mahindra
Java interview questions
Pune, Hyderabad, Bengaluru +2
View questionsLTIMindtree
Java interview questions
Mumbai, Pune, Bengaluru +2
View questionsAmazon
Java interview questions
Bengaluru, Hyderabad, Chennai +2
View questionsOracle
Java interview questions
Bengaluru, Hyderabad, Noida +2
View questionsBarclays
Java interview questions
Pune, Chennai, Noida +1
View questionsPhonePe
Java interview questions
Bengaluru, Pune
View questionsSAP
Java interview questions
Bengaluru, Gurugram, Pune +1
View questionsFrequently asked questions
Which companies hire Java professionals in Pune?
Companies with large offices in Pune include TCS, Infosys, Wipro, Accenture, Cognizant, Capgemini, Tech Mahindra, LTIMindtree, Amazon, Oracle. Use their company pages below to practise employer-specific sets.
Are Java interviews in Pune different from other cities?
The questions depend more on the company than the city. Pune's mix of employers decides the style: It has a large mid-level job market for data and QA roles, and interviews are often practical and project-based
How do I find Java jobs in Pune?
Shortlist companies with Pune offices, keep your CV focused on Java projects, apply on company career pages and job portals with the Pune filter, and practise the questions on this page before each interview.