Java Interview Questions in Bangalore
36 practice questions with answers for Java interviews in Bangalore.
Java jobs in Bangalore
Bangalore (Bengaluru) is India's largest technology hub, with global product companies, engineering centres, unicorn start-ups and big IT-services campuses. Product-company interviews here are usually deeper, with more scenario, design and hands-on rounds.
Below are 36 questions that match the mix of service, product and domain employers hiring java developers in Bangalore.
What is exception chaining?
Show answer
What are records in Java and when should you use them?
Show answer
What is the first level and second level cache in Hibernate?
Show answer
Explain the happens-before relationship in the Java Memory Model.
Show answer
Describe a time you improved the design of existing code.
Show answer
Explain the hierarchy of the Java Collections Framework.
Show answer
What is the difference between composition and inheritance, and which should you prefer?
Show answer
What is the N+1 select problem in Hibernate and how do you fix it?
Show answer
Write a minimal Dockerfile for a Spring Boot application.
Show answer
Map a one-to-many relation between Order and OrderItem in JPA.
Show answer
Show runtime polymorphism with a simple Java example.
Show answer
What does the volatile keyword guarantee?
Show answer
What is the difference between intermediate and terminal operations in streams?
Show answer
What is the difference between reduce() and collect()?
Show answer
What is the role of the JIT compiler?
Show answer
What is the difference between HashMap and ConcurrentHashMap?
Show answer
Implement the Builder pattern for a User class with many optional fields.
Show answer
Describe a situation where you had to deliver under a tight deadline.
Show answer
Explain the entity lifecycle states in JPA.
Show answer
How do you explain OOP concepts to a junior developer who is new to Java?
Show answer
What is the difference between Collectors.toMap() and groupingBy()?
Show answer
Does the finally block always execute?
Show answer
Write a sealed interface with records and a switch that computes area.
Show answer
How do you take a thread dump and a heap dump of a running Java process?
Show answer
Add optimistic locking to an entity and handle the conflict.
Show answer
Implement equals() and hashCode() for an Employee class with id and email.
Show answer
What are fail-fast and fail-safe iterators?
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
A query is fast in development but takes 8 seconds in production. How do you investigate?
Show answer
Write a record with validation in its compact constructor.
Show answer
Describe a time you had to learn a new technology quickly.
Show answer
A log file shows a NullPointerException only for some users. How do you debug it?
Show answer
How does HashSet work internally?
Show answer
A counter shared between threads shows wrong totals. How do you fix it?
Show answer
Flatten a list of lists of integers and compute the sum of squares of the even numbers.
Show answer
Companies with offices in Bangalore (18)
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 questionsHCLTech
Java interview questions
Noida, Chennai, Bengaluru +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 questionsGoldman Sachs
Java interview questions
Bengaluru, Hyderabad, Mumbai
View questionsJP Morgan Chase
Java interview questions
Mumbai, Bengaluru, Hyderabad
View questionsMorgan Stanley
Java interview questions
Mumbai, Bengaluru
View questionsPaytm
Java interview questions
Noida, Bengaluru, Mumbai
View questionsPhonePe
Java interview questions
Bengaluru, Pune
View questionsFlipkart
Java interview questions
Bengaluru, Hyderabad
View questionsSAP
Java interview questions
Bengaluru, Gurugram, Pune +1
View questionsFrequently asked questions
Which companies hire Java professionals in Bangalore?
Companies with large offices in Bangalore include TCS, Infosys, Wipro, Accenture, Cognizant, Capgemini, HCLTech, Tech Mahindra, LTIMindtree, Amazon. Use their company pages below to practise employer-specific sets.
Are Java interviews in Bangalore different from other cities?
The questions depend more on the company than the city. Bangalore's mix of employers decides the style: Product-company interviews here are usually deeper, with more scenario, design and hands-on rounds
How do I find Java jobs in Bangalore?
Shortlist companies with Bangalore offices, keep your CV focused on Java projects, apply on company career pages and job portals with the Bangalore filter, and practise the questions on this page before each interview.