i
Deloitte
Filter interviews by
ArrayList is implemented using a dynamic array while LinkedList is implemented using a doubly linked list.
ArrayList provides fast random access and slower insertion/deletion, while LinkedList provides fast insertion/deletion and slower random access.
ArrayList uses more memory as it needs to allocate a fixed-size array, while LinkedList uses more memory for storing references to the next and previous elements.
Examp...
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.
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...
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
What people are saying about Deloitte
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 an...
HashSet is a collection that implements the Set interface, storing unique elements using a hash table.
1. Unique Elements: HashSet does not allow duplicate values. Example: Adding 'A' twice results in one 'A'.
2. Hashing: It uses a hash function to compute the index for storing elements, ensuring fast access.
3. Performance: Average time complexity for add, remove, and contains operations is O(1).
4. Iteration Order: ...
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...
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...
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 ...
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
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
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.
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...
I appeared for an interview in Dec 2024.
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
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.
To create a REST API, you need to define endpoints, implement CRUD operations, handle HTTP methods, and use frameworks like Spring Boot.
Define endpoints for different resources (e.g. /users, /products)
Implement CRUD operations (Create, Read, Update, Delete) for each endpoint
Handle HTTP methods like GET, POST, PUT, DELETE
Use frameworks like Spring Boot to simplify API development
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
I applied via Referral and was interviewed in Aug 2024. There were 3 interview rounds.
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...
I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.
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...
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.
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
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
I appeared for an interview in Mar 2025, where I was asked the following questions.
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...
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...
I applied via Approached by Company and was interviewed in Mar 2024. There were 3 interview rounds.
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...
I appeared for an interview in Mar 2025, where I was asked the following questions.
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 ...
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.
The duration of Deloitte Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 21 interview experiences
Difficulty level
Duration
based on 14 reviews
Rating in categories
Consultant
38.7k
salaries
| ₹6.6 L/yr - ₹28 L/yr |
Senior Consultant
24k
salaries
| ₹11.1 L/yr - ₹42 L/yr |
Analyst
16.1k
salaries
| ₹3.9 L/yr - ₹13 L/yr |
Assistant Manager
10.9k
salaries
| ₹8 L/yr - ₹24.1 L/yr |
Manager
7.7k
salaries
| ₹16 L/yr - ₹55 L/yr |
Accenture
PwC
Ernst & Young
Cognizant