Filter interviews by
Performance issues in Spring Boot can be handled by optimizing code, using caching, monitoring application metrics, and tuning database queries.
Optimize code by reducing unnecessary loops, improving algorithms, and minimizing database calls.
Use caching mechanisms like Spring Cache to store frequently accessed data in memory.
Monitor application metrics using tools like Spring Boot Actuator to identify bottlenecks and op...
Java program to group and count strings in an array
Create a HashMap to store the strings and their counts
Iterate through the array of strings and update the counts in the HashMap
Print out the grouped strings and their counts
Conditional annotations in Spring Boot allow for conditional bean registration based on certain conditions.
Conditional annotations are used to conditionally register beans in the Spring application context.
Examples include @ConditionalOnProperty, @ConditionalOnClass, @ConditionalOnMissingBean, etc.
These annotations help in dynamically configuring the application based on certain conditions.
Lazy loading in Hibernate is a technique used to load data only when it is needed, improving performance.
Lazy loading is achieved by setting the fetch type to LAZY in the mapping of the entity relationship.
When an entity is loaded, associated entities marked as LAZY are not loaded until accessed.
Lazy loading helps in reducing unnecessary database calls and improves performance.
Example: @OneToMany(fetch = FetchType.LAZY
Top trending discussions
Spring framework is a popular Java framework that provides comprehensive infrastructure support for developing Java applications.
Provides dependency injection for managing components
Supports aspect-oriented programming for modularizing cross-cutting concerns
Includes modules like Spring MVC for building web applications
Facilitates integration with other frameworks and technologies like Hibernate, JPA, and RESTful servic
I applied via Naukri.com
General aptitude test.
Gtfd juun lfxjk nf kf krsz kg khvb.
Sf cv cv nn khg mhh mkgx sv jvv .
Gnn h m gf l y kf, kkyc liv mlbh mh .
Sf jf jdzy kew ha bkkm kgc jyydc .
KKK lb GU Mk ohhh sf VH mg ui
CJK PJ Mk ng HK LJ VN I'll
It's was MCQ based test
Some OOP concepts include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features
A Guid Id is a globally unique identifier used in software development to uniquely identify objects or entities.
Guid Ids are 128-bit integers represented as a hexadecimal string.
They are typically used in databases, APIs, and various software systems to ensure uniqueness.
Example: 6B29FC40-CA47-1067-B31D-00DD010662DA
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
I applied via LinkedIn and was interviewed in Apr 2024. There were 2 interview rounds.
Profit and loss average , simple intesest
Fibonacci numbers , prime numbers , even odd numbers
Medium leveln coding round
I was interviewed in Oct 2021.
Round duration - 105 minutes
Round difficulty - Medium
There were 3 problems .
One was easy but the other two were of medium level.
Given an array representing positions of stalls and an integer ‘K’ representing the number of aggressive cows, determine the largest minimum distance between any two cows ...
The problem requires assigning aggressive cows to stalls in a way that maximizes the minimum distance between any two cows.
Sort the array of stall positions in ascending order.
Use binary search to find the largest minimum distance between cows.
Check if it is possible to assign cows with this minimum distance by iterating through the sorted array.
If it is possible, update the maximum distance and continue binary search ...
The city of Ninjaland is represented as an unweighted graph with houses and roads. There are 'N' houses numbered 1 to 'N', connected by 'M' bidirectional roads. A road...
The problem is to find the shortest path between two houses in an unweighted graph.
The graph represents the city of Ninjaland with houses connected by roads.
The input consists of the number of test cases, number of houses and roads, starting and ending house, and the roads between houses.
The output is a vector of nodes representing the shortest path from the starting house to the ending house.
If there are multiple shor...
Given a positive integer N
, compute the total number of '1's in the binary representation of all numbers from 1 to N. Return this count modulo 1e9+7 because the result can...
The task is to count the total number of '1' in the binary representation of all numbers from 1 to N.
Convert each number from 1 to N into its binary representation
Count the number of '1' bits in each binary representation
Sum up the counts of '1' bits for all numbers
Return the sum modulo 1e9+7
Round duration - 60 minutes
Round difficulty - Easy
The interviewer was very polite and straightforward.
Firstly he introduced himself and then asked me to introduce myself and then he jumped to the coding problems.
After the coding problems, he asked some questions from the OS and DBMS.
You are given a string of length N
. Your task is to reverse the string word by word. The input may contain multiple spaces between words and may have leading o...
The task is to reverse the words in a given string, removing any leading or trailing spaces and replacing multiple spaces between words with a single space.
Split the string into words using spaces as delimiters
Reverse the order of the words
Join the reversed words with a single space between them
Remove any leading or trailing spaces
You are provided with a linked list containing 'N' nodes and an integer 'K'. The task is to reverse the linked list in groups of size K, which means reversing the nodes ...
The task is to reverse a linked list in groups of size K.
Iterate through the linked list in groups of size K
Reverse each group using a helper function
Connect the reversed groups to form the final reversed linked list
Round duration - 60 minutes
Round difficulty - Medium
The interviewer was very polite and straightforward, firstly he introduce himself and then ask me to introduce myself and then ask some ques on my projects and then he jumps to the coding problems.
Given a string STR
consisting of both lower and upper case characters, your task is to remove consecutive duplicate characters from the string a...
The task is to remove consecutive duplicate characters from a given string and return the new string.
Iterate through the characters of the string
Compare each character with the next character
If they are the same, skip the next character
If they are different, add the current character to the new string
Return the new string
Given an N*M matrix filled with integer numbers, determine the maximum sum that can be obtained from a path starting from any cell in the first row to any cell in the last row...
The question asks to find the maximum sum that can be obtained from a path starting from any cell in the first row to any cell in the last row of a given matrix.
Iterate through each cell in the first row and calculate the maximum sum path ending at that cell
For each cell, calculate the maximum sum path ending at that cell by considering the three possible directions
Store the maximum sum path ending at each cell in a se...
Tip 1 : Deep knowledge of the projects mentioned in your resume is a must.
Tip 2 : Practice must do GFG coding questions.
Tip 3 : Practice as many problems as you can from Leetcode.
Tip 1 : Mention 1 or 2 projects in your resume.
Tip 2 : Don't put false things in your resume.
based on 1 interview
Interview experience
Bench Sales Recruiter
5
salaries
| ₹1.8 L/yr - ₹4.3 L/yr |
Senior Recruiter
4
salaries
| ₹4.2 L/yr - ₹4.8 L/yr |
Senior Bench Sales Recruiter
4
salaries
| ₹5.4 L/yr - ₹7.8 L/yr |
Java Full Stack Developer
4
salaries
| ₹1 L/yr - ₹4 L/yr |
Network Engineer
3
salaries
| ₹6 L/yr - ₹6 L/yr |
TCS
Infosys
Wipro
HCLTech