i
Infosys
Filter interviews by
I applied via Naukri.com and was interviewed in Aug 2022. There were 3 interview rounds.
Java is a high-level programming language used to develop applications that can run on any platform.
Java code is compiled into bytecode that can run on any platform with a Java Virtual Machine (JVM)
JVM acts as an interpreter and translates bytecode into machine code
Java's platform independence is achieved through the 'Write Once, Run Anywhere' (WORA) principle
Java's standard library provides platform-independent APIs f
Java 8 introduced several new features including lambda expressions, streams, and default methods.
Lambda expressions for functional programming
Streams for efficient processing of large data sets
Default methods for backward compatibility
Date and Time API for improved handling of date and time
Nashorn JavaScript engine for improved performance
Type annotations for improved type checking
Parallel array sorting for improved p...
Serialization is the process of converting an object into a stream of bytes to store or transmit it.
Serialization is used to save and restore object states
Java provides Serializable interface to implement serialization
Serialization can be used for inter-process communication and distributed systems
Deserialization is the process of converting a stream of bytes back into an object
Serialization can be customized using rea
Static variable is a variable that belongs to the class and not to the instance of the class.
Static variables are declared using the 'static' keyword.
They are initialized only once, at the start of the program.
They can be accessed using the class name, without creating an instance of the class.
Changes made to a static variable are reflected across all instances of the class.
Example: 'public static int count = 0;'
Collections are a group of classes and interfaces used to store and manipulate groups of objects in Java.
Collections provide a way to store and manipulate groups of objects in Java
They offer various data structures like List, Set, Map, etc.
Collections provide methods to add, remove, and search for elements in the data structures
They also offer algorithms for sorting and searching elements
Examples include ArrayList, Has
ResultSet is an interface in Java used to retrieve data from a database. It should be avoided due to its performance issues.
ResultSet is used to retrieve data from a database in Java
It has performance issues and should be avoided if possible
Alternative options like JPA or Hibernate can be used instead
What people are saying about Infosys
posted on 30 Sep 2023
posted on 15 Jul 2022
I applied via Referral and was interviewed in Jan 2022. There was 1 interview round.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I applied via Referral and was interviewed in Nov 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
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.
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.
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
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.
HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.
HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.
HashMap is generally preferred for non-thread-safe applications, while HashTable is used in mul
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
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...
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
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...
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.
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 ...
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 ...
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.
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...
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...
Technology Analyst
56.3k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
49.5k
salaries
| ₹2.8 L/yr - ₹6.4 L/yr |
System Engineer
38.9k
salaries
| ₹2.5 L/yr - ₹5.4 L/yr |
Technical Lead
30.7k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.1k
salaries
| ₹6.2 L/yr - ₹17 L/yr |
TCS
Wipro
Cognizant
Accenture