i
Infosys
Filter interviews by
I applied via Naukri.com and was interviewed in Oct 2021. There were 4 interview rounds.
JVM is used to execute Java bytecode and provide platform independence.
JVM stands for Java Virtual Machine.
It interprets compiled Java code and executes it.
JVM provides platform independence by converting bytecode to machine-specific code.
JVM also manages memory allocation and garbage collection.
Examples of JVM-based languages include Kotlin and Scala.
JRE stands for Java Runtime Environment.
JRE is a software package that provides the necessary runtime environment for Java applications to run.
It includes the Java Virtual Machine (JVM), class libraries, and other supporting files.
JRE is required to run Java applications on a computer.
Examples of Java applications that require JRE include Eclipse, NetBeans, and Minecraft.
James Gosling is considered the father of Java programming language.
James Gosling is a Canadian computer scientist who created the Java programming language.
He developed Java while working at Sun Microsystems in the mid-1990s.
Java was initially designed for interactive television, but it quickly gained popularity for its platform independence and object-oriented features.
Gosling's team also developed the original Java ...
Java programming uses object-oriented programming principles and a robust set of libraries and frameworks.
Java uses object-oriented programming principles such as encapsulation, inheritance, and polymorphism.
Java has a rich set of libraries and frameworks for various purposes like GUI development, networking, database connectivity, etc.
Java supports multithreading, exception handling, and dynamic memory allocation.
Java...
Java Program is a set of instructions written in the Java programming language that can be executed by a computer.
Java Program is a collection of classes and methods that define the behavior of a software application.
It is written in the Java programming language and can be executed on any platform that has a Java Virtual Machine (JVM).
Java Programs are compiled into bytecode, which is then interpreted and executed by ...
An object is a fundamental concept in object-oriented programming, representing a real-world entity with its own state and behavior.
An object is an instance of a class.
It encapsulates data and methods.
Objects can interact with each other through method calls.
Example: A car object can have properties like color and speed, and methods like start() and stop().
A class is a blueprint for creating objects in object-oriented programming.
A class is a template that defines the properties and behaviors of objects.
It encapsulates data and methods that operate on that data.
Objects are instances of a class.
Classes can inherit properties and behaviors from other classes through inheritance.
Example: class Car { String color; void start() { ... } }
What people are saying about Infosys
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
Arithmetic, reasoning, English
I applied via Approached by Company and was interviewed in Nov 2022. There were 5 interview rounds.
Technical reading Writing of programmes
Writing the coding is technically, and correctly
Reading and Writing the programme individually
I applied via Referral and was interviewed in Apr 2022. There were 2 interview rounds.
Python,java
Bluetoth
I applied via Referral and was interviewed in Aug 2021. There were 3 interview rounds.
I was interviewed in Jan 2025.
A sequence was provided: 4181, 2684, 1597, 987, 610.
first 2 are given and write code for other value calculation using java 8
The second question required writing a reverse of a palindrome using both Java 8 streams. I was able to successfully write both and clear the first round.
Java 17 introduces sealed classes to restrict inheritance and improve code maintainability.
Sealed classes are declared using the 'sealed' keyword followed by the permitted subclasses.
Subclasses of a sealed class must be either final or sealed themselves.
Errors may occur when trying to extend a sealed class with a non-permitted subclass.
Implementation of 'notify me if item is back in stock' feature in an ecommerce application
Create a database table to store user notifications for out-of-stock items
Implement a service to check item availability and send notifications to subscribed users
Provide a user interface for users to subscribe to notifications for specific items
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 Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Intermediate operations transform the elements of a stream, while terminal operations produce a result or side-effect.
Intermediate operations include map, filter, sorted, distinct, etc.
Terminal operations include forEach, collect, reduce, count, etc.
Intermediate operations are lazy and do not execute until a terminal operation is called.
Terminal operations trigger the processing of the stream and produce a result.
Ways to create Thread in Java
Extending the Thread class
Implementing the Runnable interface
Using Executor framework
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
based on 1 interview
Interview experience
based on 2 reviews
Rating in categories
Technology Analyst
55.9k
salaries
| ₹3 L/yr - ₹11 L/yr |
Senior Systems Engineer
50.4k
salaries
| ₹2.8 L/yr - ₹8 L/yr |
System Engineer
39.5k
salaries
| ₹2.5 L/yr - ₹5.5 L/yr |
Technical Lead
30.8k
salaries
| ₹5.2 L/yr - ₹19.5 L/yr |
Senior Associate Consultant
27.7k
salaries
| ₹6.2 L/yr - ₹16.8 L/yr |
TCS
Wipro
Cognizant
Accenture