Filter interviews by
I applied via Naukri.com and was interviewed in Jun 2021. There were 4 interview rounds.
Immutable objects are those whose state cannot be changed after creation.
Use final keyword to make class immutable
Make all fields private and final
Do not provide setter methods
If a field is mutable, return a copy of it instead of the original object
Examples: String, Integer, LocalDate
Singleton is a design pattern that restricts the instantiation of a class to one object.
To create a singleton class, make the constructor private, create a static method to get the instance of the class, and create a private static variable to hold the instance.
Benefits of singleton include ensuring only one instance of the class exists, providing a global point of access to the instance, and reducing the number of obj...
Volatile is a keyword in Java used to indicate that a variable's value may be modified by multiple threads.
Volatile variables are not cached in thread's local memory
Changes made to volatile variables are immediately visible to other threads
Volatile keyword is used to ensure visibility and ordering of variables in multithreaded environment
Example: volatile int count = 0;
A program to create custom exceptions in Java.
Create a class that extends Exception or RuntimeException
Add constructors to the custom exception class
Throw the custom exception in the code when needed
To count duplicate names in SQL, use the GROUP BY clause with the COUNT function.
Use GROUP BY clause to group the names together
Use COUNT function to count the number of occurrences
Use HAVING clause to filter out names with count less than 2
Microservices communicate through lightweight protocols like HTTP/REST or messaging systems like RabbitMQ.
Microservices can communicate through synchronous protocols like HTTP/REST, where one service sends a request to another service and waits for a response.
Microservices can also communicate through asynchronous messaging systems like RabbitMQ, where one service publishes a message to a queue and other services consu...
The @Component annotation is used to mark a class as a bean, while @Configuration is used to define a configuration class.
The @Component annotation is used to auto-detect and auto-configure beans using classpath scanning.
@Configuration classes are used to define beans and their dependencies explicitly.
A @Configuration class can contain @Bean methods that return bean instances.
A @Component class can be used as a bean in
Java 1.8 introduced lambda expressions, default methods, and functional interfaces.
Lambda expressions allow functional programming in Java.
Default methods allow adding new methods to interfaces without breaking existing implementations.
Functional interfaces are interfaces with a single abstract method, used for lambda expressions.
Stream API for processing collections and arrays.
Date and Time API for easier handling of ...
I applied via Referral and was interviewed in Aug 2021. There was 1 interview round.
Top trending discussions
I applied via Recruitment Consultant and was interviewed before Oct 2020. There were 3 interview rounds.
posted on 9 May 2017
I appeared for an interview before May 2016.
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
I applied via Campus Placement and was interviewed in Jan 2021. There were 6 interview rounds.
OOPS is a programming paradigm based on objects that have properties and methods.
Encapsulation: bundling of data and methods that operate on that data within a single unit
Inheritance: ability of a class to inherit properties and methods from a parent class
Polymorphism: ability of objects to take on many forms or have multiple behaviors
Abstraction: hiding of complex implementation details and showing only the necessary ...
Explanation of Super, Throw, Final and Finally
Super: used to call a method from a parent class
Throw: used to throw an exception
Final: used to declare a constant or to prevent method overriding
Finally: used to execute code after try-catch block, regardless of exception
I applied via Referral and was interviewed in May 2024. There was 1 interview round.
based on 1 interview
Interview experience
based on 89 reviews
Rating in categories
4-8 Yrs
Not Disclosed
3-4 Yrs
₹ 3.2-8.6 LPA
4-5 Yrs
Not Disclosed
Software Engineer
43
salaries
| ₹2.7 L/yr - ₹10.9 L/yr |
Software Developer
39
salaries
| ₹1.4 L/yr - ₹9 L/yr |
Senior Software Engineer
32
salaries
| ₹4.6 L/yr - ₹11.6 L/yr |
DOT NET Developer
20
salaries
| ₹1.8 L/yr - ₹5 L/yr |
Java Developer
16
salaries
| ₹2.9 L/yr - ₹8 L/yr |
Accel Frontline
Pitney Bowes
Apmosys Technologies
DynPro