i
TCS
Filter interviews by
HashMap works internally using an array of buckets to store key-value pairs, with each bucket containing a linked list of entries.
HashMap uses hashing to determine the index of the bucket where the key-value pair should be stored.
If multiple key-value pairs hash to the same index, they are stored in a linked list within that bucket.
When retrieving a value, the key's hash code is used to find the correct bucket, then th...
application.properties is used to store configuration settings for Java applications.
Centralized storage for configuration settings
Easy to update without changing code
Allows for different configurations for different environments (development, testing, production)
Can be used to store database connection details, API keys, logging settings, etc.
I applied via Walk-in and was interviewed in Sep 2024. There was 1 interview round.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructors, fields, and methods, while interface cannot have any of these.
A class can only extend one abstract class, but can implement multiple interfaces.
Abstract classes are used to define common behavior among subclasses, while interfaces are used to define a contract for classes ...
The main difference between PUT and PATCH methods in Spring Boot is the level of data that is updated.
PUT method is used to update an entire resource, while PATCH method is used to update only specific fields of a resource.
PUT method requires the client to send the entire updated resource, while PATCH method only requires the client to send the specific fields that need to be updated.
PUT method is idempotent, meaning m...
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Developed a web-based inventory management system for a retail company
Used Java, Spring Boot, and MySQL for backend development
Implemented user authentication and authorization using Spring Security
Designed a responsive front-end using HTML, CSS, and JavaScript
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap uses hashing to store and retrieve key-value pairs.
It allows null keys and values.
HashMap does not maintain insertion order.
Example: HashMap
Spring is a framework for building Java applications, while Spring Boot is a tool for quickly creating standalone Spring-based applications.
Spring is a comprehensive framework that provides support for various functionalities like dependency injection, aspect-oriented programming, and more.
Spring Boot is an opinionated tool that simplifies the setup and configuration of Spring applications, allowing developers to quick...
What people are saying about TCS
Java is a high-level programming language known for its portability, security, and versatility.
Java is an object-oriented language, meaning it focuses on creating objects that interact with each other.
It is platform-independent, meaning Java programs can run on any device that has a Java Virtual Machine (JVM).
Java is known for its security features, such as automatic memory management and built-in exception handling.
Po...
Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and tools.
Spring Boot eliminates the need for manual configuration by providing defaults for most settings.
It allows for standalone Spring applications that can be started with a simple 'java -jar' command.
Spring Boot includes embedded servers like Tomcat, Jetty, or Undertow for deploying web application...
TCS interview questions for designations
Java8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow for more concise code by enabling functional programming.
Functional interfaces are interfaces with a single abstract method, such as Runnable or Comparator.
Streams provide a way to process collections of objects in a functional style.
Default methods allow interfaces to have me...
Get interview-ready with Top TCS Interview Questions
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
OOPS (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOPS focuses on creating objects that interact with each other to solve problems.
Key principles include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation involves bundling data and methods that operate on the data into a singl...
Spring Boot is an opinionated framework for building stand-alone, production-grade Spring-based Applications. Spring MVC is a part of the Spring Framework for building web applications.
Spring Boot is an opinionated framework that simplifies the setup and configuration of Spring applications, while Spring MVC is a part of the Spring Framework that focuses on building web applications.
Spring Boot provides embedded server...
I was interviewed in Aug 2024.
Count the frequency of numbers in an array of strings.
Iterate through the array and use a HashMap to store the count of each number.
Handle edge cases like empty array or null values.
Return the HashMap with number frequencies.
To connect to multiple databases through Spring Boot, you can configure multiple data sources and use JPA for each database.
Configure multiple data sources in application.properties or application.yml file
Create separate configuration classes for each data source
Use @Primary annotation to specify the primary data source
Use @Qualifier annotation to specify the secondary data sources
Inject the data sources in your reposi
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
StringBuffer is synchronized and thread-safe, while StringBuilder is not synchronized and not thread-safe.
StringBuffer is synchronized, meaning it is thread-safe and can be used in multi-threaded environments.
StringBuilder is not synchronized, making it faster but not suitable for multi-threaded environments.
StringBuffer methods are synchronized, while StringBuilder methods are not synchronized.
Example: StringBuffer sb...
Yes, I am open to relocating for the right opportunity.
I am willing to relocate for the right job opportunity
I have relocated for previous jobs in the past
I am open to exploring new locations for career growth
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