Sproutern LogoSproutern

Infosys Interview Questions 2025

Ace your Infosys interview with this comprehensive preparation guide. We cover the most frequently asked Technical and HR questions for freshers and experienced professionals.

Technical Round Questions

1. What is the difference between abstract class and interface?

Abstract classes can have both abstract and concrete methods, and can maintain state (instance variables). Interfaces (prior to Java 8) could only have abstract methods and constants. A class can extend only one abstract class but can implement multiple interfaces.

2. Explain the four pillars of OOPs.

1. Encapsulation: Wrapping data and methods into a single unit (class).
2. Abstraction: Hiding implementation details and showing only functionality.
3. Inheritance: Acquiring properties of one class into another.
4. Polymorphism: Ability to take multiple forms (overloading/overriding).

3. What is a Primary Key and Foreign Key?

Primary Key: A unique identifier for a record in a table. It cannot be null.
Foreign Key: A field that links to the Primary Key of another table, establishing a relationship between the two tables.

4. Write a program to reverse a string without using built-in functions.

void reverseString(char* str) {
    int n = strlen(str);
    for (int i = 0; i < n / 2; i++) {
        char temp = str[i];
        str[i] = str[n - i - 1];
        str[n - i - 1] = temp;
    }
}

5. What is the final keyword in Java?

The `final` keyword is used to restrict the user:
- Final Variable: Value cannot be changed (constant).
- Final Method: Cannot be overridden by subclasses.
- Final Class: Cannot be inherited.

6. What is a stored procedure?

A stored procedure is a prepared SQL code that you can save, so the code can be reused over and over again. It helps in reducing network traffic and improves performance.

7. Explain the concept of recursion.

Recursion is a process where a function calls itself directly or indirectly. It requires a base case to stop the infinite loop. Example: Factorial calculation, Fibonacci series.

8. What is the difference between C++ and Java?

C++ supports pointers, multiple inheritance, and is platform-dependent (compiled to machine code). Java does not support explicit pointers, supports only single inheritance (classes), and is platform-independent (compiled to bytecode runs on JVM).

9. What is an array and a linked list?

Array: Fixed-size collection of elements stored in contiguous memory locations. Fast access (O(1)).
Linked List: Dynamic collection where elements (nodes) are stored in non-contiguous memory, linked by pointers. Efficient insertions/deletions.

10. What is SDLC?

SDLC (Software Development Life Cycle) is a process used by the software industry to design, develop and test high-quality software. Stages: Requirement Analysis, Design, Implementation (Coding), Testing, Deployment, Maintenance.

HR Round Questions

1. Why Infosys?

"Infosys is a global leader in consulting and digital services. I am impressed by its world-class training facility in Mysore and its focus on continuous learning. It provides a great platform for freshers to start their career."

2. Can you work under pressure?

"Yes, I can. During my college projects, we had tight deadlines which taught me how to prioritize tasks and manage time effectively. I believe pressure can sometimes be a good motivator to perform better."

3. What are your short-term and long-term goals?

"Short-term: To get placed in a reputed company like Infosys and learn the corporate work culture. Long-term: To become a subject matter expert in my domain and lead a team of developers."

4. Describe a difficult situation you faced and how you handled it.

Use the STAR method (Situation, Task, Action, Result). Example: "In my final year project, a team member fell ill... I took up extra responsibility... we successfully completed the project on time."

5. Do you have any questions for us?

Always ask a question. "What technologies will I be working on?" "What does the typical career path look like for a fresher at Infosys?"