Filter interviews by
Imperative programming focuses on how to perform tasks, while declarative programming focuses on what the desired outcome is.
Imperative programming involves explicitly specifying the steps to achieve a result, while declarative programming involves defining the desired result without specifying the steps.
In imperative programming, the programmer has to manage the state of the program, while in declarative programming, ...
Developed a web application for tracking employee attendance and performance
Implemented user authentication and authorization using Spring Security
Utilized Hibernate for database interaction and data persistence
Designed and developed RESTful APIs for frontend integration
Used AngularJS for frontend development to create interactive user interfaces
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%.
Questions on permuation and combination
I applied via Approached by Company and was interviewed in Apr 2024. There were 2 interview rounds.
Java 8 is a major release of the Java programming language, introducing new features like lambda expressions and streams.
Introduced lambda expressions for functional programming
Added streams API for processing collections
Default methods in interfaces for backward compatibility
Date and Time API improvements
RDBMS stands for Relational Database Management System, a type of database that stores data in tables with relationships between them.
Uses structured query language (SQL) to interact with the database
Data is stored in tables with rows and columns
Supports ACID properties (Atomicity, Consistency, Isolation, Durability)
Examples include MySQL, Oracle, SQL Server
Implement a method to calculate the total price of items in a shopping cart.
Create a method that takes in an array of items with prices as input
Iterate through the array and sum up the prices of all items
Return the total price
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 Walk-in and was interviewed in Jan 2024. There were 3 interview rounds.
They gave a topic named " Are women the great managers then men"
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.
It was not difficult ..it was good ..overall experience was good
Not too difficult ...array realated question were asked
3-16 Yrs
₹ 18-80 LPA
Senior Software Engineer
2.2k
salaries
| ₹3.5 L/yr - ₹26.3 L/yr |
Software Engineer
1.5k
salaries
| ₹3 L/yr - ₹10.3 L/yr |
Technical Lead
1.4k
salaries
| ₹9.8 L/yr - ₹32 L/yr |
Network Engineer
467
salaries
| ₹3 L/yr - ₹12 L/yr |
Senior Technical Lead
427
salaries
| ₹13.4 L/yr - ₹35 L/yr |
TCS
Infosys
Wipro
HCLTech