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 85k Reviews

Filter interviews by

TCS Java Trainee Interview Questions and Answers for Freshers

Updated 9 Jul 2023

TCS Java Trainee Interview Experiences for Freshers

1 interview found

Java Trainee Interview Questions & Answers

user image Anonymous

posted on 9 Jul 2023

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

I applied via AmbitionBox and was interviewed in Jun 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

I'm going to have information on java 5 miniths

Round 3 - Coding Test 

I will give the coding test on java 10 miniths

Interview Preparation Tips

Topics to prepare for TCS Java Trainee interview:
  • C
  • C++
  • Java
  • DATA MINIG
  • MACHINE LERNING
Interview preparation tips for other job seekers - yes

Interview questions from similar companies

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

I applied via Referral and was interviewed in Jul 2024. There was 1 interview round.

Round 1 - Technical 

(5 Questions)

  • Q1. Callable vs runnable?
  • Ans. 

    Callable is used to return a result and can throw checked exceptions, while Runnable is used for void operations.

    • Callable can return a result and throw checked exceptions, while Runnable cannot.

    • Callable is a functional interface with a method call() that returns a result, while Runnable is a functional interface with a method run() that does not return a result.

    • Example: Callable task = () -> { return 5 + 3; }; Runnable...

  • Answered by AI
  • Q2. Functional interface
  • Q3. Java 8 features
  • Q4. Solid principle
  • Q5. Which design pattern to use for complex design?
  • Ans. 

    Use the Strategy design pattern for complex design.

    • Strategy pattern allows you to define a family of algorithms, encapsulate each one, and make them interchangeable.

    • It helps in separating the behavior of a class from the class itself, making it easier to switch between different algorithms at runtime.

    • Examples of using Strategy pattern include implementing different sorting algorithms in a class or defining various paym

  • Answered by AI

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Oops concept , core java
  • Q2. Hibernate, springboot, micrroservices
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Questions related to Java 1.8, Java Core, and Spring Boot.
  • Q2. Questions related to Git, and Agile.

Interview Preparation Tips

Interview preparation tips for other job seekers - keep the core concept strong and go through interview questions on each topic. It's not very tough.
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(4 Questions)

  • Q1. Asked program to return element in a balance array element. Solid design principle Springboot questions
  • Q2. Asked grouping by stream program
  • Q3. Spring questions
  • Q4. How to remove autoconfiguration in springboot
  • Ans. 

    To remove autoconfiguration in Spring Boot, exclude the specific autoconfiguration class from the application.

    • Exclude the autoconfiguration class using @EnableAutoConfiguration annotation with exclude attribute

    • Create a configuration class and exclude the specific autoconfiguration class using @EnableAutoConfiguration annotation

    • Use application.properties or application.yml to exclude autoconfiguration classes

  • Answered by AI

Skills evaluated in this interview

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

(2 Questions)

  • Q1. JPA Hibernate related question
  • Q2. Object oriented Programming questions
Round 2 - Coding Test 

Occurance each characters in a string

Interview experience
3
Average
Difficulty level
Easy
Process Duration
-
Result
-
Round 1 - Coding Test 

Java8 coding questions

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Nov 2023. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - One-on-one 

