i
TCS
Filter interviews by
I applied via Naukri.com and was interviewed in Apr 2023. There were 3 interview rounds.
My technology stack includes Java, Spring Boot, Hibernate, MySQL, and Angular.
Java for backend development
Spring Boot for creating RESTful APIs
Hibernate for ORM
MySQL for database management
Angular for frontend development
Experience with AWS and Docker
Program to find even and odd number using lambda expression
Create a list of numbers
Use lambda expression to filter even and odd numbers
Print the even and odd numbers
Sort employees by cities using Stream API
Create a list of employees with their respective cities
Use Stream API to sort the list by cities
Print the sorted list of employees
Memory leakage can be managed by identifying and fixing the root cause of the issue.
Use a profiler tool to identify the source of the memory leak
Analyze the code to find out if there are any objects that are not being used and can be removed
Ensure that all objects are properly disposed of after use
Use weak references instead of strong references where possible
Avoid creating unnecessary objects
Regularly monitor memory u
Spring Boot is a framework that simplifies the development of Java applications.
Provides a pre-configured environment for building production-grade applications
Uses embedded servers like Tomcat, Jetty, etc.
Supports auto-configuration, which eliminates the need for manual configuration
Offers a wide range of plugins and extensions for easy integration with other frameworks and tools
Controller is used for general MVC architecture while RestController is used for RESTful web services.
Controller is used for handling user requests and returning a view
RestController is used for handling RESTful web services and returning JSON/XML response
RestController is a specialized version of Controller
RestController is annotated with @RestController while Controller is annotated with @Controller
Example: @Controll...
We use ArrayList and HashMap in our current project.
ArrayList is used to store and manipulate a list of objects.
HashMap is used to store key-value pairs for efficient retrieval.
We also use HashSet for storing unique elements and LinkedList for efficient insertion and deletion.
The choice of collection depends on the specific use case and performance requirements.
Steps to create a Spring Boot application
Create a new Spring Boot project using Spring Initializr
Add necessary dependencies in pom.xml or build.gradle file
Create a main class with @SpringBootApplication annotation
Create necessary packages and classes for controllers, services, and repositories
Configure application properties in application.properties or application.yml file
Run the application using IDE or command line
To change embedded server in Spring Boot, modify the pom.xml file and application.properties file.
Update the pom.xml file with the desired server dependency
Update the application.properties file with the server port and context path
Restart the application to apply the changes
Hibernate is an implementation of JPA, which is a specification for ORM in Java.
JPA is a specification for ORM in Java, while Hibernate is an implementation of that specification.
Hibernate provides additional features beyond the JPA specification.
JPA is more portable across different ORM implementations, while Hibernate is more feature-rich.
Hibernate is often used in enterprise applications where complex mappings and c
No, lambda expressions can only be used with functional interfaces.
Lambda expressions are used to implement functional interfaces.
Functional interfaces have only one abstract method.
Lambda expressions provide a concise way to implement the abstract method of a functional interface.
If a lambda expression is used without a functional interface, it will result in a compilation error.
Microservices offer advantages such as scalability, flexibility, and easier maintenance.
Scalability: Microservices can be scaled independently, allowing for better resource utilization and cost savings.
Flexibility: Microservices can be developed and deployed independently, allowing for faster time-to-market and easier updates.
Easier maintenance: Microservices are smaller and more focused, making it easier to identify a...
I applied via Recruitment Consulltant and was interviewed in Oct 2021. There were 2 interview rounds.
Find out duplicate element
Find out duplicate element and count of duplicate
I was interviewed in Jan 2025.
A sequence was provided: 4181, 2684, 1597, 987, 610.
first 2 are given and write code for other value calculation using java 8
The second question required writing a reverse of a palindrome using both Java 8 streams. I was able to successfully write both and clear the first round.
I applied via Company Website and was interviewed in Nov 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.
Java 8 introduced lambda expressions for functional programming.
Java 11 added local-variable syntax for lambda parameters to simplify code.
Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.
Count the number of words in a given string.
Split the string by spaces and count the number of resulting elements.
Handle edge cases like multiple spaces or empty strings.
Consider punctuation marks as part of words unless specified otherwise.
I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.
Use Streams to remove duplicates and retain only even numbers from an array.
Convert the array to a stream using Arrays.stream()
Use distinct() to remove duplicates
Filter out odd numbers using filter()
Collect the result using collect(Collectors.toList())
Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.
Static methods belong to the class itself, not to any specific instance
Final keyword ensures that the method cannot be overridden in subclasses
Static methods are commonly used for utility methods that do not require access to instance variables
Example: Math class in Java has static methods like Ma
The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.
RestController is a specialized version of Controller used for RESTful web services
RestController eliminates the need for @ResponseBody annotation
Controller is used for traditional MVC controller functionality
RestController returns data directly without needing to go through a view resolve...
Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.
Microservices allow for easier scalability and maintenance of complex applications.
Each service in a microservices architecture can be developed, deployed, and scaled independently.
Microservices promote flexibility and agility in software development.
Examples of companies us...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There were 2 interview rounds.
The first round was an interview conducted with a GENAI virtual bot.
Spring Boot uses autoconfiguration to automatically configure the Spring application based on dependencies and properties.
Spring Boot autoconfiguration is achieved through @EnableAutoConfiguration annotation
Autoconfiguration classes are located in the org.springframework.boot.autoconfigure package
Autoconfiguration classes are conditionally applied based on the presence of specific classes or properties
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.
HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.
HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.
HashMap is generally preferred for non-thread-safe applications, while HashTable is used in mul
I applied via Job Fair and was interviewed in Oct 2024. There were 4 interview rounds.
Onlin test consist pf easy numerical questions
Easy questions not so difficult
Yes, I am willing to work in any location for the right opportunity.
I am open to relocating for the right job opportunity
I am flexible and adaptable to new environments
I believe working in different locations can provide valuable experiences and growth opportunities
Interview experience
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
67.4k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.3k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.9k
salaries
| ₹2.2 L/yr - ₹5.6 L/yr |
Associate Consultant
29k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture