Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2023. There were 2 interview rounds.
Use caching to avoid loading large file on every post API hit
Implement a caching mechanism to store the loaded file data in memory
Check if the file has been loaded before making the API call, if so, retrieve data from cache
Set a time-to-live (TTL) for the cached data to ensure it stays up to date
Consider using a distributed caching system like Redis for better performance
Use hashing to efficiently sort and find duplicates in a large list of numbers.
Use a hash table to store counts of each number from 1 to 100.
Iterate through the list of numbers and increment the count in the hash table for each number.
Finally, iterate through the hash table and output the numbers with count greater than 1 as duplicates.
Find paired substring from main string
Iterate through the main string and check for pairs of substrings
Use a hashmap to keep track of seen substrings
Return an array of paired substrings
Different aspects of management include planning, organizing, leading, and controlling.
Planning involves setting goals and determining the best course of action to achieve them.
Organizing involves arranging resources and tasks to achieve the goals set during planning.
Leading involves motivating and guiding employees to work towards the common goals.
Controlling involves monitoring progress, identifying deviations from t...
I applied via Walk-in and was interviewed before Sep 2020. There were 4 interview rounds.
I appeared for an interview before Jul 2020.
Yes, Infosys is listed on the Indian stock exchanges as well as on the NYSE.
Infosys is listed on the Bombay Stock Exchange (BSE) and National Stock Exchange of India (NSE)
It is also listed on the New York Stock Exchange (NYSE)
Infosys has a market capitalization of over $80 billion as of 2021
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before May 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Sep 2019. There were 5 interview rounds.
OOPs concepts in Java are the fundamental principles of object-oriented programming.
Encapsulation: wrapping data and code into a single unit
Inheritance: creating new classes from existing ones
Polymorphism: using a single interface to represent multiple types
Abstraction: hiding implementation details from the user
Examples: class, object, inheritance, polymorphism, encapsulation
Stack is a LIFO data structure while Queue is a FIFO data structure.
Stack follows Last In First Out (LIFO) principle while Queue follows First In First Out (FIFO) principle.
Stack has two main operations: push and pop while Queue has two main operations: enqueue and dequeue.
Stack is used in recursive function calls, undo/redo operations, and backtracking while Queue is used in breadth-first search, printing tasks in ord...
SQL query to find second highest salary in database
Use ORDER BY and LIMIT to get the second highest salary
Assume ties are allowed and use DISTINCT
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Method overloading is done within the same class while method overriding is done in different classes (subclass and superclass).
Method overloading is achieved by changing the number of parameters or the data type of ...
The parent class of all classes in Java is the Object class.
All classes in Java implicitly extend the Object class.
The Object class provides basic methods such as toString(), equals(), and hashCode().
Any class can override these methods to provide custom implementations.
Example: public class MyClass extends Object { ... }
Example: Object obj = new MyClass();
SQL databases are relational and use structured query language, while NoSQL databases are non-relational and use various data models.
SQL databases are based on a fixed schema, while NoSQL databases are schema-less.
SQL databases use tables to store data, while NoSQL databases use various data models like key-value, document, columnar, or graph.
SQL databases are better suited for complex queries and structured data, whil...
I applied via Company Website and was interviewed before Oct 2019. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Oct 2020. There were 3 interview rounds.
based on 2 interviews
Interview experience
TCS
Accenture
Cognizant
Infosys