Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by TCS Team. If you also belong to the team, you can get access from here

TCS Verified Tick

Compare button icon Compare button icon Compare
3.7

based on 86.6k Reviews

Filter interviews by

TCS Backend Java Developer Interview Questions, Process, and Tips

Updated 3 Aug 2024

Top TCS Backend Java Developer Interview Questions and Answers

TCS Backend Java Developer Interview Experiences

2 interviews found

Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I was interviewed in Jul 2024.

Round 1 - Technical 

(5 Questions)

  • Q1. What is idempotent term in patch and put?
  • Ans. 

    Idempotent term in patch and put means that multiple identical requests have the same effect as a single request.

    • Idempotent means that the result of a successful request is the same regardless of how many times it is repeated.

    • In PATCH and PUT requests, idempotent means that sending the same request multiple times will not have any additional side effects.

    • For example, if a PATCH request updates a resource with specific ...

  • Answered by AI
  • Q2. Java memory types and which object stores where?
  • Ans. 

    Java memory types and where objects are stored

    • Java memory consists of stack and heap

    • Primitive data types are stored in stack

    • Objects and arrays are stored in heap

    • References to objects are stored in stack

    • Example: int num = 5; // num is stored in stack, value 5 is stored in stack

    • Example: String str = new String(); // str reference is stored in stack, actual String object is stored in heap

  • Answered by AI
  • Q3. Hash map store unique name?
  • Ans. 

    Yes, hash map stores unique keys.

    • Hash map in Java does not allow duplicate keys. If you try to insert a duplicate key, it will replace the existing value with the new one.

    • However, hash map allows duplicate values.

    • Example: HashMap map = new HashMap<>(); map.put("John", 25); map.put("Jane", 30); map.put("John", 35); // 'John' key will now have value 35.

  • Answered by AI
  • Q4. Hashmap java 7 and java 8 difference?
  • Ans. 

    Java 8 introduced new methods for HashMap such as forEach, compute, merge, etc.

    • Java 8 introduced new methods like forEach, compute, merge for HashMap operations

    • Java 8 allows using lambda expressions for iterating over HashMap entries

    • Java 8 introduced default methods in Map interface for HashMap

  • Answered by AI
  • Q5. Can we create static method or variable inside static main()
  • Ans. 

    No, static methods or variables cannot be created inside static main() method.

    • Static methods or variables cannot be created inside another static method.

    • Static methods or variables can only be created at the class level, outside of any method.

    • Example: public class MyClass { static int myVariable = 10; }

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Interviewer was unprofessional behavior, they don't know even what to ask from experience person.
They have their own answer, they don't accept your answer even though if it is correct.
5 years experienced person they ask just java basic, not springboot, no Microservices, no any advanced questions.

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Company Website and was interviewed before Mar 2022. There were 3 interview rounds.

Round 1 - Aptitude Test 

Basic aptitude question, you can follow Study Smart Youtube channel. Some question you will get same

Round 2 - Technical 

(2 Questions)

  • Q1. Depends what language you have written in your resume. For Java you will definately asked oops concept
  • Q2. OOPs concept, with some real life examples. Basic programming like the Fibonacci series, reverse a string such like question
Round 3 - HR 

(1 Question)

  • Q1. Intro, Simple puzzle type question. about family and yourself.

Interview Preparation Tips

Interview preparation tips for other job seekers - Be confident, Prepare aptitude, and focus english part.

Backend Java Developer Interview Questions Asked at Other Companies

