Ace your Infosys interview with this comprehensive preparation guide. We cover the most frequently asked Technical and HR questions for freshers and experienced professionals.
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.
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).
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.
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;
}
}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.
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.
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.
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).
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.
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.
"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."
"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."
"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."
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."
Always ask a question. "What technologies will I be working on?" "What does the typical career path look like for a fresher at Infosys?"