Java Spring Interview Questions

125 java spring interview questions shared by candidates

Why String is Immutable , code snippet questions on String , Exceptions hierarchy and one code snippet what will be the output which was easy. What is Singleton class and how to break and protect singleton class rules and what is double locking in Singleton. What is SOLID principle and few questions on Java 8 like write lambda expression for sum of two numbers . What are intermediate and terminal operations you have used and advantages and disadvantage of Streams. In Spring Boot what is purpose of @SpringBootApplication annotation and what is dependency injection and what is qualifier and what is actuators and what is JPA and what are other annotations you have used. Overall questions are direct and easy
avatar

Java Spring Boot Developer

Interviewed at Accenture

3.7
Sep 6, 2022

Why String is Immutable , code snippet questions on String , Exceptions hierarchy and one code snippet what will be the output which was easy. What is Singleton class and how to break and protect singleton class rules and what is double locking in Singleton. What is SOLID principle and few questions on Java 8 like write lambda expression for sum of two numbers . What are intermediate and terminal operations you have used and advantages and disadvantage of Streams. In Spring Boot what is purpose of @SpringBootApplication annotation and what is dependency injection and what is qualifier and what is actuators and what is JPA and what are other annotations you have used. Overall questions are direct and easy

Java oops concepts, what is multithreading, internal Architecture of jdk, string buffer vs string builder, comparable vs comparator, failsafe vs failfast iterator, what is functional interface, checked vs unchecked exceptions, can we have null key in hashmap.
avatar

Java Spring Boot Developer

Interviewed at Wipro

3.6
May 19, 2024

Java oops concepts, what is multithreading, internal Architecture of jdk, string buffer vs string builder, comparable vs comparator, failsafe vs failfast iterator, what is functional interface, checked vs unchecked exceptions, can we have null key in hashmap.

Viewing 91 - 100 interview questions

Glassdoor has 125 interview questions and reports from Java spring interviews. Prepare for your interview. Get hired. Love your job.