Filter interviews by
Clear (1)
I applied via Job Portal and was interviewed in Aug 2023. There were 2 interview rounds.
To create a Jar/war file, use the jar command in the terminal or an IDE like Eclipse.
Use the jar command in the terminal to create a Jar file: jar cf jarFileName.jar file1 file2
Use the jar command with 'war' option to create a War file: jar cf warFileName.war file1 file2
In Eclipse, right-click on the project, go to Export > JAR file/WAR file, and follow the prompts
I will use logging, debugging tools like breakpoints, and analyzing stack traces to identify and fix issues in the code.
Use logging statements to track the flow of the code and identify any unexpected behavior.
Set breakpoints in the code to pause execution at specific points and inspect variables and data.
Analyze stack traces to understand the sequence of method calls leading to an error.
Use debugging tools like Eclips...
Use the put() method to replace a value in a HashMap.
Use the put() method with the key of the value you want to replace
Example: map.put(key, newValue);
Front end communicates with the backend in Spring through HTTP requests using RESTful APIs.
Front end sends HTTP requests to the backend server
Backend server processes the requests and sends back HTTP responses
Communication is typically done using RESTful APIs in Spring MVC
Data is exchanged in JSON format between front end and backend
To fetch a value from application.properties file in Spring Boot, use @Value annotation or Environment object.
Use @Value annotation to inject values directly into a field
Use Environment object to access properties programmatically
Example: @Value("${my.property}") private String myProperty;
Example: @Autowired private Environment env; String propertyValue = env.getProperty("my.property");
Some annotations in Spring Boot are @RestController, @Autowired, @Component, @RequestMapping, @Service.
@RestController - used to define RESTful web services.
@Autowired - used for automatic dependency injection.
@Component - marks a java class as a bean so that the component-scanning mechanism of Spring can pick it up and pull it into the application context.
@RequestMapping - used to map web requests to specific handler ...
You can change the data type of a column in SQL using the ALTER TABLE statement.
Use the ALTER TABLE statement followed by the MODIFY COLUMN clause to change the data type of a column.
Specify the new data type for the column after the MODIFY COLUMN clause.
Make sure to handle any data conversion or potential data loss when changing the data type.
You can pull the pids of Java processes using command line tools like jps or ps.
Use 'jps' command to list Java processes along with their pids.
Use 'ps -ef | grep java' command to list all processes with 'java' in their name and find the pid.
You can also use tools like VisualVM or JConsole to monitor and manage Java processes.
To reduce heap memory usage in Java, you can optimize code, limit object creation, use data structures efficiently, and tune JVM settings.
Optimize code by avoiding unnecessary object creation and using efficient algorithms
Limit object creation by reusing objects, using object pooling, or implementing flyweight design pattern
Use data structures efficiently by choosing the right data structure for the task at hand
Tune JV...
mvn clean install is a Maven command used to clean the project, compile the source code, run tests, and package the application.
Removes target directory to clean project
Compiles the source code
Runs tests
Packages the application
Dependencies are downloaded if needed
Top trending discussions
posted on 17 Jan 2025
Dsa and mcq dsa question were med to hard
I applied via Campus Placement and was interviewed before Jul 2020. There were 3 interview rounds.
I applied via Company Website and was interviewed before Jan 2020. There were 4 interview rounds.
I was interviewed before Nov 2020.
Round duration - 360 minutes
Round difficulty - Medium
They give you 6 hr. For 6 question but the good part is that you need to complete atleast 1 question and you are good to go.
Round will be cleared only after attempting one question and rest of the questions are for improving your rank.
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.
Find pairs of elements in an array that sum up to a given value, sorted in a specific order.
Iterate through the array and for each element, check if the complement (S - current element) exists in a hash set.
If the complement exists, add the pair to the result list.
Sort the result list based on the criteria mentioned in the problem statement.
You are given the arrival and departure times of N trains at a railway station for a particular day. Your task is to determine the minimum number of pl...
The task is to determine the minimum number of platforms needed at a railway station based on arrival and departure times of trains.
Sort the arrival and departure times in ascending order.
Use two pointers to keep track of overlapping schedules.
Increment platform count when a new train arrives before the previous one departs.
You are given a matrix of 'N' rows and 'M' columns and a non-negative integer 'K'. Determine the minimum possible sum of all elements in each submatrix after performing at m...
Given a matrix and a non-negative integer K, find the minimum possible sum of all elements in each submatrix after performing at most K decrements.
Iterate through all submatrices and find the minimum possible sum after performing decrements
Keep track of the number of decrements performed on each element
Use dynamic programming to optimize the solution
Ensure not to decrease any number below 0
Return the minimum possible s
You are given an array/list CHOCOLATES
of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M'...
Distribute chocolates among students to minimize the difference between the largest and smallest number of chocolates.
Sort the array of chocolates packets.
Use sliding window technique to find the minimum difference between the largest and smallest packets distributed to students.
Consider edge cases like when number of students is equal to number of packets.
You are given two integers DAY_HOURS
and PARTS
. Consider a day with DAY_HOURS
hours, which can be divided into PARTS
equal parts. Your task is to determine the total ins...
Calculate total instances of equivalent prime groups in a day divided into equal parts.
Divide the day into equal parts and find prime numbers in each part.
Identify prime groups where prime numbers occur at the same position in different parts.
Count the total instances of equivalent prime groups.
Ensure each hour in a prime group is in a different part of the day.
Given a matrix named UNIVERSE
with 3 rows and 'N' columns, filled with characters {#, *, .}, where:
The task is to identify constellations shaped like vowels within a matrix filled with characters {#, *, .}.
Iterate through the matrix to find 3x3 constellations shaped like vowels.
Check for vowels 'A', 'E', 'I', 'O', 'U' in each 3x3 constellation.
Print the vowels found in each constellation for each test case.
Round duration - 20 Minutes
Round difficulty - Easy
Tip 1 : learn basics
Tip 2 : learn any oops language and practice.
Tip 3 : code as much as you can.
Tip 1 : short and precise. Upto the point.
Tip 2 : keep few things aside from resume
I applied via Company Website and was interviewed before Feb 2021. There were 3 interview rounds.
TNQT: TCS National Qualifier Test
I was interviewed before Sep 2020.
Round duration - 60 minutes
Round difficulty - Easy
It was an aptitude test with maths and English questions
Round duration - 60 minutes
Round difficulty - Easy
It was a face to face interview with one of the TCS employees
Given a Singly Linked List of integers accessible via a head pointer, where each node contains a specific integer value. You are required to determine if a node ...
Given a singly linked list of integers, determine if a specified value exists within the list.
Iterate through the linked list to check if the specified value exists.
Return 1 if the value is found, else return 0.
Handle multiple test cases by looping through each one separately.
Round duration - 60 minutes
Round difficulty - Easy
It was more like an HR+Tech round
Given a sorted array 'A' of 'N' integers, determine whether a number 'X' exists within this array for a series of queries. For each query, print 1 if 'X' exists in the ...
Search for a number in a sorted array and determine its existence for multiple queries.
Iterate through each query integer 'X' and perform binary search on the sorted array 'A' to check for its existence.
Output 1 if 'X' is found in 'A', otherwise output 0.
Ensure to handle multiple test cases as per the given constraints.
Tip 1 : Don't stress too much, you can't finish all the problems
Tip 2 : Talk to the current members of that organization on Linkedin or any college alumni
Tip 1 : Keep it one page
Tip 2 : Focus on your projects
I was interviewed in May 2017.
I applied via Campus Placement and was interviewed in Dec 2020. There were 5 interview rounds.
based on 1 interview
Interview experience
Claims Associate
326
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate
182
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
172
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
139
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
87
salaries
| ₹0 L/yr - ₹0 L/yr |
Apollo Hospitals
Fortis Healthcare
Max Healthcare
Manipal Hospitals