i
CGI Group
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Dependency Injection is a design pattern in which components are given their dependencies rather than creating them internally.
In Dependency Injection, the dependencies of a class are injected from the outside, typically through constructor injection or setter injection.
This helps in achieving loose coupling between classes, making the code more modular and easier to test.
Example: Spring Framework uses Dependency Injec...
Exceptions in inheritance are handled using try-catch blocks in the subclass.
Inherited methods can throw exceptions that need to be caught in the subclass.
Subclass can override superclass methods and handle exceptions differently.
Superclass methods can declare checked exceptions that subclasses must handle.
Exceptions can be rethrown or wrapped in a new exception in the subclass.
Immutable class is a class whose instances cannot be modified after creation.
Immutable classes have all fields as final and private.
Immutable classes do not have any setter methods.
Examples of immutable classes in Java are String, Integer, and LocalDate.
I have implemented design patterns like Singleton, Factory, and Observer in various projects.
Implemented Singleton pattern to ensure only one instance of a class exists.
Utilized Factory pattern to create objects without specifying the exact class of object that will be created.
Used Observer pattern to establish a one-to-many dependency between objects, so that when one object changes state, all its dependents are notif
To improve the performance of a running application, consider optimizing code, database queries, caching, and server resources.
Optimize code by identifying and fixing bottlenecks, reducing unnecessary loops, and improving algorithms.
Optimize database queries by using indexes, avoiding unnecessary joins, and limiting the amount of data retrieved.
Implement caching mechanisms to store frequently accessed data in memory, r...
Top trending discussions
I applied via Naukri.com and was interviewed before Jul 2018. There were 2 interview rounds.
C# concepts including abstraction, interface, abstract method, abstract class, polymorphism, encapsulation, inheritance, and serialization.
Abstraction: hiding implementation details
Interface: defining a contract for behavior
Abstract method: method without implementation
Abstract class: class with one or more abstract methods
Polymorphism: ability of objects to take on multiple forms
Encapsulation: bundling data and behavi...
I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.
Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.
Switch case is faster than if else for multiple conditions
If else is more readable for binary conditions
Sorting can be done using bubble sort, insertion sort, quick sort, etc.
Example code for bubble sort: for(i=0;i
Difference between compiler and interpreter with a coding challenge
Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution
Compiler generates an executable file while interpreter does not
Compiler is faster but debugging is harder while interpreter is slower but debugging is easier
Coding challenge: Write a program to find the sum of two numbers
I applied via Company Website and was interviewed in Feb 2021. There was 1 interview round.
I applied via Referral and was interviewed in Sep 2020. There were 4 interview rounds.
I applied via Recruitment Consultant and was interviewed in Mar 2021. There were 3 interview rounds.
I applied via Approached by Company and was interviewed before Jun 2021. There was 1 interview round.
based on 1 interview
Interview experience
Software Engineer
8.1k
salaries
| ₹3.8 L/yr - ₹14 L/yr |
Senior Software Engineer
7.3k
salaries
| ₹6.1 L/yr - ₹22.5 L/yr |
Lead Analyst
3.1k
salaries
| ₹10 L/yr - ₹31.5 L/yr |
Associate Software Engineer
1.9k
salaries
| ₹2.5 L/yr - ₹7 L/yr |
Senior Test Engineer
1.2k
salaries
| ₹6 L/yr - ₹21.3 L/yr |
Accenture
Wipro
Cognizant
Capgemini