Filter interviews by
Top trending discussions
posted on 9 May 2017
I was interviewed before May 2016.
I applied via Recruitment Consulltant and was interviewed before Aug 2023. There were 2 interview rounds.
The current project follows a microservices architecture with Docker containers for scalability and flexibility.
Microservices architecture is used to break down the application into smaller, independent services that can be developed, deployed, and scaled independently.
Docker containers are utilized for packaging the application and its dependencies into a standardized unit for easy deployment and management.
Service di...
Basic coding questions
I applied via Company Website and was interviewed in Dec 2021. There were 3 interview rounds.
LRU caching is a technique to store frequently used data in cache memory to improve performance.
LRU stands for Least Recently Used.
It removes the least recently used item from the cache when the cache is full.
It uses a doubly linked list and a hash map to implement the cache.
When an item is accessed, it is moved to the front of the list.
When the cache is full, the item at the end of the list is removed.
Example: Java Li...
Producer-consumer problem involves synchronization between threads to avoid race conditions.
Producer produces data and adds it to a shared buffer
Consumer consumes data from the shared buffer
Synchronization is required to avoid race conditions
Code example: https://www.geeksforgeeks.org/producer-consumer-solution-using-threads-in-java/
To check if a tree is a BST or not.
Traverse the tree in-order and check if the values are in ascending order.
For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.
Recursively check if the left and right subtrees are also BSTs.
Reverse a single linked list.
Iterate through the list and change the direction of the pointers
Keep track of the previous, current and next nodes
Set the head of the list to the last node after reversing
Print all anagrams of same type in same line from array of Strings
Create a HashMap with sorted string as key and list of anagrams as value
Iterate through array and add each string to corresponding list in HashMap
Print all values in HashMap
Java 8 introduced lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow functional programming in Java.
Functional interfaces are interfaces with a single abstract method.
Streams provide a way to process collections of data in a functional way.
Default methods allow interfaces to have implementation.
Date and Time API improvements.
Nashorn JavaScript engine added.
Standard dsa questions, easy to medium
I applied via Naukri.com and was interviewed in Mar 2023. There were 2 interview rounds.
OOPs concepts in Java include inheritance, polymorphism, encapsulation, and abstraction.
Inheritance allows a subclass to inherit properties and methods from a superclass.
Polymorphism allows objects to take on multiple forms and behave differently based on their context.
Encapsulation hides the implementation details of an object and only exposes necessary information.
Abstraction allows for the creation of abstract class...
Interfaces define contracts for behavior, while inheritance allows for code reuse and polymorphism.
Interfaces allow for loose coupling and abstraction, enabling multiple implementations of the same behavior.
Inheritance allows for code reuse and extension of existing classes, reducing code duplication.
Polymorphism allows objects of different classes to be treated as if they were of the same class, simplifying code and i
SQL query for joining tables
Use JOIN keyword to combine two or more tables based on a related column
Specify the columns to be selected using SELECT keyword
Use ON keyword to specify the condition for joining the tables
Different types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL OUTER JOIN
Used Java concepts such as inheritance, polymorphism, and exception handling in my project.
Implemented inheritance to create a base class and derived classes with specific functionalities.
Utilized polymorphism to allow objects of different classes to be treated as if they were of the same class.
Implemented exception handling to handle errors and prevent program crashes.
Used interfaces to define a set of methods that a ...
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in the superclass.
Overloading is used to provide different ways to call a method with different parameters
Overriding is used to provide a specific implementation of a method in a subclass
Overloading is resolved at compile-time while overriding is r...
posted on 24 Apr 2024
I applied via Campus Placement and was interviewed in Oct 2023. There were 3 interview rounds.
It was online 60min test.
It was offline 30 min test.
posted on 26 Apr 2024
I applied via Campus Placement and was interviewed before Apr 2023. There was 1 interview round.
The 4 principles of OOP are Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation restricts access to certain components within a class, protecting the data.
Abstraction hides complex implementation details and only shows the necessary features.
Polymorphism allows objects to be treated as instances of their parent class.
String buffer is synchronized and thread-safe, while string builder is not synchronized and faster.
String buffer is synchronized, making it thread-safe for use in multi-threaded environments.
String builder is not synchronized, providing better performance in single-threaded applications.
String builder is faster than string buffer due to lack of synchronization overhead.
Example: StringBuffer sb = new StringBuffer(); Str
Strings are immutable in order to ensure data integrity and security.
Immutable strings prevent accidental data modification, ensuring data integrity.
Immutable strings enhance security by preventing unauthorized access or tampering.
Immutable strings allow for more efficient memory management and optimization.
Example: 'Hello' cannot be changed to 'Hella' directly, a new string must be created.
There are two types of exceptions in Java: checked exceptions and unchecked exceptions.
Checked exceptions are checked at compile time and must be handled using try-catch or throws keyword.
Unchecked exceptions are not checked at compile time and include RuntimeException and its subclasses.
Examples of checked exceptions include IOException, SQLException, and ClassNotFoundException.
Examples of unchecked exceptions include...
Linear search is a simple searching algorithm that sequentially checks each element in a list until a match is found.
Iterate through each element in the list
Compare the current element with the target value
Return the index if a match is found, otherwise return -1
JDK includes JRE and development tools, while JRE includes only the Java Runtime Environment.
JDK stands for Java Development Kit, which includes JRE and development tools like compilers and debuggers.
JRE stands for Java Runtime Environment, which includes JVM and libraries necessary to run Java applications.
JVM stands for Java Virtual Machine, which is responsible for executing Java bytecode.
JDK is used for developing ...
I applied via Recruitment Consultant and was interviewed in May 2020. There were 3 interview rounds.
Diameter of a binary tree is the longest path between any two leaf nodes.
Calculate the height of left and right subtrees recursively.
Calculate the diameter recursively using the formula max(left_height + right_height + 1, max(left_diameter, right_diameter)).
Return the maximum diameter.
To find interchanged terms from an AP series
Identify the common difference between terms
Swap the positions of adjacent terms
Check if the new series is also an AP
Repeat until no more interchanged terms can be found
Database indexing is a technique to improve the performance of database queries.
Indexing creates a data structure that allows for faster retrieval of data.
Indexes are created on one or more columns of a table.
Queries that use indexed columns can be executed faster.
Indexes can be clustered or non-clustered.
Clustered indexes determine the physical order of data in a table.
Non-clustered indexes create a separate structure...
Software Engineer
25
salaries
| ₹0 L/yr - ₹0 L/yr |
Application Support Analyst
17
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
17
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
16
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
12
salaries
| ₹0 L/yr - ₹0 L/yr |
BlackBuck
LogiNext Solutions
FarEye
Ecom Express