i
TCS
Filter interviews by
I applied via Approached by Company and was interviewed in Feb 2024. There were 2 interview rounds.
Filter products below $200 using streams in Java
Use stream.filter() to filter products with price below 200
Use lambda expression to define the filtering condition
Example: products.stream().filter(product -> product.getPrice() < 200).forEach(System.out::println)
Sort the filtered list of names in alphabetical order
Use Arrays.sort() method to sort the array of strings
Implement a custom Comparator if needed for custom sorting criteria
Ensure to handle null values if present in the list
Java is a versatile programming language used for developing a wide range of applications, from web and mobile apps to enterprise software.
Java is used for developing web applications, such as online banking systems and e-commerce websites.
It is commonly used for creating mobile applications for Android devices.
Java is also used for developing enterprise software, like customer relationship management (CRM) systems and
JVM stands for Java Virtual Machine, which is an abstract computing machine that enables a computer to run Java programs.
JVM is responsible for converting Java bytecode into machine code that can be executed by the computer's operating system.
It provides a platform-independent execution environment for Java programs.
JVM manages memory, handles garbage collection, and provides security features for Java applications.
What people are saying about TCS
TCS interview questions for designations
Rest controller is used in Spring MVC for RESTful web services, while controller is used for general web requests.
Rest controller is used for creating RESTful web services in Spring MVC
Controller is used for handling general web requests in Spring MVC
Rest controller uses @RestController annotation, while controller uses @Controller annotation
Rest controller returns data in JSON or XML format, while controller returns d
Get interview-ready with Top TCS Interview Questions
Use Java 8 streams to filter employees based on desired location.
Use stream() method on the list of employees
Use filter() method to filter employees based on desired location
Use collect() method to collect the filtered employees into a new list
Find second largest number in an array
Check if a pair exists in an array with a given sum
Iterate through the array and store the difference between the target sum and each element in a HashSet
For each element, check if the element exists in the HashSet
Return true if a pair is found, otherwise return false
OOPs concepts are the foundation of object-oriented programming, including encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex imple...
There are multiple ways to create a thread in Java, including extending the Thread class, implementing the Runnable interface, and using Java 8's lambda expressions.
Extending the Thread class
Implementing the Runnable interface
Using Java 8's lambda expressions
Spring is a framework for building Java applications, while Spring Boot is a tool that simplifies the setup and configuration of Spring applications.
Spring is a comprehensive framework that provides various modules for building Java applications, such as Spring MVC, Spring Security, and Spring Data.
Spring Boot is an opinionated tool that simplifies the setup and configuration of Spring applications by providing default...
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