(11 Questions)

  • Q1. Interviewer was asking my details, skills and background!
  • Q2. What are the features of Java8
  • Ans. 

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

    • Lambda expressions allow writing concise and functional code.

    • Functional interfaces provide a way to define and use lambda expressions.

    • Streams enable processing collections of data in a functional and parallel way.

    • Default methods allow adding new methods to existing interfaces without breaking compati...

  • Answered by AI
  • Q3. Write a functional interface. Refer it to a Lamda Expression. Show it practically while explaining each step
  • Ans. 

    A functional interface is a single abstract method interface. It can be referred to using a lambda expression.

    • Functional interfaces have only one abstract method

    • Lambda expressions can be used to implement functional interfaces

    • Lambda expressions provide a concise way to write anonymous functions

    • Functional interfaces can be used as method parameters or return types

  • Answered by AI
  • Q4. What is HashMap? While Interating through it is it mutable?
  • Ans. 

    HashMap is a data structure in Java that stores key-value pairs. It is mutable while iterating through it.

    • HashMap is part of the Java Collections Framework.

    • It allows null values and at most one null key.

    • It provides constant-time performance for basic operations like get and put.

    • While iterating through a HashMap, it is mutable and can throw ConcurrentModificationException if modified.

    • To avoid this, use an Iterator or Co

  • Answered by AI
  • Q5. What is transient keyword in Java?
  • Ans. 

    The transient keyword in Java is used to indicate that a variable should not be serialized.

    • Variables marked as transient are not included in the serialization process

    • Transient variables are not saved when an object is serialized and are set to their default values when the object is deserialized

    • Useful for excluding sensitive or unnecessary data from being serialized

  • Answered by AI
  • Q6. Given is two arrays! Merge and sort them
  • Ans. 

    Merge and sort two arrays

    • Use the merge sort algorithm to merge and sort the arrays

    • Convert the arrays to a list of strings before merging and sorting

    • Handle null or empty arrays as special cases

  • Answered by AI
  • Q7. Find the duplicate element in a given array using Java 8 features.
  • Ans. 

    Find duplicate element in array using Java 8 features.

    • Convert array to stream using Arrays.stream()

    • Use Collectors.groupingBy() to group elements by their occurrence

    • Filter the grouped elements to find duplicates

  • Answered by AI
  • Q8. Interviewer again asked me about what I has been working on recently! Like the tech stack I used.
  • Q9. What are the various annotations used in SpringBoot (explain)
  • Ans. 

    Various annotations used in SpringBoot

    • 1. @SpringBootApplication: Marks the main class of a Spring Boot application

    • 2. @RestController: Marks a class as a RESTful controller

    • 3. @RequestMapping: Maps HTTP requests to handler methods

    • 4. @Autowired: Injects dependencies automatically

    • 5. @Component: Marks a class as a Spring component

    • 6. @Service: Marks a class as a service component

    • 7. @Repository: Marks a class as a repository ...

  • Answered by AI
  • Q10. What are the different bean scopes in Spring
  • Ans. 

    The different bean scopes in Spring are singleton, prototype, request, session, and application.

    • Singleton scope creates a single instance of a bean per Spring IoC container.

    • Prototype scope creates a new instance of a bean every time it is requested.

    • Request scope creates a new instance of a bean for each HTTP request.

    • Session scope creates a new instance of a bean for each HTTP session.

    • Application scope creates a single

  • Answered by AI
  • Q11. Find the third highest salary in sql
  • Ans. 

    To find the third highest salary in SQL, you can use the 'ORDER BY' clause and 'LIMIT' keyword.

    • Write a SQL query to select distinct salaries from the table

    • Order the salaries in descending order using the 'ORDER BY' clause

    • Use the 'LIMIT' keyword to limit the result to the third row

    • Retrieve the third highest salary from the result

  • Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Good coding questions related array and string

Interview experience
1
Bad
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.

Round 1 - Aptitude Test 

Series, English ,profit & loss

Interview Preparation Tips

Interview preparation tips for other job seekers - Consider what you enjoy doing and whats make you happy also consider your skill and strength

TCS Interview FAQs

How many rounds are there in TCS Java Trainee interview for freshers?
TCS interview process for freshers usually has 3 rounds. The most common rounds in the TCS interview process for freshers are Resume Shortlist, Aptitude Test and Coding Test.

Tell us how to improve this page.

People are getting interviews through

based on 1 TCS interview
Job Portal
100%
Low Confidence
?
Low Confidence means the data is based on a small number of responses received from the candidates.

Interview Questions from Similar Companies

Accenture Interview Questions
3.9
 • 7.9k Interviews
Infosys Interview Questions
3.7
 • 7.4k Interviews
Wipro Interview Questions
3.7
 • 5.5k Interviews
Cognizant Interview Questions
3.8
 • 5.5k Interviews
Capgemini Interview Questions
3.8
 • 4.7k Interviews
Tech Mahindra Interview Questions
3.6
 • 3.7k Interviews
HCLTech Interview Questions
3.5
 • 3.7k Interviews
Genpact Interview Questions
3.9
 • 3k Interviews
LTIMindtree Interview Questions
3.9
 • 2.8k Interviews
IBM Interview Questions
4.1
 • 2.3k Interviews
View all
TCS Java Trainee Salary
based on 6 salaries
₹2.5 L/yr - ₹4 L/yr
6% less than the average Java Trainee Salary in India
View more details

TCS Java Trainee Reviews and Ratings

based on 1 review

5.0/5

Rating in categories

5.0

Skill development

5.0

Work-Life balance

5.0

Salary & Benefits

5.0

Job Security

5.0

Company culture

5.0

Promotions/Appraisal

5.0

Work Satisfaction

Explore 1 Review and Rating
System Engineer
1.1L salaries
unlock blur

₹1 L/yr - ₹9 L/yr

IT Analyst
68.1k salaries
unlock blur

₹5.1 L/yr - ₹16 L/yr

AST Consultant
51.1k salaries
unlock blur

₹8 L/yr - ₹25 L/yr

Assistant System Engineer
31.4k salaries
unlock blur

₹0.3 L/yr - ₹5.6 L/yr

Associate Consultant
28.6k salaries
unlock blur

₹8.9 L/yr - ₹31.9 L/yr

Explore more salaries
Compare TCS with

Amazon

4.1
Compare

Wipro

3.7
Compare

Infosys

3.7
Compare

Accenture

3.9
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview