i
Infosys
Work with us
Filter interviews by
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods in a class. Example: A 'Car' class with properties like 'speed' and methods like 'accelerate()'.
Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.
Polymorph...
Data warehouse (DWH) is structured and optimized for querying and analysis, while data lake is a vast repository for storing raw data in its native format.
DWH is used for structured data and is optimized for querying and analysis.
Data lake stores raw data in its native format, allowing for more flexibility and scalability.
DWH is typically used for business intelligence and reporting purposes.
Data lake is suitable ...
Hive tables store data in HDFS while external tables reference data stored outside HDFS.
Hive tables store data in HDFS, while external tables reference data stored outside HDFS.
External tables are useful when data needs to be shared across different Hive instances or when data is already stored in a different location.
Hive tables are managed by Hive and are deleted when the table is dropped, while external tables ...
The default keyword is used in programming languages to specify a default value or behavior.
In switch statements, default is used as a catch-all case when no other case matches
In function parameters, default values can be specified using the default keyword
In object destructuring, default values can be assigned using the default keyword
In my project, I implemented real-time Oops concepts by using inheritance, encapsulation, and polymorphism to create modular and reusable code.
Used inheritance to create a base class with common properties and methods, then derived classes with specific functionalities.
Implemented encapsulation by restricting access to certain data and methods within classes, ensuring data integrity and security.
Leveraged polymorp...
The flow of a Springboot Application involves the initialization of the application context, handling HTTP requests, processing business logic, and returning responses.
Initialization of the application context using annotations like @SpringBootApplication
Handling HTTP requests through controllers annotated with @RestController
Processing business logic in service classes annotated with @Service
Interacting with data...
String pool is a mechanism in programming languages where strings are stored in a shared memory area to save memory and improve performance.
String pool helps in reducing memory usage by storing only one copy of each unique string.
Strings in the pool can be easily shared among different parts of the program.
In Java, string literals are automatically stored in the string pool.
Example: String str1 = "Hello"; String s...
Find the element that appears only once in an array of strings
Use XOR operation to find the element that appears only once
Iterate through the array and XOR each element to find the unique element
Example: ['apple', 'banana', 'apple', 'orange', 'banana'] should return 'orange'
String is immutable because it cannot be modified once created.
Immutable objects are safer to use in multi-threaded environments.
String pool in Java is possible because of immutability.
StringBuffer and StringBuilder classes are used for mutable strings.
Example: String s = "hello"; s.concat(" world"); // returns a new string, s remains unchanged.
A simple thread program demonstrates basic multithreading in Java using the Thread class.
Create a class that extends Thread.
Override the run() method to define the thread's task.
Instantiate the thread class and call start() to execute.
Example: public class MyThread extends Thread { public void run() { System.out.println('Thread running'); } }
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods in a class. Example: A 'Car' class with properties like 'speed' and methods like 'accelerate()'.
Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.
Polymorphism: ...
I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.
Closure, currying, higher-order functions, promises, and Redux are all concepts in JavaScript programming.
Closure refers to the ability of a function to access variables from its outer scope even after the outer function has finished executing.
Currying is the process of converting a function that takes multiple arguments into a sequence of functions that each take a single argument.
Higher-order functions are functions ...
In my project, I implemented real-time Oops concepts by using inheritance, encapsulation, and polymorphism to create modular and reusable code.
Used inheritance to create a base class with common properties and methods, then derived classes with specific functionalities.
Implemented encapsulation by restricting access to certain data and methods within classes, ensuring data integrity and security.
Leveraged polymorphism ...
The default keyword is used in programming languages to specify a default value or behavior.
In switch statements, default is used as a catch-all case when no other case matches
In function parameters, default values can be specified using the default keyword
In object destructuring, default values can be assigned using the default keyword
I applied via Naukri.com and was interviewed in Sep 2024. There were 2 interview rounds.
Comparing strings, counting duplicate characters using hash map, and finding the third highest salary from emp table in SQL.
Use a hash map to count duplicate characters in a string.
Compare strings by using built-in string comparison functions or algorithms.
To find the third highest salary in SQL, you can use a subquery or window function like ROW_NUMBER().
String pool is a mechanism in programming languages where strings are stored in a shared memory area to save memory and improve performance.
String pool helps in reducing memory usage by storing only one copy of each unique string.
Strings in the pool can be easily shared among different parts of the program.
In Java, string literals are automatically stored in the string pool.
Example: String str1 = "Hello"; String str2 =...
The flow of a Springboot Application involves the initialization of the application context, handling HTTP requests, processing business logic, and returning responses.
Initialization of the application context using annotations like @SpringBootApplication
Handling HTTP requests through controllers annotated with @RestController
Processing business logic in service classes annotated with @Service
Interacting with databases...
Hive tables store data in HDFS while external tables reference data stored outside HDFS.
Hive tables store data in HDFS, while external tables reference data stored outside HDFS.
External tables are useful when data needs to be shared across different Hive instances or when data is already stored in a different location.
Hive tables are managed by Hive and are deleted when the table is dropped, while external tables are n...
Data warehouse (DWH) is structured and optimized for querying and analysis, while data lake is a vast repository for storing raw data in its native format.
DWH is used for structured data and is optimized for querying and analysis.
Data lake stores raw data in its native format, allowing for more flexibility and scalability.
DWH is typically used for business intelligence and reporting purposes.
Data lake is suitable for s...
I applied via Referral and was interviewed in Jan 2024. There was 1 interview round.
Find the element that appears only once in an array of strings
Use XOR operation to find the element that appears only once
Iterate through the array and XOR each element to find the unique element
Example: ['apple', 'banana', 'apple', 'orange', 'banana'] should return 'orange'
What people are saying about Infosys
Some of the top questions asked at the Infosys Technical Analyst interview -
based on 13 interview experiences
Difficulty level
Duration
based on 275 reviews
Rating in categories
Technology Analyst
54.7k
salaries
| ₹4.8 L/yr - ₹10 L/yr |
Senior Systems Engineer
53.9k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Technical Lead
35.1k
salaries
| ₹9.4 L/yr - ₹16.4 L/yr |
System Engineer
32.6k
salaries
| ₹2.4 L/yr - ₹5.5 L/yr |
Senior Associate Consultant
31.4k
salaries
| ₹8.2 L/yr - ₹15 L/yr |
TCS
Wipro
Cognizant
Accenture