Filter interviews by
I applied via Naukri.com and was interviewed before Sep 2021. There were 2 interview rounds.
JDK is a development kit that includes JRE, while JRE is a runtime environment for executing Java programs.
JDK stands for Java Development Kit and includes tools for developing, debugging, and monitoring Java applications.
JRE stands for Java Runtime Environment and includes the minimum set of tools required to run Java applications.
JDK includes JRE, so if you have JDK installed, you also have JRE.
JDK includes a compile...
HashMap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
HashMap uses an array of buckets to store key-value pairs
The hash code of the key is used to determine the index of the bucket where the key-value pair is stored
If two keys have the same hash code, they are stored in the same bucket as a linked list
When retrieving a value, the hash code of the key is used to find the buc...
get() method returns null if object is not found in database, while load() method throws ObjectNotFoundException.
get() method is eager loading while load() method is lazy loading.
get() method returns a fully initialized object while load() method returns a proxy object.
get() method is slower than load() method as it hits the database immediately.
load() method is faster than get() method as it returns a proxy object and
ClassLoader loads classes at runtime. JIT compiles bytecode to native machine code.
ClassLoader loads classes dynamically at runtime
It searches for classes in classpath and loads them into JVM memory
JIT (Just-In-Time) compiler compiles bytecode to native machine code for faster execution
It optimizes frequently executed code by compiling it at runtime
JIT is enabled by default in most JVMs
Yes, we can create our own immutable class in Java.
Make the class final
Make all fields private and final
Do not provide any setter methods
Provide only getter methods
If any mutable object is used, return a copy of it instead of the original object
Top trending discussions
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 was interviewed in Jan 2025.
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 Oct 2024. There were 2 interview rounds.
Memory leaks occur when a program allocates memory but does not release it, leading to inefficient memory usage.
Use tools like profilers to identify memory leaks in Java applications.
Avoid creating unnecessary objects and ensure proper garbage collection.
Avoid static references to objects that can prevent them from being garbage collected.
Close resources like files, database connections, and streams after use to preven
Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering.
Comparable is implemented by the class itself to define the natural ordering of objects.
Comparator is implemented by a separate class to define custom ordering of objects.
Example: String class implements Comparable interface for natural ordering, while Collections class uses Comparator for custom sorting.
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 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 were 2 interview rounds.
Leading a team of developers in designing and implementing a new web application for a financial services company.
Managing a team of developers to ensure project milestones are met
Designing the architecture of the web application
Implementing new features and functionalities based on client requirements
Conducting code reviews and providing technical guidance to team members
I applied via Job Fair and was interviewed in Oct 2024. There was 1 interview round.
Microservices communicate with each other through APIs and messaging protocols.
Microservices communicate via RESTful APIs, using HTTP requests and responses.
Message brokers like Kafka or RabbitMQ are used for asynchronous communication between microservices.
Service discovery tools like Eureka or Consul help microservices locate and communicate with each other.
Microservices can also communicate through gRPC, a high-perf
We are using Log4j2 for logging in the current project.
Log4j2 is a popular logging framework in Java.
It provides support for logging at different levels like DEBUG, INFO, WARN, ERROR, etc.
Configuration can be done through XML, JSON, or properties file.
Example:
posted on 10 Sep 2024
final is a keyword in Java used to declare constants, while finally is a block used in exception handling to ensure code is executed regardless of an exception.
final keyword is used to declare constants in Java
final variables cannot be reassigned once initialized
finally block is used in exception handling to ensure code is executed regardless of an exception
finally block is often used to release resources like closing
Developed a web application for a financial institution to manage customer accounts and transactions.
Used Java Spring framework for backend development
Implemented RESTful APIs for communication between frontend and backend
Utilized Hibernate for database interaction
Integrated third-party payment gateway for transactions
based on 1 review
Rating in categories
Software Engineer
24
salaries
| ₹2.4 L/yr - ₹6.2 L/yr |
Software Developer
12
salaries
| ₹3 L/yr - ₹7 L/yr |
Java Developer
11
salaries
| ₹3.6 L/yr - ₹5.9 L/yr |
Softwaretest Engineer
10
salaries
| ₹3 L/yr - ₹5.2 L/yr |
Programmer Analyst
7
salaries
| ₹3.8 L/yr - ₹6.8 L/yr |
TCS
Accenture
Wipro
Cognizant