Filter interviews by
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Code on Find dup chars in String
Top trending discussions
I applied via LinkedIn and was interviewed in Oct 2024. There was 1 interview round.
API design implementation involves creating a well-structured and user-friendly interface for interacting with software applications.
Understand the requirements and use cases for the API
Design clear and consistent endpoints with proper documentation
Implement secure authentication and authorization mechanisms
Follow RESTful principles for creating APIs
Consider scalability and performance optimizations
HashMap internally uses an array of linked lists to store key-value pairs.
HashMap uses hashing to determine the index of the key in the array.
If multiple keys hash to the same index, a linked list is used to store them.
When retrieving a value, the key is hashed to find the index and then the linked list is searched for the key.
Vector is synchronized and slower, ArrayList is unsynchronized and faster.
Vector is synchronized, ArrayList is not.
Vector is slower due to synchronization, ArrayList is faster.
Vector is legacy class, ArrayList is part of Java Collections framework.
Vector doubles its size when full, ArrayList increases by 50%.
I applied via Naukri.com and was interviewed in Dec 2023. There were 2 interview rounds.
1. Find longest repeating character from back.
2. Find all non-duplicates in an array and return in sorted manner.
The class will have to provide its own implementation of the conflicting default method.
When implementing multiple interfaces with the same default method, a class must provide its own implementation of the conflicting method.
The class cannot inherit the default implementation from both interfaces.
The class can choose to implement one of the default methods and provide its own implementation for the other.
Alternatively...
Terminal operations in streams produce a result or a side effect, while intermediate operations transform or filter the data.
Terminal operations are the final operations in a stream pipeline, such as forEach, collect, or reduce.
Intermediate operations are operations that can be chained together, such as filter, map, or sorted.
Terminal operations trigger the processing of the stream and produce a result or a side effect...
try vs try-with-resources
The 'try' statement is used to define a block of code to be tested for exceptions.
The 'try-with-resources' statement is used to automatically close resources that implement the AutoCloseable interface.
Try-with-resources is more concise and less error-prone compared to try-catch-finally.
Try-with-resources can handle multiple resources in a single statement.
Iterator is a universal interface for iterating over a collection, while ListIterator is a specialized interface for iterating over lists.
Iterator can only move forward, while ListIterator can move in both directions.
ListIterator has additional methods like previous(), hasPrevious(), and add().
ListIterator is only available for List implementations, while Iterator can be used with any collection.
Projections in Spring Data JPA allow customizing the shape of the data returned from a query.
Projections are used to retrieve specific fields or a subset of fields from an entity.
They help in reducing the amount of data transferred over the network.
Projections can be defined using interfaces or classes.
They can be used with both JPQL and native SQL queries.
Projections can be used to fetch related entities as well.
The two types of compiler in Angular are JIT (Just-in-Time) compiler and AOT (Ahead-of-Time) compiler.
JIT compiler compiles the code at runtime in the browser.
AOT compiler compiles the code before the application is deployed to the browser.
JIT compilation is slower but allows for faster development and debugging.
AOT compilation is faster but requires additional build step before deployment.
Data binding in Angular allows automatic synchronization of data between the model and the view.
Interpolation: {{ }} - binds data from the component to the view
Property binding: [] - binds data from the component to an element property
Event binding: () - binds an event from the view to a method in the component
Two-way binding: [()] - combines property and event binding to achieve two-way data flow
Promises are used for asynchronous programming in JavaScript, while Observables are used for reactive programming.
Promises represent a single value that may be available now or in the future.
Observables represent a stream of values that can be emitted over time.
Promises are eager, meaning they start executing as soon as they are created.
Observables are lazy, meaning they only start executing when subscribed to.
Promises...
Constructor is a special method used to initialize an object, while ngOnInit is a lifecycle hook in Angular.
Constructor is used to create and initialize an object of a class.
ngOnInit is a lifecycle hook in Angular that is called after the component is initialized.
Constructor is defined using the constructor keyword, while ngOnInit is a method defined in the component class.
Constructor is called only once during the cre...
Inline templates are used for small, simple templates, while external templates are used for larger, complex templates.
Inline templates are defined within the component's TypeScript file using the template property.
External templates are defined in separate HTML files and linked to the component using the templateUrl property.
Inline templates are useful for small components or when the template is simple and doesn't re...
HttpClient module is used for http calls in Angular.
HttpClient module is part of the @angular/common/http package.
It provides a simplified API for making HTTP requests.
It supports various HTTP methods like GET, POST, PUT, DELETE, etc.
It also supports features like request/response headers, query parameters, error handling, etc.
Example: import { HttpClient } from '@angular/common/http';
I applied via Company Website
Very difficult aptitude questions
Resources coding round
I applied via Approached by Company and was interviewed in Jan 2024. There was 1 interview round.
Using Java Stream operations to manipulate student objects
Use Stream API to perform operations on a collection of student objects
Apply filter, map, reduce, and other stream operations to transform and manipulate data
Use lambda expressions to define the operations to be performed on each student object
Example: filtering students based on a certain criteria, mapping student names to uppercase, calculating the average gra
I was interviewed in Feb 2024.
String is immutable in Java to ensure security, thread safety, and optimization.
Immutable strings prevent accidental changes to sensitive data like passwords.
Immutable strings allow for safe sharing of data across multiple threads.
Immutable strings enable string pooling for memory optimization.
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Java progaming, coding
based on 1 interview
Interview experience
Software Engineer
14
salaries
| ₹3.8 L/yr - ₹12.5 L/yr |
Software Developer
12
salaries
| ₹3.3 L/yr - ₹6 L/yr |
HR Executive
5
salaries
| ₹4.2 L/yr - ₹4.2 L/yr |
Softwaretest Engineer
4
salaries
| ₹2 L/yr - ₹4.3 L/yr |
Program Manager
3
salaries
| ₹6.6 L/yr - ₹16.9 L/yr |
Infosys
TCS
Wipro
HCLTech