Filter interviews by
I applied via Naukri.com and was interviewed in May 2024. There were 2 interview rounds.
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 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
posted on 10 Feb 2024
I applied via Recruitment Consulltant and was interviewed in Jan 2024. There were 3 interview rounds.
Paper Test MCQs(Hibernate, Multithreading, Quantative Apptitute, Logical Reasoning,English Grammer check)
JVM memory consists of Young Generation, Old Generation, and Permanent Generation.
Young Generation: where new objects are allocated and aged before moving to Old Generation.
Old Generation: where long-lived objects are stored.
Permanent Generation: where metadata such as class definitions and method information are stored.
Interface is a contract with no implementation, while abstract class can have some implementation.
Interface cannot have any method implementation, while abstract class can have some method implementations.
A class can implement multiple interfaces, but can only extend one abstract class.
Interfaces are used to achieve multiple inheritance in Java.
Abstract classes can have constructors, while interfaces cannot.
Example: In...
Immutable classes in Java are classes whose objects cannot be modified once they are created.
Make the class final to prevent inheritance
Make all fields private and final
Do not provide setter methods for fields
Ensure that any mutable objects within the class are also immutable
Composition is a strong relationship where the child object cannot exist independently of the parent object, while aggregation is a weak relationship where the child object can exist independently.
Composition is a 'has-a' relationship, where the child object is a part of the parent object.
Aggregation is a 'has-a' relationship, where the child object is not a part of the parent object.
In composition, the child object is...
Comparable is an interface used for natural ordering of objects, while Comparator is an interface used for custom ordering of objects.
Comparable interface is implemented by the class whose objects are to be compared, while Comparator interface is implemented by a separate class.
Comparable interface has a single method compareTo() for comparing objects, while Comparator interface has a single method compare() for custom...
HashMap is not thread-safe while ConcurrentHashMap is thread-safe.
HashMap is not thread-safe and can lead to ConcurrentModificationException if modified during iteration.
ConcurrentHashMap allows concurrent read and write operations without the need for external synchronization.
ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments concurren...
Collections store data while streams process data in a functional way.
Collections are used to store and manage groups of objects, while streams are used to process collections of objects.
Collections are mutable, meaning you can add, remove, or modify elements, while streams are immutable and do not change the original data.
Streams use functional programming concepts like map, filter, and reduce to process data efficien...
Use @Primary to specify a primary bean when multiple beans of the same type are present. Use @Qualifier to specify a specific bean when multiple beans of the same type are present.
Use @Primary to indicate the primary bean to be used when multiple beans of the same type are present in the Spring application context.
Use @Qualifier along with @Autowired to specify a specific bean to be injected when multiple beans of the ...
I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.
Java8 stream api related problems to code in notepad
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
Question asked on DSA Deque and Set
They gave topic political scenario now in India
I applied via Approached by Company and was interviewed in Jul 2023. There were 3 interview rounds.
Java 8 coding round. Lambda expressions, Coding with help of Stream Api
Interview experience
Software Engineer
76
salaries
| ₹3.9 L/yr - ₹10.4 L/yr |
Senior Analyst
54
salaries
| ₹6 L/yr - ₹11.2 L/yr |
Consultant
47
salaries
| ₹5 L/yr - ₹15.6 L/yr |
Senior Software Engineer
40
salaries
| ₹9.8 L/yr - ₹30 L/yr |
Senior Consultant
38
salaries
| ₹10.1 L/yr - ₹19.4 L/yr |
TransUnion
CIBIL
Experian
Crif High Mark Credit Information Services