i
TCS
Filter interviews by
Bean scope in Spring determines the lifecycle and visibility of a bean in the Spring container.
Bean scope defines how long a bean lives and how many instances are created
Common scopes include singleton, prototype, request, session, and application
Singleton scope creates a single instance per Spring container, prototype creates a new instance each time it is requested
Servlet is a Java class that handles requests and responses, while JSP is a technology that simplifies the creation of dynamic web pages.
Servlet is a Java class that extends the capabilities of servers to respond to requests. It is used to create dynamic web content.
JSP is a technology that simplifies the creation of dynamic web pages by allowing Java code to be embedded in HTML pages.
Servlets are used to handle busine...
Spring Boot validation is a feature that allows developers to validate input data in a Spring Boot application.
Spring Boot validation is used to ensure that the data entered by the user meets certain criteria.
It can be applied to request parameters, request bodies, and path variables.
Annotations like @NotNull, @Size, @Email, etc., are commonly used for validation.
Custom validation logic can also be implemented using cu
Garbage collection is the process of automatically reclaiming memory occupied by objects that are no longer in use by the program.
Garbage collection is a feature in Java that automatically manages memory by deallocating memory for objects that are no longer needed.
It helps in preventing memory leaks and ensures efficient memory usage.
Garbage collection runs in the background and identifies objects that are no longer re...
Method overloading is when multiple methods in the same class have the same name but different parameters.
Allows multiple methods with the same name but different parameters to be defined in a class.
Parameters can differ in number, type, or order.
Example: void print(int a) and void print(String s) are overloaded methods in the same class.
Stack memory is used for static memory allocation and execution of thread-specific variables, while heap memory is used for dynamic memory allocation.
Stack memory is used for static memory allocation, such as local variables and function call stack.
Heap memory is used for dynamic memory allocation, such as objects created using 'new' keyword.
Stack memory is limited in size and typically faster to access, while heap mem...
What people are saying about TCS
I applied via Naukri.com and was interviewed in Jan 2024. There was 1 interview round.
Patch and put are HTTP methods used for updating resources on a server.
PATCH is used to partially update a resource, while PUT is used to completely replace a resource.
PATCH requests only include the changes that need to be made, while PUT requests require sending the entire updated resource.
PATCH is often used for incremental updates, while PUT is used for full updates.
Example: PATCH request to update the 'name' field...
Runnable and Callable are interfaces in Java for creating threads. Runnable is used for tasks that don't return a result, while Callable is used for tasks that return a result.
Runnable is a functional interface with a single run() method, while Callable is a generic interface with a single call() method.
Runnable tasks are executed using the void run() method, while Callable tasks are executed using the Future
TCS interview questions for designations
I applied via LinkedIn and was interviewed in Mar 2024. There was 1 interview round.
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap uses the hashCode() method of keys to calc...
Data transfer between components in Angular can be achieved using input/output properties, services, and state management libraries like NgRx.
Use @Input and @Output decorators to pass data between parent and child components.
Create a service to share data between components that are not directly related.
Utilize state management libraries like NgRx for managing application state and sharing data between components.
Use e...
Get interview-ready with Top TCS Interview Questions
I applied via Company Website and was interviewed in Feb 2024. There was 1 interview round.
I applied via Approached by Company and was interviewed in Jan 2024. There was 1 interview round.
Exceptions in Spring Boot can be handled using try-catch blocks, @ExceptionHandler annotation, and global exception handling.
Use try-catch blocks to handle exceptions within a specific method.
Use @ExceptionHandler annotation to handle exceptions at the controller level.
Implement a global exception handler using @ControllerAdvice and @ExceptionHandler annotations.
Customize error responses using ResponseEntityExceptionHa...
Truncate is a SQL command used to delete all rows from a table without logging the individual row deletions.
Truncate is a DDL (Data Definition Language) command in SQL.
It is used to quickly delete all rows from a table, but it does not log individual row deletions.
Truncate is faster than using the DELETE command, as it does not generate individual row deletion logs.
Truncate also resets any auto-incrementing keys in the
Service discovery is the process of automatically finding and connecting to services in a network.
Service discovery allows applications to dynamically locate and communicate with services without hardcoding their locations.
It helps in load balancing, fault tolerance, and scalability by enabling services to be added or removed without manual intervention.
Examples of service discovery tools include Consul, Eureka, and Zo
API gateway is a server that acts as an API front-end, receiving API requests, enforcing throttling and security policies, passing requests to the back-end service, and then passing the response back to the requester.
API gateway acts as a single entry point for all API requests
It can handle tasks like authentication, authorization, rate limiting, caching, and request routing
Examples of API gateways include Amazon API G
The duration of TCS Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 171 interviews
4 Interview rounds
based on 570 reviews
Rating in categories
Hyderabad / Secunderabad
4-9 Yrs
Not Disclosed
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
66.7k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
AST Consultant
51.5k
salaries
| ₹8 L/yr - ₹25 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹5.8 L/yr |
Associate Consultant
29.4k
salaries
| ₹9 L/yr - ₹32 L/yr |
Amazon
Wipro
Infosys
Accenture