Filter interviews by
I applied via Facebook and was interviewed before Sep 2020. There were 5 interview rounds.
Top trending discussions
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 Approached by Company and was interviewed in Jul 2023. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
posted on 12 Nov 2024
I applied via Referral and was interviewed in Oct 2024. There were 2 interview rounds.
I applied via Job Portal and was interviewed in Dec 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Authentication verifies the identity of a user, while authorization determines what a user can access.
Authentication confirms the user's identity through credentials like passwords or biometrics
Authorization controls the user's access to resources or features based on their identity and permissions
Example: Logging into a website with a username and password is authentication, while being able to view/edit specific page
Promises are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
RxJS is a library for reactive programming using Observables to handle asynchronous data streams.
RxJS stands for Reactive Extensions for JavaScript.
It allows you to work with asynchronous data streams and handle events.
RxJS provides operators to transform, filter, combine, and create observables.
Example: Using RxJS to handle user input events in a web application.
posted on 8 Oct 2024
I applied via LinkedIn and was interviewed in Apr 2024. There were 2 interview rounds.
Find the longest common substring in an array of strings.
Iterate through each string in the array and compare with all other strings to find common substrings.
Keep track of the longest common substring found so far.
Return the longest common substring at the end.
Virtual DOM in React is a lightweight copy of the actual DOM, used for efficient updates and rendering.
Virtual DOM is a concept where a lightweight copy of the actual DOM is created in memory.
When changes are made to the UI, React compares the Virtual DOM with the actual DOM to identify the differences.
React then updates only the necessary parts of the actual DOM, minimizing the number of DOM manipulations for better p...
Optimising a React application involves code splitting, lazy loading, using memoization, reducing unnecessary re-renders, and optimizing network requests.
Implement code splitting to load only necessary code for each route or component.
Use lazy loading to load components only when they are needed, reducing initial load time.
Utilize memoization techniques like useMemo and useCallback to prevent unnecessary re-renders.
Avo...
Object-oriented programming concepts in JavaScript.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Objects can inherit properties and methods from other objects.
Polymorphism: Objects can share the same interface but have different implementations.
Props in React JS are read-only properties that are passed from parent components to child components.
Props allow you to pass data from a parent component to a child component.
Props are immutable and cannot be changed by the child component.
Props are accessed in the child component using this.props.
Example:
Props in React JS are used to pass data from parent components to child components.
Props are read-only and cannot be modified by the child component.
Props are passed down the component tree using custom attributes.
Props help in creating reusable components by passing dynamic data.
Example:
posted on 29 Nov 2021
I was interviewed in Aug 2021.
Round duration - 90 minutes
Round difficulty - Medium
Given an array arr
consisting of 'N' distinct integers, your task is to generate all possible non-empty subsets of the given array.
You can return the subsets in any order.
The ...
Round duration - 60 Minutes
Round difficulty - Medium
The technical question was mainly based on my resume, followed by coding questions.
Round duration - 30 Minutes
Round difficulty - Easy
It was a coding round
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Round duration - 20 Minutes
Round difficulty - Easy
Tip 1 : Maintain a clean resume and have in-depth knowledge of the projects, as in the technical round the interviewer mainly asks technical questions regarding the projects. Questions based on projects are predictable and answering them can give a good impression during the interview.
Tip 2 : Be clear in explaining the approach to coding questions.
Tip 3 : Admit it, if you are not confident in a particular topic. Accepting your weakness is better than a wrong answer.
Tip 1 : Use formal resume templates and maintain a neat resume.
Tip 2 : Have few development projects on the resume with brief summary of the skills implemented.
Tip 3 : Mention your skills in proper sub-sections.
Software Engineer
7
salaries
| ₹6.5 L/yr - ₹9 L/yr |
Full Stack Developer
6
salaries
| ₹3.3 L/yr - ₹9 L/yr |
Senior Software Engineer
6
salaries
| ₹6 L/yr - ₹15 L/yr |
Java Developer
5
salaries
| ₹4.5 L/yr - ₹11 L/yr |
Senior Android Developer
4
salaries
| ₹8.2 L/yr - ₹14.5 L/yr |
TCS
Infosys
Wipro
HCLTech