i
NTT Data
Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2021. There was 1 interview round.
I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.
Use Streams to remove duplicates and retain only even numbers from an array.
Convert the array to a stream using Arrays.stream()
Use distinct() to remove duplicates
Filter out odd numbers using filter()
Collect the result using collect(Collectors.toList())
Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.
Static methods belong to the class itself, not to any specific instance
Final keyword ensures that the method cannot be overridden in subclasses
Static methods are commonly used for utility methods that do not require access to instance variables
Example: Math class in Java has static methods like Ma
The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.
RestController is a specialized version of Controller used for RESTful web services
RestController eliminates the need for @ResponseBody annotation
Controller is used for traditional MVC controller functionality
RestController returns data directly without needing to go through a view resolve...
Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.
Microservices allow for easier scalability and maintenance of complex applications.
Each service in a microservices architecture can be developed, deployed, and scaled independently.
Microservices promote flexibility and agility in software development.
Examples of companies us...
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There were 2 interview rounds.
The first round was an interview conducted with a GENAI virtual bot.
Spring Boot uses autoconfiguration to automatically configure the Spring application based on dependencies and properties.
Spring Boot autoconfiguration is achieved through @EnableAutoConfiguration annotation
Autoconfiguration classes are located in the org.springframework.boot.autoconfigure package
Autoconfiguration classes are conditionally applied based on the presence of specific classes or properties
posted on 28 Oct 2024
I was interviewed in Sep 2024.
There were MCQ questions consists of different sections like Design Pattern,Java 8
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Program using Java 8 features to filter a list of strings starting with 'A' and convert them to uppercase.
Use Java 8 stream API to filter the strings starting with 'A'.
Use map() function to convert the filtered strings to uppercase.
Collect the results into a new list using collect() function.
To connect two databases in Spring Boot, you can configure multiple data sources and use JPA to interact with them.
Configure multiple data sources in application.properties or application.yml file
Define multiple DataSource beans in your configuration class
Use @Primary annotation to specify the primary data source
Use @Qualifier annotation to specify which data source to use in a specific repository or service
Use @Transa...
An index in MySQL is a data structure that improves the speed of data retrieval operations on a database table.
Indexes are used to quickly locate rows in a table without having to search every row.
They can be created on one or more columns in a table.
Indexes can be unique, which means that the indexed columns must contain unique values.
Examples of indexes include primary keys, unique keys, and regular indexes.
Post mapping is used to create or update data, while get mapping is used to retrieve data. Yes, data can be updated using post mapping.
Post mapping is used to create or update data in the server, while get mapping is used to retrieve data from the server.
Post mapping is typically used for operations that modify data, such as creating a new resource or updating an existing one.
Get mapping is used for operations that do ...
Design patterns in microservices architecture help in solving common problems and improving scalability, maintainability, and flexibility.
Service Registry pattern - used for service discovery and registration, such as Netflix Eureka
Circuit Breaker pattern - prevents cascading failures by failing fast and providing fallback mechanisms, like Hystrix
API Gateway pattern - acts as a single entry point for clients to access ...
SOLID principles are a set of five design principles in object-oriented programming to make software designs more understandable, flexible, and maintainable.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open/Closed Principle: Classes should be open for extension but closed for modification.
L - Liskov Substitution Principle: Objects of a superclass should be replaceable with obje...
Spring Boot simplifies the development of Spring applications by providing out-of-the-box configurations and reducing boilerplate code.
Spring Boot provides a quick and easy way to set up a Spring application with minimal configuration.
It includes embedded servers like Tomcat, Jetty, or Undertow, eliminating the need for deploying WAR files.
Auto-configuration feature in Spring Boot automatically configures the applicati...
posted on 27 Sep 2024
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
Garbage collection in Java is the process of automatically reclaiming memory by destroying unused objects.
Garbage collection is performed by the JVM to free up memory occupied by objects that are no longer needed.
It involves identifying and deleting objects that are no longer reachable by any part of the program.
Java provides automatic garbage collection, so developers do not have to manually manage memory allocation a...
The first statement creates a string literal in the string pool, while the second statement creates a new string object in the heap memory.
String s = "xyz" creates a string literal in the string pool.
String s = new String("xyz") creates a new string object in the heap memory.
Using String s = new String("xyz") can lead to unnecessary memory usage.
JVM is the virtual machine that runs Java programs, JRE is the runtime environment for Java programs, and JDK is the development kit for creating Java programs.
JVM (Java Virtual Machine) is the virtual machine that runs Java bytecode and converts it into machine code.
JRE (Java Runtime Environment) is the environment in which Java programs are executed. It includes JVM, libraries, and other necessary components.
JDK (Jav...
The public static void main method is the entry point of a Java program, where execution begins.
It must be declared as public so that it can be accessed from outside the class.
It must be declared as static so that it can be called without creating an instance of the class.
It must have a return type of void, indicating that it does not return any value.
It takes an array of strings (String[] args) as a parameter, which a...
final is a keyword used to declare constants, finally is a block used in exception handling, and finalize is a method used for cleanup.
final keyword is used to declare constants that cannot be changed
finally block is used in exception handling to ensure a piece of code is always executed
finalize method is used for cleanup operations before an object is garbage collected
HashSet is a collection class in Java that stores unique elements using a hash table.
Uses hashing to store elements
Does not maintain insertion order
Allows null values
Implements Set interface
ArrayList is a resizable array implementation in Java.
ArrayList is a class in Java that implements the List interface.
It allows dynamic resizing of the array, unlike regular arrays.
Elements can be added, removed, or accessed using index.
Example: ArrayList
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There were 3 interview rounds.
Hacker rank test objective and coding
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
I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.
A Spring Boot REST controller is used to handle incoming HTTP requests and return appropriate responses.
Create a new Java class annotated with @RestController
Define request mapping annotations like @GetMapping, @PostMapping, @PutMapping, @DeleteMapping
Inject dependencies using @Autowired annotation
Return response using ResponseEntity or directly as method return value
Code to reverse a comma separated string in Java
Split the input string by comma to get an array of strings
Iterate through the array in reverse order and append each element to a new string with a comma
Return the reversed comma separated string
based on 1 review
Rating in categories
Software Engineer
932
salaries
| ₹2.8 L/yr - ₹11 L/yr |
Senior Associate
761
salaries
| ₹1.2 L/yr - ₹9.3 L/yr |
Network Engineer
647
salaries
| ₹1.8 L/yr - ₹10 L/yr |
Software Developer
615
salaries
| ₹2.5 L/yr - ₹13 L/yr |
Senior Software Engineer
512
salaries
| ₹6.5 L/yr - ₹24 L/yr |
Tata Communications
Bharti Airtel
Reliance Communications
Vodafone Idea