Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2022. There were 2 interview rounds.
Session can be maintained in Spring using HttpSession and Spring Session
HttpSession can be used to store session attributes
Spring Session provides additional features like distributed sessions
Session can be configured using annotations or XML configuration
Session timeout can be set using server configuration or programmatic approach
Multi threading is the ability of a program to perform multiple tasks concurrently.
It allows for better utilization of CPU resources
It can improve the responsiveness of an application
It can also introduce synchronization issues and race conditions
Examples include web servers handling multiple requests simultaneously and video games rendering graphics while processing user input
Both have their own advantages and disadvantages depending on the use case.
Runnable is preferred for code reusability and flexibility.
Thread class is preferred for more control over threads and better performance.
Choosing between the two depends on the specific requirements of the project.
For example, if the project requires multiple threads to share a single object, Runnable is a better choice.
On the other hand, if th...
Deployment on server involves building, testing and transferring code to a production environment.
Create a build of the code
Test the build in a staging environment
Transfer the build to the production server
Configure the server to run the new build
Monitor the deployment for any issues
There are two types of storages in JVM: Heap and Stack.
Heap is used for dynamic memory allocation and is shared among all threads.
Stack is used for static memory allocation and is private to each thread.
Objects are stored in the heap while local variables and method calls are stored in the stack.
Heap is larger than stack and can cause OutOfMemoryError if not managed properly.
Top trending discussions
ES6 introduced several new features and improvements to JavaScript, making it more powerful and efficient.
Arrow functions for more concise syntax
Let and const for block-scoped variables
Classes for easier object-oriented programming
Template literals for easier string interpolation
Default parameters and rest parameters for function arguments
Destructuring assignment for easier data extraction
Promises for asynchronous prog
Yes, let and const variables are hoisted but not initialized.
let and const variables are hoisted to the top of their block scope, but they are not initialized until the actual line of code is executed.
This means that you cannot access a let or const variable before it is declared in the code.
For example, trying to access a let variable before it is declared will result in a ReferenceError.
Global context refers to the overall environment or setting in which something exists or operates.
Global context encompasses all variables, functions, and objects that are accessible throughout an entire program.
It can be thought of as the 'big picture' view of a program's execution.
In web development, global context includes the window object in JavaScript.
Temporal dead zone is a period during the variable creation process where accessing the variable results in a ReferenceError.
Occurs when trying to access a variable before it has been declared with let or const
Happens due to the variable being in the temporal dead zone until it is declared
Example: accessing a variable before its declaration will result in a ReferenceError
Modules in Node.js are reusable blocks of code that encapsulate related functionality.
Modules in Node.js can be built-in modules like fs (file system) or third-party modules like express.
Modules help in organizing code into separate files for better maintainability and reusability.
Modules can be imported using the require() function in Node.js.
Indexes in MongoDB improve query performance by allowing the database to quickly locate and retrieve specific documents.
Indexes help to speed up query performance by allowing the database to quickly locate specific documents based on the indexed fields.
Without indexes, MongoDB would have to perform a collection scan, which can be slow and resource-intensive.
Indexes can be created on single fields or compound fields to ...
Hooks are a feature in React that allow you to use state and other React features in functional components. useRef is a hook that allows you to create a mutable object that persists for the lifetime of the component.
Hooks are used to add state and lifecycle methods to functional components in React
useRef is used to create a mutable reference that persists between renders
useRef can be used to access DOM elements directl
Mongoose is an Object Data Modeling (ODM) library for MongoDB that provides a higher level of abstraction and simplifies interactions with the database.
Mongoose provides schema validation which helps maintain data integrity.
Mongoose simplifies querying and data manipulation with built-in functions.
Mongoose supports middleware functions for pre and post processing of data operations.
Basic aptitude questions were asked of easy level.
Aptitude questions were easy and basics
I applied via LinkedIn and was interviewed in Jul 2022. There were 4 interview rounds.
There will be 3 coding questions. They are of medium and hard level.
Sort an array of 0's, 1's, and 2's without using inbuilt functions.
Use three pointers to keep track of the last index of 0's, 1's, and 2's
Iterate through the array and swap elements based on their value
Continue until all elements are sorted
There are three sections: -
1. Quants
2. English
3. Reasoning
All sections are accessible medium but you have maintained the speed and accuracy.
after that coding snippet are in java/python.
Code snippets are there in coding sections.
I applied via LinkedIn and was interviewed in Dec 2020. There were 4 interview rounds.
posted on 9 May 2021
I applied via Naukri.com and was interviewed in Apr 2023. There were 3 interview rounds.
4 Coding Questions Were Given.
Check Palindrome String
Longest Increasing Subsequence
Group Anagrams
Add Two Numbers(Linked List)
Questions were picked from leetcode but the restriction of not using any inbuild function made them difficult to solve in the given time frame.
Throws is used for checked exceptions in Java, while throw is used to explicitly throw an exception.
Throws is used in method signature to declare that the method may throw a checked exception.
Throw is used to actually throw an exception in the code.
Example: public void method() throws IOException { //code }
Example: throw new IOException();
Inheritance allows a class to inherit properties and behaviors from another class. Abstract classes cannot be instantiated and can have abstract methods. Interfaces define a contract for classes to implement.
Inheritance allows a class to inherit properties and behaviors from another class
Abstract classes cannot be instantiated and can have abstract methods
Interfaces define a contract for classes to implement
Senior Software Engineer
18
salaries
| ₹12 L/yr - ₹25 L/yr |
Softwaretest Engineer
10
salaries
| ₹7 L/yr - ₹18.2 L/yr |
Software Engineer
7
salaries
| ₹5.8 L/yr - ₹19 L/yr |
Associate Software Engineer
5
salaries
| ₹2.5 L/yr - ₹4.5 L/yr |
Senior Software Developer
5
salaries
| ₹18 L/yr - ₹20 L/yr |
Infosys
TCS
Wipro
HCLTech