i
Infosys
Filter interviews by
Java is not 100% object oriented because it supports primitive data types and static methods.
Java supports primitive data types like int, float, and boolean which are not objects.
Static methods in Java belong to the class itself and not to any specific object.
Java allows procedural programming constructs like static variables and methods.
Inheritance in Java is limited to single inheritance for classes, unlike pure obje
JIT stands for Just-In-Time compiler, which compiles Java bytecode into native machine code at runtime for improved performance.
JIT compiler is a part of Java Virtual Machine (JVM) that helps in optimizing the performance of Java applications by compiling bytecode into native machine code on-the-fly.
It identifies frequently executed code and compiles it into native code for faster execution.
JIT compilation occurs durin...
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
HashMap is a data structure in Java that stores key-value pairs and allows fast retrieval of values based on keys.
HashMap is part of the Java Collections framework.
It uses hashing to store and retrieve elements efficiently.
Keys in a HashMap must be unique, but values can be duplicated.
Example: HashMap
Annotations in Spring Boot are used to provide metadata about the application, such as configuration, dependency injection, and request mapping.
Annotations are used to simplify the configuration of Spring applications.
Examples include @RestController for creating RESTful web services, @Autowired for dependency injection, and @RequestMapping for mapping HTTP requests to controller methods.
Annotations can be used to defi...
Using throws and throw in Java to handle exceptions
Use 'throws' to declare an exception in a method signature
Use 'throw' to manually throw an exception within a method
Example: public void divide(int a, int b) throws ArithmeticException { if(b == 0) throw new ArithmeticException(); }
Use SQL query with ORDER BY and LIMIT to find third largest salary.
Use ORDER BY clause to sort salaries in descending order
Use LIMIT 2,1 to skip first two salaries and get the third largest salary
Synchronization in multithreading ensures that only one thread can access a shared resource at a time.
Synchronization is achieved using the synchronized keyword in Java.
It can be applied to methods or code blocks.
Example: synchronized void myMethod() { // code }
I applied via Naukri.com and was interviewed in Jul 2024. There was 1 interview round.
I am a passionate Java Developer with 5 years of experience in developing web applications and implementing solutions using Java technologies.
5 years of experience in Java development
Strong knowledge of web application development
Proficient in implementing solutions using Java technologies
I have a strong background in Java development with proven experience in delivering high-quality projects on time.
I have a solid understanding of Java programming language and its best practices
I have successfully completed multiple Java projects, showcasing my skills and expertise
I am a quick learner and can adapt to new technologies and frameworks easily
Infosys interview questions for designations
I applied via Job Portal and was interviewed in Jun 2024. There were 2 interview rounds.
Method overloading is having multiple methods in the same class with the same name but different parameters, while method overriding is redefining a method in a subclass with the same name and parameters as in the superclass.
Method overloading involves multiple methods with the same name but different parameters.
Method overriding involves redefining a method in a subclass with the same name and parameters as in the sup...
String in Java is immutable to ensure thread safety, security, and optimization.
Immutable strings are thread-safe as they cannot be modified concurrently.
Immutable strings prevent security vulnerabilities like SQL injection.
Immutable strings allow for string interning, optimizing memory usage.
Example: String str = "Hello"; str.concat(" World"); // New string created instead of modifying original.
Streams api..?factorial using streams
Get interview-ready with Top Infosys Interview Questions
I applied via Company Website and was interviewed in Jun 2024. There was 1 interview round.
Interface is a blueprint of a class with only abstract methods, while abstract class can have both abstract and concrete methods.
Interfaces can only have abstract methods and cannot have any implementation, while abstract classes can have both abstract and concrete methods.
A class can implement multiple interfaces but can only extend one abstract class.
Interfaces are used to achieve multiple inheritance in Java, while ...
Indexing in MySQL is a way to optimize database queries by creating a data structure that allows for faster retrieval of data.
Indexes are created on columns in a table to speed up SELECT queries.
They work similar to an index in a book, allowing the database to quickly find the rows that match a certain value.
Indexes can be created using the CREATE INDEX statement.
Examples: CREATE INDEX idx_name ON table_name(column_nam
I applied via Referral and was interviewed in Apr 2024. There were 3 interview rounds.
Using lambda expressions in Java 8 to print a message
Use the lambda syntax (parameters) -> { body } to define the behavior
Example: () -> System.out.println("Hello, World!")
I applied via Job Portal
Spring Boot starters are a set of convenient dependency descriptors that you can include in your application.
Spring Boot starters provide pre-configured dependencies to simplify the setup of Spring applications.
They help in reducing the amount of boilerplate code needed to configure common functionalities.
Examples of Spring Boot starters include spring-boot-starter-web for web applications and spring-boot-starter-data-
JVM stands for Java Virtual Machine, it is an abstract computing machine that enables a computer to run Java programs.
JVM is responsible for converting Java bytecode into machine code that can be executed by the computer's operating system.
It provides a runtime environment for Java programs to run in a platform-independent manner.
JVM manages memory, handles garbage collection, and provides security features for Java ap...
I applied via Referral and was interviewed in Mar 2024. There was 1 interview round.
Functional Interface is an interface with only one abstract method. Flat Map is used to flatten nested collections. Method Reference is a shorthand notation for lambda expressions. Stream API is used to process collections of objects.
Functional Interface is an interface with a single abstract method, such as Runnable or Comparator.
Flat Map is a method in Java that is used to flatten nested collections, like List> ...
FlatMap is a method in Java that transforms each element of a stream into a new stream and then concatenates all the streams into a single stream.
FlatMap is used to flatten nested collections or maps into a single collection.
It is commonly used in Java streams to process and transform data efficiently.
Example: List> nestedList = Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3, 4)); nestedList.stream().flatMap(L
Stream API is a feature in Java that allows processing collections of objects in a functional style.
Stream API provides a way to perform operations on collections like filter, map, reduce, etc.
It supports functional programming paradigms like lambda expressions and method references.
Example: List
A functional interface is an interface that contains only one abstract method and can be used as a lambda expression.
Functional interfaces can have multiple default or static methods, but only one abstract method.
Examples of functional interfaces in Java include Runnable, Callable, and ActionListener.
Functional interfaces are often used with lambda expressions to provide a concise way of implementing single abstract me
I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.
Java 8 introduced new features like lambda expressions and streams, OOPs concepts include inheritance and polymorphism, custom exceptions allow for user-defined exceptions, and collections provide data structures like lists and maps.
Java 8 features include lambda expressions and streams
OOPs concepts in Java include inheritance and polymorphism
Custom exceptions in Java allow for user-defined exceptions
Collections in Jav
What people are saying about Infosys
Some of the top questions asked at the Infosys Java Developer interview -
The duration of Infosys Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 113 interviews
4 Interview rounds
based on 112 reviews
Rating in categories
Technology Analyst
55.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Systems Engineer
50.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
System Engineer
39.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
30.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Consultant
28k
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Wipro
Cognizant
Accenture