Q1. Take a list and find the list containing prime numbers in list, F ... read more
asked in Kinfotech
Q2. What are JDK, JRE & JVM? Signify public static void main (Str ... read more
asked in TCS
Q3. Can we create static method or variable inside static main()
asked in Kinfotech
Q4. Advantages of Spring Boot framework? Annotations in Spring or Spr ... read more
asked in TCS
Q5. Java memory types and which object stores where?

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is profile in springboot
  • Ans. 

    Profile in Spring Boot is a set of configurations that can be used to customize the behavior of an application.

    • Profiles allow developers to define different configurations for different environments (e.g. development, testing, production).

    • Profiles can be activated using the 'spring.profiles.active' property in the application.properties file.

    • Profiles can be used to specify different database connections, logging levels...

  • Answered by AI
  • Q2. How will you create custom exception
  • Ans. 

    Custom exceptions can be created by extending the Exception class in Java.

    • Create a new class that extends the Exception class

    • Override the constructors to provide custom messages and error codes

    • Throw the custom exception using the 'throw' keyword

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is StreamsAPI
  • Ans. 

    StreamsAPI is a feature in Java that allows for processing sequences of elements in a functional style.

    • StreamsAPI provides a way to work with collections of objects in a more concise and declarative manner.

    • It supports operations like filter, map, reduce, and collect.

    • Example: List names = Arrays.asList("Alice", "Bob", "Charlie"); names.stream().filter(name -> name.startsWith("A")).forEach(System.out::println);

Answered by AI
  • Q2. What is exception in Java
  • Ans. 

    An exception in Java is an event that disrupts the normal flow of a program's instructions.

    • Exceptions are objects that are thrown when an abnormal condition occurs during the execution of a program.

    • They can be caught and handled using try-catch blocks.

    • Unchecked exceptions do not need to be declared in a method's throws clause, while checked exceptions do.

    • Examples of exceptions in Java include NullPointerException, Arra

  • Answered by AI

    Skills evaluated in this interview

    Interview experience
    5
    Excellent
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    Selected Selected

    I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.

    Round 1 - Technical 

    (8 Questions)

    • Q1. What improvements to interfaces were introduced in Java 8 that were missing in Java 7, specifically regarding static and default methods?
    • Ans. 

      Java 8 introduced static and default methods in interfaces, allowing for method implementation and code reusability.

      • Java 8 introduced static methods in interfaces, allowing for method implementation directly in the interface itself.

      • Default methods were also introduced in Java 8, enabling interfaces to have method implementations without affecting implementing classes.

      • Static methods in interfaces can be called using the...

    • Answered by AI
    • Q2. Explain internal working of HashMap ? How to synchronize it ?
    • Ans. 

      HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.

      • HashMap 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.

      • To synchronize a HashMap, you can use the synchronizedMap() m...

    • Answered by AI
    • Q3. Given a list of employees with their ratings, how can you sort the employees based on their ratings using the Java 8 Streaming API?
    • Q4. Will the program compile if the parent class throws a runtime exception while the child class throws an arithmetic exception?
    • Ans. 

      No, the program will not compile if the parent class throws a runtime exception while the child class throws an arithmetic exception.

      • In Java, if a parent class method throws a checked exception, the child class method can only throw the same exception or its subclasses.

      • ArithmeticException is an unchecked exception, so if the parent class throws a checked exception and the child class throws an unchecked exception, the ...

    • Answered by AI
    • Q5. In a Spring Boot application with two databases, how can you configure JDBC to specify which database to use?
    • Ans. 

      Configure JDBC in Spring Boot to specify which database to use

      • Define multiple DataSource beans in the configuration class

      • Use @Primary annotation to specify the primary DataSource

      • Use @Qualifier annotation to specify the secondary DataSource

      • Inject the DataSource beans where needed in the application

    • Answered by AI
    • Q6. How to use a jetty server in your spring boot application ?
    • Ans. 

      To use a Jetty server in a Spring Boot application, you can configure it as a dependency and customize its settings.

      • Add Jetty server dependency in your pom.xml file

      • Exclude Tomcat server dependency if it's included by default in Spring Boot

      • Configure Jetty server settings in application.properties or application.yml file

      • Example: Add Jetty dependency - <dependency> <groupId>org.springframework.boot</groupId...

    • Answered by AI
    • Q7. Difference between @RequestParam and @PathVariable ?
    • Ans. 

      RequestParam is used to extract query parameters from the URL, while PathVariable is used to extract values from the URI path.

      • RequestParam is used for query parameters in the URL, while PathVariable is used for values in the URI path.

      • RequestParam is optional, while PathVariable is required.

      • RequestParam is used with the @RequestParam annotation, while PathVariable is used with the @PathVariable annotation.

      • Example: @Requ...

    • Answered by AI
    • Q8. How would you handle a scenario where one microservice is awaiting a response from another microservice that is taking an extended time to respond?
    • Ans. 

      I would implement timeout mechanisms and retries to handle the scenario of one microservice awaiting a response from another microservice taking an extended time.

      • Implement timeout mechanisms in the calling microservice to limit the waiting time for a response.

      • Set up retry logic to automatically resend the request to the slow microservice if no response is received within the specified timeout period.

      • Use circuit breaker...

    • Answered by AI

    Interview Preparation Tips

    Interview preparation tips for other job seekers - Prepare the basics about Java 8 , Core Java , Springboot , Microservices and MySql.
    Interview experience
    5
    Excellent
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    Selected Selected

    I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

    Round 1 - Technical 

    (6 Questions)

    • Q1. Java 8 , java 11 and java 17 features?
    • Ans. 

      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.

    • Answered by AI
    • Q2. Dispatcher servlet, design patterns
    • Q3. @SpringbootApplication annotation, actuators
    • Q4. String Coding question with java 8 features such as lambda function and stream api
    • Q5. Number of words in a string
    • Ans. 

      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.

    • Answered by AI
    • Q6. Microservice design patterns
    Interview experience
    4
    Good
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    Not Selected

    I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.

    Round 1 - Aptitude Test 

    It had java programming and aptitude tests and MCQs

    Round 2 - Technical 

    (1 Question)

    • Q1. Asked SQL, microservices and java questions
    Interview experience
    3
    Average
    Difficulty level
    Moderate
    Process Duration
    6-8 weeks
    Result
    Not Selected

    I applied via Job Fair and was interviewed in Oct 2024. There were 4 interview rounds.

    Round 1 - Aptitude Test 

    Onlin test consist pf easy numerical questions

    Round 2 - Coding Test 

    Easy questions not so difficult

    Round 3 - Technical 

    (3 Questions)

    • Q1. Java oops concept
    • Q2. Basic sprophramming questions
    • Q3. Networking firewall cisco
    Round 4 - HR 

    (2 Questions)

    • Q1. Personal questions
    • Q2. Whetehr to willing to work in any locations
    • Ans. 

      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

    • Answered by AI

    Interview Preparation Tips

    Topics to prepare for Tech Mahindra Java Developer interview:
    • Networking
    Interview preparation tips for other job seekers - nothiung
    Interview experience
    4
    Good
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    Not Selected

    I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.

    Round 1 - Technical 

    (9 Questions)

    • Q1. Transactions in springboot
    • Ans. 

      Transactions in Spring Boot manage database operations as a single unit of work to ensure data integrity.

      • Spring Boot provides support for declarative transaction management using @Transactional annotation.

      • Transactions can be configured at class or method level.

      • Transactions can be rolled back in case of exceptions to maintain data consistency.

      • Example: @Transactional annotation on a service method ensures that all databa...

    • Answered by AI
    • Q2. Difference between arraylist and linked list
    • Ans. 

      ArrayList is resizable array implementation, LinkedList is doubly linked list implementation.

      • ArrayList uses dynamic array to store elements, LinkedList uses doubly linked list.

      • ArrayList is faster for accessing elements by index, LinkedList is faster for adding/removing elements.

      • Example: ArrayList arrList = new ArrayList<>(); LinkedList linkedList = new LinkedList<>();

    Answered by AI
  • Q3. How REST API used
  • Ans. 

    REST API is used to communicate between client and server using HTTP methods like GET, POST, PUT, DELETE.

    • REST API allows clients to access and manipulate resources on a server using standard HTTP methods.

    • It uses URLs to identify resources and HTTP methods to perform actions on those resources.

    • Common HTTP methods used in REST API are GET (retrieve data), POST (create data), PUT (update data), DELETE (remove data).

    • REST A...

  • Answered by AI
  • Q4. Annotations in springboot
  • Ans. 

    Annotations in Spring Boot are used to provide metadata about the application and its components.

    • Annotations are used to configure Spring Boot applications, define beans, handle requests, etc.

    • Examples include @SpringBootApplication, @RestController, @Autowired, @RequestMapping, etc.

  • Answered by AI
  • Q5. Features of java 8
  • Ans. 

    Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods in interfaces.

    • Lambda expressions allow for more concise code and enable functional programming.

    • Functional interfaces are interfaces with a single abstract method, used for lambda expressions.

    • Streams provide a way to work with collections of objects in a functional style.

    • Default methods in interfaces ...

  • Answered by AI
  • Q6. How interface is implemented in java
  • Ans. 

    Interfaces in Java are implemented using the 'implements' keyword, allowing classes to provide specific implementations for methods defined in the interface.

    • Interfaces in Java define a contract for classes to implement, specifying method signatures without implementations.

    • A class can implement multiple interfaces by separating them with commas.

    • Classes implementing an interface must provide concrete implementations for ...

  • Answered by AI
  • Q7. How stream API works
  • Ans. 

    Stream API in Java provides a way to process collections of objects in a functional style.

    • Stream API allows for functional-style operations on collections like map, filter, reduce, etc.

    • It supports lazy evaluation, meaning operations are only performed when needed.

    • Streams can be sequential or parallel, depending on the source and operations used.

  • Answered by AI
  • Q8. Benefits of springboot over spring
  • Ans. 

    Spring Boot simplifies the setup and development of Spring applications by providing a convention-over-configuration approach.

    • Spring Boot eliminates the need for XML configuration by using annotations and sensible defaults.

    • It includes embedded servers like Tomcat, Jetty, or Undertow, making it easy to deploy standalone applications.

    • Auto-configuration feature reduces the amount of boilerplate code needed to set up a Spr...

  • Answered by AI
  • Q9. Difference between throw and throwable
  • Ans. 

    throw is a keyword used to explicitly throw an exception, while Throwable is a class that serves as the base class for all exceptions in Java.

    • throw is used to throw an exception in a method, while Throwable is the superclass of all exceptions in Java.

    • throw is followed by an instance of Throwable class or its subclasses, while Throwable is a class that provides common methods for handling exceptions.

    • Example: throw new N...

  • Answered by AI

    Interview Preparation Tips

    Interview preparation tips for other job seekers - Try to speak about one topic of more time it will increase the time of interview.

    Skills evaluated in this interview

    Interview experience
    4
    Good
    Difficulty level
    Moderate
    Process Duration
    2-4 weeks
    Result
    No response

    I applied via Company Website and was interviewed in Oct 2024. There were 3 interview rounds.

    Round 1 - Aptitude Test 

    First round is quit easy

    Round 2 - Coding Test 

    2 coding question based on dsa

    Round 3 - Technical 

    (2 Questions)

    • Q1. Explain different phases of sdlc
    • Ans. 

      SDLC stands for Software Development Life Cycle, which consists of different phases from planning to maintenance.

      • 1. Planning phase involves defining project scope, requirements, and creating a project plan.

      • 2. Analysis phase focuses on gathering and analyzing requirements to create a detailed system design.

      • 3. Design phase involves creating a high-level design, detailed design, and architecture for the software.

      • 4. Implem...

    • Answered by AI
    • Q2. 4 paillers of datastructure.
    • Ans. 

      The 4 pillars of data structure are arrays, linked lists, stacks, and queues.

      • Arrays: Data structure that stores a collection of elements with a fixed size.

      • Linked Lists: Data structure where each element points to the next element in the sequence.

      • Stacks: Data structure that follows the Last In First Out (LIFO) principle.

      • Queues: Data structure that follows the First In First Out (FIFO) principle.

    • Answered by AI

    Skills evaluated in this interview

    TCS Interview FAQs

    How many rounds are there in TCS Backend Java Developer interview?
    TCS interview process usually has 2-3 rounds. The most common rounds in the TCS interview process are Technical, Resume Shortlist and Aptitude Test.
    How to prepare for TCS Backend Java Developer interview?
    Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at TCS. The most common topics and skills that interviewers at TCS expect are Java, Microservices and Spring Boot.
    What are the top questions asked in TCS Backend Java Developer interview?

    Some of the top questions asked at the TCS Backend Java Developer interview -

    1. Can we create static method or variable inside static mai...read more
    2. What is idempotent term in patch and p...read more
    3. Java memory types and which object stores whe...read more

    Tell us how to improve this page.

    TCS Backend Java Developer Interview Process

    based on 3 interviews

    Interview experience

    2.7
      
    Poor
    View more

    Interview Questions from Similar Companies

    Accenture Interview Questions
    3.9
     • 8.1k Interviews
    Infosys Interview Questions
    3.7
     • 7.5k Interviews
    Wipro Interview Questions
    3.7
     • 5.6k Interviews
    Cognizant Interview Questions
    3.8
     • 5.5k Interviews
    Capgemini Interview Questions
    3.8
     • 4.8k Interviews
    Tech Mahindra Interview Questions
    3.6
     • 3.8k Interviews
    HCLTech Interview Questions
    3.5
     • 3.7k Interviews
    Genpact Interview Questions
    3.9
     • 3k Interviews
    LTIMindtree Interview Questions
    3.8
     • 2.9k Interviews
    IBM Interview Questions
    4.1
     • 2.4k Interviews
    View all
    TCS Backend Java Developer Salary
    based on 242 salaries
    ₹2.5 L/yr - ₹9 L/yr
    21% less than the average Backend Java Developer Salary in India
    View more details

    TCS Backend Java Developer Reviews and Ratings

    based on 14 reviews

    2.9/5

    Rating in categories

    3.3

    Skill development

    3.5

    Work-life balance

    1.9

    Salary

    4.8

    Job security

    3.4

    Company culture

    2.4

    Promotions

    3.2

    Work satisfaction

    Explore 14 Reviews and Ratings
    System Engineer
    1.1L salaries
    unlock blur

    ₹1 L/yr - ₹9 L/yr

    IT Analyst
    67.6k salaries
    unlock blur

    ₹5.1 L/yr - ₹16 L/yr

    AST Consultant
    51.3k salaries
    unlock blur

    ₹8 L/yr - ₹25 L/yr

    Assistant System Engineer
    29.9k salaries
    unlock blur

    ₹2.2 L/yr - ₹5.6 L/yr

    Associate Consultant
    28.9k salaries
    unlock blur

    ₹9 L/yr - ₹32 L/yr

    Explore more salaries
    Compare TCS with

    Amazon

    4.1
    Compare

    Wipro

    3.7
    Compare

    Infosys

    3.7
    Compare

    Accenture

    3.9
    Compare
    Did you find this page helpful?
    Yes No
    write
    Share an Interview