Filter interviews by
XXXXX
Abdul Razak
Top trending discussions
I applied via LinkedIn and was interviewed in Jun 2024. There was 1 interview round.
Study some dsa related questions, like String and array based
I applied via Referral and was interviewed in Aug 2023. There were 2 interview rounds.
Sum all numbers in an array using Java 8 features.
Use the stream() method to convert the array into a stream of elements.
Use the mapToInt() method to convert the stream of elements into a stream of integers.
Use the sum() method to calculate the sum of all integers in the stream.
Find the second largest element in an array of strings.
Sort the array in descending order
Return the element at index 1
Maximum some in an array
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
I applied via Company Website and was interviewed in May 2024. There were 3 interview rounds.
Duration : 1 hour
Topics : Java and DSA
BFS explores neighbors before moving to next level, while DFS explores as far as possible before backtracking.
BFS uses a queue to keep track of nodes to visit next, while DFS uses a stack or recursion.
BFS is optimal for finding shortest path in unweighted graphs, while DFS is more memory efficient.
BFS is typically implemented iteratively, while DFS can be implemented recursively.
Example: BFS is used in level order trav...
I applied via Naukri.com and was interviewed in Feb 2023. There were 2 interview rounds.
Sort an ArrayList of objects by age.
Create a custom Comparator to compare the age of the objects.
Use the Collections.sort() method to sort the ArrayList using the custom Comparator.
Ensure that the objects in the ArrayList have a field for age.
I applied via Recruitment Consulltant and was interviewed in May 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
IOC is a design pattern where control is inverted, while DI is a technique to achieve IOC by injecting dependencies into a class.
IOC stands for Inversion of Control, where the control of flow is inverted from the traditional top-down approach.
DI stands for Dependency Injection, a technique used to implement IOC by injecting dependencies into a class from an external source.
IOC is a design principle, while DI is a techn...
Exception handling in Spring Boot allows developers to gracefully handle errors and provide meaningful responses to users.
Use @ControllerAdvice to handle exceptions globally
Use @ExceptionHandler to handle specific exceptions
Return custom error messages or responses to users
Annotation used in Spring framework to bind the HTTP request body to a method parameter.
Used in Spring MVC to indicate that a method parameter should be bound to the body of the web request.
Can be used with various data types like JSON, XML, etc.
Helps in simplifying the process of handling request data in Spring applications.
Type casting in Java is the process of converting one data type into another.
Type casting can be done implicitly or explicitly in Java.
Implicit type casting is done when a smaller data type is converted to a larger data type, while explicit type casting is done when a larger data type is converted to a smaller data type.
Example of implicit type casting: int num = 10; double result = num;
Example of explicit type casting
Intermediate and terminal operators are used in Java streams to perform intermediate and terminal operations on elements.
Intermediate operators are used to transform, filter, or manipulate elements in a stream before passing them to the next operation. Examples include map(), filter(), and sorted().
Terminal operators are used to trigger the processing of elements in a stream and produce a result. Examples include forEa
Functional interface in Java is an interface with only one abstract method. It can have multiple default or static methods.
Functional interfaces can be annotated with @FunctionalInterface to ensure they have only one abstract method.
Examples of functional interfaces in Java include Runnable, Callable, and ActionListener.
Lambda expressions can be used to implement functional interfaces concisely.
Various methods in RestApi include GET, POST, PUT, DELETE.
GET - Used to retrieve data from the server. Example: GET /users
POST - Used to send data to the server to create a new resource. Example: POST /users
PUT - Used to update an existing resource on the server. Example: PUT /users/1
DELETE - Used to delete a resource on the server. Example: DELETE /users/1
Using Java 8, find the first non-repeating character in a string.
Use Java 8 streams to convert the string to a character array.
Use Collectors.groupingBy to group characters by count.
Filter out characters with count > 1 and find the first character with count 1.
Sum of all even numbers without using inbuild methods using stream api
Create an array of numbers
Use stream to filter out even numbers
Use stream to sum up the filtered even numbers
I applied via Referral and was interviewed before Sep 2021. There were 2 interview rounds.
I applied via Not sure and was interviewed in May 2019. There were 3 interview rounds.
based on 1 interview
Interview experience
Production Associate
866
salaries
| ₹0 L/yr - ₹0 L/yr |
Deputy Manager
385
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
374
salaries
| ₹0 L/yr - ₹0 L/yr |
Team Lead
271
salaries
| ₹0 L/yr - ₹0 L/yr |
Financial Analyst
242
salaries
| ₹0 L/yr - ₹0 L/yr |
Maruti Suzuki
Tata Motors
Mahindra & Mahindra
Hyundai Motor India Limited