i
TCS
Filter interviews by
I appeared for an interview in Jul 2024.
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 ...
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
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<String, Integer> map = new HashMap<>(); map.put("John", 25); map.put("Jane", 30); map.put("John", 35); // 'John' key will now have value 35.
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
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; }
I applied via Company Website and was interviewed before Mar 2022. There were 3 interview rounds.
Basic aptitude question, you can follow Study Smart Youtube channel. Some question you will get same
I appeared for an interview in Sep 2021.
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.
Switch case is faster than if else for multiple conditions
If else is more readable for binary conditions
Sorting can be done using bubble sort, insertion sort, quick sort, etc.
Example code for bubble sort: for(i=0;i
Difference between compiler and interpreter with a coding challenge
Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution
Compiler generates an executable file while interpreter does not
Compiler is faster but debugging is harder while interpreter is slower but debugging is easier
Coding challenge: Write a program to find the sum of two numbers
I applied via Company Website and was interviewed in Feb 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Jun 2021. There was 1 interview round.
I applied via Campus Placement and was interviewed in Sep 2020. There were 3 interview rounds.
I am familiar with a wide range of technologies used in software development.
Java
Python
C++
JavaScript
HTML/CSS
SQL
Git
Linux
RESTful APIs
Agile methodologies
OOPs concepts in Java include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods together in a class.
Inheritance: Creating new classes from existing ones, inheriting their properties and behaviors.
Polymorphism: Objects of different classes can be treated as objects of a common superclass.
Abstraction: Hiding complex implementation details and providing a simplified interfa
Abstraction can be achieved through interfaces, abstract classes, and encapsulation.
Using interfaces to define a set of methods that a class must implement
Using abstract classes to provide a base implementation that can be extended by subclasses
Encapsulating implementation details to hide complexity and provide a simpler interface
Using design patterns such as Factory and Strategy to abstract away implementation details
Class is a blueprint for creating objects while interface defines a contract for implementing classes.
Class is a template for creating objects with properties and methods.
Interface is a contract that defines a set of methods and properties that a class must implement.
Object is an instance of a class that has its own set of properties and methods.
Function instance is a reference to a function that can be called with arg...
Access modifiers control the visibility and accessibility of class members.
Access modifiers include public, private, protected, and internal.
Public members can be accessed from anywhere.
Private members can only be accessed within the same class.
Protected members can be accessed within the same class and its subclasses.
Internal members can be accessed within the same assembly.
Access modifiers help enforce encapsulation ...
Cloud refers to the delivery of computing services over the internet.
Cloud computing allows users to access data and applications from anywhere with an internet connection.
Cloud services can be categorized into three main types: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).
Cloud providers include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform.
...
There are multiple ways to achieve tasks on AWS depending on the specific task.
Using AWS Management Console
Using AWS CLI
Using AWS SDKs
Using AWS CloudFormation
Using AWS Elastic Beanstalk
Using AWS Lambda
Using AWS Step Functions
Using AWS Batch
based on 3 interviews
Interview experience
based on 22 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹1 L/yr - ₹9 L/yr |
IT Analyst
66.1k
salaries
| ₹5 L/yr - ₹16 L/yr |
AST Consultant
51.9k
salaries
| ₹8 L/yr - ₹25.4 L/yr |
Associate Consultant
30.4k
salaries
| ₹9 L/yr - ₹32 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹2.2 L/yr - ₹6 L/yr |
Amazon
Wipro
Infosys
Accenture