Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Deloitte Team. If you also belong to the team, you can get access from here

Deloitte Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Deloitte Java Developer Interview Questions and Answers

Updated 16 Apr 2025

20 Interview questions

A Java Developer was asked 2mo ago
Q. How is a singleton class created?
Ans. 

A singleton class ensures a single instance throughout the application, providing a global point of access to that instance.

  • Private Constructor: The constructor of the singleton class is made private to prevent instantiation from outside the class.

  • Static Instance: A static variable holds the single instance of the class, ensuring that it is created only once.

  • Public Method: A public static method (often named getIn...

A Java Developer was asked 2mo ago
Q. Write code for the Singleton Pattern.
Ans. 

The Singleton Pattern ensures a class has only one instance and provides a global point of access to it.

  • Single Instance: The Singleton Pattern restricts the instantiation of a class to one single instance.

  • Global Access: It provides a global point of access to that instance, allowing it to be accessed from anywhere in the application.

  • Lazy Initialization: The instance is created only when it is needed, which can imp...

Java Developer Interview Questions Asked at Other Companies

asked in Deloitte
Q1. Sort 0 and 1 Problem Statement Given an integer array ARR of size ... read more
Q2. Parent class has run() and walk(). Parent run() calls walk(). Chi ... read more
asked in Infosys
Q3. Which should be preferred between String and StringBuffer when th ... read more
Q4. How do you sort a list of students based on their first name?
asked in Cognizant
Q5. What array list and linkedlist difference,how hashmap internally ... read more
A Java Developer was asked 5mo ago
Q. How do you reverse a palindrome in code?
Ans. 

Reverse a palindrome string using Java

  • Create a function to check if a string is a palindrome

  • If the string is a palindrome, reverse it using a StringBuilder

  • Return the reversed string

A Java Developer was asked 5mo ago
Q. What is a Spring Profile?
Ans. 

Spring profile is a way to segregate parts of your application configuration and make it only available in certain environments.

  • Spring profiles allow you to define different configurations for different environments such as development, testing, and production.

  • You can use @Profile annotation to specify which beans should be loaded based on the active profile.

  • Profiles can be activated in various ways such as throug...

What people are saying about Deloitte

View All
a data engineer
2w
Salary discusssion suggestion
Hi everyone, I have an offer from Deloitte as a data engineer for 15 CTC (all fix) + 10% variable I still have some time left on my notice period. Should I try for more offers and ask Deloitte to match? Yoe 3 CCTC : 6
Got a question about Deloitte?
Ask anonymously on communities.
A Java Developer was asked 5mo ago
Q. What are @PreAuthorize and @PostAuthorize annotations?
Ans. 

Annotations used in Spring Security to apply authorization rules before and after a method is called.

  • Used in Spring Security to define authorization rules

  • @PreAuthorize is used to apply authorization rules before a method is called

  • @PostAuthorize is used to apply authorization rules after a method is called

  • Both annotations support SpEL expressions for defining rules

A Java Developer was asked 11mo ago
Q. Explain the architecture for a student management system in Spring Boot.
Ans. 

A student management system in SpringBoot involves multiple layers like controller, service, repository, and database.

  • Use SpringBoot for creating RESTful APIs to handle student data

  • Implement controller layer to handle incoming HTTP requests and route them to appropriate service methods

  • Service layer contains business logic for managing student data

  • Repository layer interacts with the database to perform CRUD operati...

A Java Developer was asked 12mo ago
Q. What is the difference between HashMap and Hashtable?
Ans. 

HashMap is non-synchronized and allows null values, while Hashtable is synchronized and does not allow null keys or values.

  • HashMap is non-synchronized, meaning it is not thread-safe, while Hashtable is synchronized and thread-safe.

  • HashMap allows null values and one null key, while Hashtable does not allow null keys or values.

  • HashMap is generally preferred for non-thread-safe applications, while Hashtable is used i...

Are these interview questions helpful?
A Java Developer was asked
Q. Build a basic CRUD REST API endpoint
Ans. 

Build a basic CRUD REST API endpoint

  • Create a REST API endpoint for each CRUD operation (Create, Read, Update, Delete)

  • Use HTTP methods like POST, GET, PUT, DELETE to perform CRUD operations

  • Implement data validation and error handling for each operation

  • Utilize a framework like Spring Boot or Express.js to simplify API development

A Java Developer was asked
Q. Write an SQL query to find the third highest salary from an employee table.
Ans. 

To find the third highest salary in a SQL table, you can use the 'SELECT TOP 1' statement with 'ORDER BY salary DESC OFFSET 2 ROWS FETCH NEXT 1 ROWS ONLY'.

  • Use the 'SELECT TOP 1' statement to retrieve only one record

  • Order the records by salary in descending order using 'ORDER BY salary DESC'

  • Skip the first two highest salaries using 'OFFSET 2 ROWS'

  • Fetch the next record after skipping the first two using 'FETCH NEXT ...

A Java Developer was asked
Q. Compare throw and throws keywords in Java.
Ans. 

Throw is used to explicitly throw an exception in a method, while Throws is used to declare the exceptions that a method may throw.

  • Throw is used within a method to throw an exception explicitly.

  • Throws is used in the method signature to declare the exceptions that the method may throw.

  • Throw is followed by an instance of Throwable class, while Throws is followed by the exception class names separated by commas.

  • Examp...

Deloitte Java Developer Interview Experiences

23 interviews found

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(8 Questions)

  • Q1. How much exp in docker?
  • Q2. Do you have exp in Kubernetes?
  • Q3. What is OOP?
  • Q4. Types of polymorphism
  • Q5. Thread in java
  • Ans. 

    Threads in Java allow multiple tasks to run concurrently within a single program.

    • Threads are lightweight sub-processes that share the same memory space.

    • They are used to improve performance by allowing tasks to run simultaneously.

    • Examples include creating a new thread using the Thread class or implementing the Runnable interface.

  • Answered by AI
  • Q6. Knowledge in which spring modules
  • Ans. 

    Familiarity with key Spring modules enhances Java development, enabling robust, scalable applications with ease.

    • Spring Core: Provides the foundational features of the Spring Framework, including Dependency Injection (DI). Example: @Autowired annotation.

    • Spring MVC: A web framework for building web applications. Example: Using @Controller and @RequestMapping for handling requests.

    • Spring Boot: Simplifies the setup and dev...

  • Answered by AI
  • Q7. What is spring profile
  • Q8. What is @PreAuthorize and @PostAuthorize

Interview Preparation Tips

Topics to prepare for Deloitte Java Developer interview:
  • Basics in java
  • Spring security
  • Spring Boot
  • Docker
  • Cloud Computing
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I appeared for an interview in Dec 2024.

Round 1 - Technical 

(6 Questions)

  • Q1. Explain Oops Concept, keywords in java, access specifiers
  • Ans. 

    OOPs concept in Java includes keywords and access specifiers for defining classes and objects.

    • OOPs concept focuses on objects and classes for code organization

    • Keywords like 'class', 'extends', 'implements' are used for defining classes and inheritance

    • Access specifiers like 'public', 'private', 'protected' control visibility of class members

  • Answered by AI
  • Q2. Diff between arraylist and linkedlist
  • Q3. Diff between set and list
  • Ans. 

    Set is a collection of unique elements with no specific order, while list is a collection of elements with a specific order and allows duplicates.

    • Set does not allow duplicate elements, while list allows duplicates.

    • Set does not maintain insertion order, while list maintains insertion order.

    • Examples: HashSet is a set implementation, ArrayList is a list implementation.

  • Answered by AI
  • Q4. Coding reverse a palindrome
  • Q5. How to create rest API
  • Q6. Java 8 features, write lambda function to add two numbers
  • Ans. 

    Lambda functions in Java 8 allow for concise and functional programming style.

    • Use the lambda operator '->' to define the lambda function.

    • Specify the parameters and the body of the lambda function.

    • Example: (int a, int b) -> a + b

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. Why you want to change?
  • Q2. Coding question related to java 8
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Referral and was interviewed in Aug 2024. There were 3 interview rounds.

Round 1 - Technical 

(3 Questions)

  • Q1. Core Java, multithreading and foncurrency
  • Q2. Springboot , app
  • Q3. Working of hashset
Round 2 - Technical 

(2 Questions)

  • Q1. Project related questions
  • Q2. Scenario based questions
Round 3 - HR 

(1 Question)

  • Q1. Why do want to join Deloitte
  • Ans. 

    I want to join Deloitte because of its reputation for innovation, diverse projects, and opportunities for growth.

    • Deloitte is known for its innovative projects and cutting-edge technology, which aligns with my passion for staying up-to-date with the latest trends in Java development.

    • I am impressed by Deloitte's diverse range of projects and clients, which will provide me with valuable experience and the opportunity to w...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Spring security
  • Q2. Solid design principles
  • Ans. 

    Solid design principles are a set of best practices for designing software that is maintainable, scalable, and flexible.

    • Single Responsibility Principle - each class should have only one responsibility

    • Open/Closed Principle - classes should be open for extension but closed for modification

    • Liskov Substitution Principle - objects of a superclass should be replaceable with objects of its subclasses without affecting the pro...

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. How authentication and authorization works in java
  • Q2. Design patterns in java
  • Ans. 

    Design patterns in Java are reusable solutions to common problems in software design.

    • Design patterns help in creating flexible, maintainable, and scalable code.

    • Examples of design patterns in Java include Singleton, Factory, Observer, and Strategy.

    • Each design pattern has its own purpose and can be applied in different scenarios.

    • Understanding design patterns is essential for Java developers to write efficient code.

  • Answered by AI

Skills evaluated in this interview

Java Developer Interview Questions & Answers

user image Sushant Khamkar

posted on 18 Nov 2024

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Oops, Collection, exception handling, java8
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Not Selected

I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Program on sorting
  • Ans. 

    Sorting program to arrange strings in alphabetical order

    • Use Arrays.sort() method to sort the array of strings

    • Implement a custom Comparator to sort in a specific order

    • Consider using Collections.sort() for sorting ArrayList of strings

  • Answered by AI
Round 2 - Technical 

(1 Question)

  • Q1. Multi-threading

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. What is the difference between an abstract class and an interface?
  • Ans. 

    Abstract classes can have both abstract and concrete methods, while interfaces can only have abstract methods (Java 8+ allows default methods).

    • Abstract Class: Can have instance variables and constructors. Example: 'abstract class Animal { String name; abstract void sound(); }'

    • Interface: Cannot have instance variables (only static final variables). Example: 'interface Animal { void sound(); }'

    • Multiple Inheritance: A cla...

  • Answered by AI
  • Q2. How is a singleton class created
  • Ans. 

    A singleton class ensures a single instance throughout the application, providing a global point of access to that instance.

    • Private Constructor: The constructor of the singleton class is made private to prevent instantiation from outside the class.

    • Static Instance: A static variable holds the single instance of the class, ensuring that it is created only once.

    • Public Method: A public static method (often named getInstanc...

  • Answered by AI

Java Developer Interview Questions & Answers

user image Prakhar Rungta

posted on 19 Apr 2024

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Not Selected

I applied via Approached by Company and was interviewed in Mar 2024. There were 3 interview rounds.

Round 1 - One-on-one 

(1 Question)

  • Q1. Regular core java, OOPS, Spring Boot questions. It was like a rapid-fire round.
Round 2 - One-on-one 

(3 Questions)

  • Q1. Coding question - find repeat elements in an array
  • Q2. Project related questions
  • Q3. Build a basic CRUD REST API endpoint
Round 3 - One-on-one 

(3 Questions)

  • Q1. Behavioral questions
  • Q2. Technical questions about SpringBoot and microservices
  • Q3. SQL question - third highest salary
  • Ans. 

    To find the third highest salary in a SQL table, you can use the 'SELECT TOP 1' statement with 'ORDER BY salary DESC OFFSET 2 ROWS FETCH NEXT 1 ROWS ONLY'.

    • Use the 'SELECT TOP 1' statement to retrieve only one record

    • Order the records by salary in descending order using 'ORDER BY salary DESC'

    • Skip the first two highest salaries using 'OFFSET 2 ROWS'

    • Fetch the next record after skipping the first two using 'FETCH NEXT 1 ROW...

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
-
Result
-

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. Witre a code for singletone Pattern.
  • Ans. 

    The Singleton Pattern ensures a class has only one instance and provides a global point of access to it.

    • Single Instance: The Singleton Pattern restricts the instantiation of a class to one single instance.

    • Global Access: It provides a global point of access to that instance, allowing it to be accessed from anywhere in the application.

    • Lazy Initialization: The instance is created only when it is needed, which can improve ...

  • Answered by AI
  • Q2. What is a functional interface in programming?
  • Ans. 

    A functional interface is an interface with a single abstract method, enabling lambda expressions in Java.

    • A functional interface can have multiple default or static methods.

    • It is annotated with @FunctionalInterface for clarity.

    • Example: Runnable (void run()), Comparator (int compare(T o1, T o2)).

    • Lambda expressions can be used to implement functional interfaces.

  • Answered by AI
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Microservices, Kafka, api gateway
Round 2 - Behavioral 

(1 Question)

  • Q1. Project explaination, technical questions

Deloitte Interview FAQs

How many rounds are there in Deloitte Java Developer interview?
Deloitte interview process usually has 1-2 rounds. The most common rounds in the Deloitte interview process are Technical, Resume Shortlist and One-on-one Round.
How to prepare for Deloitte Java Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Deloitte. The most common topics and skills that interviewers at Deloitte expect are Java, SQL, Microservices, Spring Boot and Spring.
What are the top questions asked in Deloitte Java Developer interview?

Some of the top questions asked at the Deloitte Java Developer interview -

  1. Write a code for Iterate hashmap using itera...read more
  2. What is the difference between an abstract class and an interfa...read more
  3. Do you have exp in Kubernet...read more
How long is the Deloitte Java Developer interview process?

The duration of Deloitte Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

3.8/5

based on 21 interview experiences

Difficulty level

Easy 13%
Moderate 88%

Duration

Less than 2 weeks 71%
2-4 weeks 21%
4-6 weeks 7%
View more

Interview Questions from Similar Companies

PwC Interview Questions
3.3
 • 1.4k Interviews
Ernst & Young Interview Questions
3.4
 • 1.2k Interviews
KPMG India Interview Questions
3.4
 • 844 Interviews
ZS Interview Questions
3.3
 • 475 Interviews
BCG Interview Questions
3.7
 • 203 Interviews
Bain & Company Interview Questions
3.9
 • 111 Interviews
WSP Interview Questions
4.2
 • 99 Interviews
Mercer Interview Questions
3.7
 • 89 Interviews
View all
Deloitte Java Developer Salary
based on 387 salaries
₹6.3 L/yr - ₹15 L/yr
77% more than the average Java Developer Salary in India
View more details

Deloitte Java Developer Reviews and Ratings

based on 15 reviews

4.0/5

Rating in categories

3.6

Skill development

3.8

Work-life balance

3.8

Salary

3.9

Job security

3.9

Company culture

3.1

Promotions

3.7

Work satisfaction

Explore 15 Reviews and Ratings
Consultant
39.7k salaries
unlock blur

₹10.1 L/yr - ₹21.4 L/yr

Senior Consultant
24.6k salaries
unlock blur

₹16.5 L/yr - ₹33.1 L/yr

Analyst
16.5k salaries
unlock blur

₹5 L/yr - ₹12 L/yr

Assistant Manager
11.2k salaries
unlock blur

₹12.1 L/yr - ₹22 L/yr

Manager
7.9k salaries
unlock blur

₹24.5 L/yr - ₹43.4 L/yr

Explore more salaries
Compare Deloitte with

Accenture

3.7
Compare

PwC

3.3
Compare

Ernst & Young

3.4
Compare

Cognizant

3.7
Compare
write
Share an Interview