i
TCS
Filter interviews by
All kind of basic aptitude to oops
Two java questions easy and medium
I applied via Campus Placement and was interviewed before Oct 2023. There was 1 interview round.
Traverse the linked list to find the starting point by using Floyd's Tortoise and Hare algorithm
Use two pointers, slow and fast, to traverse the linked list
Move slow pointer by one step and fast pointer by two steps
When they meet, reset one pointer to the head and move both pointers by one step until they meet again
Traverse the linked list and count the number of nodes
Initialize a counter variable to 0
Traverse the linked list while incrementing the counter for each node
Return the final count as the length of the linked list
Good aptitute is asked in the tcs
Basic to medium level question
I appeared for an interview before Mar 2023.
OOPs features include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability to create new classes based on existing classes, inheriting their attributes and methods.
Polymorphism: Ability to use a single interface to represent different data types or objects.
Abstraction: Hiding the implementation details...
String is immutable in order to ensure data integrity and security.
Immutable strings prevent accidental modification of data.
Immutable strings allow for safe sharing of data between different parts of a program.
Immutable strings help in thread safety by avoiding concurrent modification issues.
Example: String str = "hello"; str.concat(" world"); // This does not modify the original string, but creates a new one
String is immutable while StringBuilder is mutable in Java.
String is immutable, meaning once created, it cannot be changed. StringBuilder is mutable, allowing for modifications.
String concatenation creates a new string object each time, while StringBuilder allows for efficient string manipulation.
StringBuilder is more efficient for concatenating multiple strings in a loop.
Example: String str = "Hello"; StringBuilder sb...
I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.
Java 8 introduces lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow functional programming in Java
Functional interfaces enable the use of lambda expressions
Streams provide a concise way to perform operations on collections
Default methods allow interfaces to have implementation
Date and Time API improvements
Nashorn JavaScript engine
JPA stands for Java Persistence API, a specification for object-relational mapping in Java applications.
JPA is used to map Java objects to relational database tables.
It provides a set of annotations to define the mapping between Java classes and database tables.
JPA also supports querying data using the Java Persistence Query Language (JPQL).
I applied via Referral and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before May 2021. There were 4 interview rounds.
VERBAL QUANT DI/LR and Picture based test
I applied via Recruitment Consultant and was interviewed in Jan 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Jul 2020. There were 4 interview rounds.
based on 5 interview experiences
Difficulty level
Duration
based on 2 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹3.9 L/yr - ₹8.3 L/yr |
IT Analyst
65.4k
salaries
| ₹8 L/yr - ₹14.5 L/yr |
AST Consultant
53.8k
salaries
| ₹12.2 L/yr - ₹20.7 L/yr |
Associate Consultant
33.2k
salaries
| ₹16.3 L/yr - ₹28.2 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.5 L/yr - ₹6.3 L/yr |
Amazon
Wipro
Infosys
Accenture