Filter interviews by
ExecutorService is an interface in Java that provides a way to manage and control the execution of threads in a multithreaded environment.
It is part of the java.util.concurrent package.
It provides methods to submit tasks for execution, manage thread pools, and control the execution of tasks.
It allows for the execution of tasks asynchronously and provides features like scheduling, cancellation, and monitoring of tasks.
E...
JPA is a Java specification for mapping Java objects to relational databases.
JPA stands for Java Persistence API
It provides a way to map Java objects to database tables and vice versa
JPA simplifies the development of data access layer in Java applications
It supports object-relational mapping (ORM) and allows developers to work with entities, relationships, and queries in a more object-oriented way
PreparedStatement is used in Java to execute parameterized SQL queries to prevent SQL injection attacks.
PreparedStatement is a subinterface of Statement in Java.
It is used to execute parameterized SQL queries.
It helps prevent SQL injection attacks by automatically escaping special characters.
Example: PreparedStatement pstmt = connection.prepareStatement("SELECT * FROM users WHERE username = ?");
Program to find missing numbers from Array
Iterate through the array and store each number in a HashSet
Then iterate from 1 to the length of the array and check if each number exists in the HashSet
If a number is not found in the HashSet, it is a missing number
Find the first non-repeated character in a given string.
Iterate through the string and store the frequency of each character in a hashmap.
Iterate through the string again and return the first character with frequency 1.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I applied via Approached by Company and was interviewed in Oct 2024. There was 1 interview round.
posted on 28 Oct 2024
I was interviewed in Sep 2024.
There were MCQ questions consists of different sections like Design Pattern,Java 8
posted on 27 Sep 2024
posted on 27 Aug 2024
I was interviewed in Jul 2024.
Find the longest substring without repeating characters in a given string.
Use a sliding window approach to iterate through the string and keep track of the characters seen so far.
Update the start index of the window when a repeating character is encountered.
Keep track of the longest substring length and characters seen in a hashmap.
I applied via Approached by Company and was interviewed in May 2024. There was 1 interview round.
A Spring Boot REST controller is used to handle incoming HTTP requests and return appropriate responses.
Create a new Java class annotated with @RestController
Define request mapping annotations like @GetMapping, @PostMapping, @PutMapping, @DeleteMapping
Inject dependencies using @Autowired annotation
Return response using ResponseEntity or directly as method return value
Code to reverse a comma separated string in Java
Split the input string by comma to get an array of strings
Iterate through the array in reverse order and append each element to a new string with a comma
Return the reversed comma separated string
posted on 22 Mar 2024
I applied via Company Website and was interviewed in Feb 2024. There were 3 interview rounds.
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 ...
based on 2 reviews
Rating in categories
Software Engineer
6.2k
salaries
| ₹2 L/yr - ₹11 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹6 L/yr - ₹23 L/yr |
Associate Software Engineer
4.6k
salaries
| ₹2 L/yr - ₹6.4 L/yr |
Module Lead
2.4k
salaries
| ₹8.1 L/yr - ₹33 L/yr |
Transaction Processing Officer
2.2k
salaries
| ₹1.1 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS