Filter interviews by
I applied via Recruitment Consulltant
Online coding test with spring boot rest API and a java problem solving.
Design a REST API for a backend Java developer
Define the resources and endpoints
Use HTTP methods like GET, POST, PUT, DELETE
Implement authentication and authorization
Use JSON for data exchange
Include error handling and status codes
I was interviewed in Jul 2024.
Idempotent term in patch and put means that multiple identical requests have the same effect as a single request.
Idempotent means that the result of a successful request is the same regardless of how many times it is repeated.
In PATCH and PUT requests, idempotent means that sending the same request multiple times will not have any additional side effects.
For example, if a PATCH request updates a resource with specific ...
Java memory types and where objects are stored
Java memory consists of stack and heap
Primitive data types are stored in stack
Objects and arrays are stored in heap
References to objects are stored in stack
Example: int num = 5; // num is stored in stack, value 5 is stored in stack
Example: String str = new String(); // str reference is stored in stack, actual String object is stored in heap
Yes, hash map stores unique keys.
Hash map in Java does not allow duplicate keys. If you try to insert a duplicate key, it will replace the existing value with the new one.
However, hash map allows duplicate values.
Example: HashMap
Java 8 introduced new methods for HashMap such as forEach, compute, merge, etc.
Java 8 introduced new methods like forEach, compute, merge for HashMap operations
Java 8 allows using lambda expressions for iterating over HashMap entries
Java 8 introduced default methods in Map interface for HashMap
No, static methods or variables cannot be created inside static main() method.
Static methods or variables cannot be created inside another static method.
Static methods or variables can only be created at the class level, outside of any method.
Example: public class MyClass { static int myVariable = 10; }
Profile in Spring Boot is a set of configurations that can be used to customize the behavior of an application.
Profiles allow developers to define different configurations for different environments (e.g. development, testing, production).
Profiles can be activated using the 'spring.profiles.active' property in the application.properties file.
Profiles can be used to specify different database connections, logging levels...
Custom exceptions can be created by extending the Exception class in Java.
Create a new class that extends the Exception class
Override the constructors to provide custom messages and error codes
Throw the custom exception using the 'throw' keyword
StreamsAPI is a feature in Java that allows for processing sequences of elements in a functional style.
StreamsAPI provides a way to work with collections of objects in a more concise and declarative manner.
It supports operations like filter, map, reduce, and collect.
Example: List
An exception in Java is an event that disrupts the normal flow of a program's instructions.
Exceptions are objects that are thrown when an abnormal condition occurs during the execution of a program.
They can be caught and handled using try-catch blocks.
Unchecked exceptions do not need to be declared in a method's throws clause, while checked exceptions do.
Examples of exceptions in Java include NullPointerException, Arra
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
Java 8 introduced static and default methods in interfaces, allowing for method implementation and code reusability.
Java 8 introduced static methods in interfaces, allowing for method implementation directly in the interface itself.
Default methods were also introduced in Java 8, enabling interfaces to have method implementations without affecting implementing classes.
Static methods in interfaces can be called using the...
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.
HashMap uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
To synchronize a HashMap, you can use the synchronizedMap() m...
No, the program will not compile if the parent class throws a runtime exception while the child class throws an arithmetic exception.
In Java, if a parent class method throws a checked exception, the child class method can only throw the same exception or its subclasses.
ArithmeticException is an unchecked exception, so if the parent class throws a checked exception and the child class throws an unchecked exception, the ...
Configure JDBC in Spring Boot to specify which database to use
Define multiple DataSource beans in the configuration class
Use @Primary annotation to specify the primary DataSource
Use @Qualifier annotation to specify the secondary DataSource
Inject the DataSource beans where needed in the application
To use a Jetty server in a Spring Boot application, you can configure it as a dependency and customize its settings.
Add Jetty server dependency in your pom.xml file
Exclude Tomcat server dependency if it's included by default in Spring Boot
Configure Jetty server settings in application.properties or application.yml file
Example: Add Jetty dependency - <dependency> <groupId>org.springframework.boot</groupId...
RequestParam is used to extract query parameters from the URL, while PathVariable is used to extract values from the URI path.
RequestParam is used for query parameters in the URL, while PathVariable is used for values in the URI path.
RequestParam is optional, while PathVariable is required.
RequestParam is used with the @RequestParam annotation, while PathVariable is used with the @PathVariable annotation.
Example: @Requ...
I would implement timeout mechanisms and retries to handle the scenario of one microservice awaiting a response from another microservice taking an extended time.
Implement timeout mechanisms in the calling microservice to limit the waiting time for a response.
Set up retry logic to automatically resend the request to the slow microservice if no response is received within the specified timeout period.
Use circuit breaker...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.
Java 8 introduced lambda expressions for functional programming.
Java 11 added local-variable syntax for lambda parameters to simplify code.
Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.
Count the number of words in a given string.
Split the string by spaces and count the number of resulting elements.
Handle edge cases like multiple spaces or empty strings.
Consider punctuation marks as part of words unless specified otherwise.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I applied via Job Fair and was interviewed in Oct 2024. There were 4 interview rounds.
Onlin test consist pf easy numerical questions
Easy questions not so difficult
Yes, I am willing to work in any location for the right opportunity.
I am open to relocating for the right job opportunity
I am flexible and adaptable to new environments
I believe working in different locations can provide valuable experiences and growth opportunities
Node.js is a runtime environment that allows you to run JavaScript code outside of a web browser.
Node.js is built on Chrome's V8 JavaScript engine.
It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.
Node.js is commonly used for building server-side applications and APIs.
It has a large ecosystem of open-source libraries and frameworks, such as Express.js.
Middleware is a software component that acts as a bridge between an application's request and response.
Middleware functions have access to the request and response objects
They can modify the request and response objects
Middleware can be used for tasks like authentication, logging, error handling, etc.
A promise is an object representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in JavaScript.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained using .then() to handle success and .catch() to handle errors.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
promise.all is a method in JavaScript that takes an array of promises and returns a single promise that resolves when all of the input promises have resolved.
Used to handle multiple asynchronous operations at once
Returns a single promise that resolves when all input promises have resolved
If any of the input promises is rejected, the returned promise is rejected with the reason of the first rejected promise
A callback is a function passed as an argument to another function to be executed later.
Callbacks are commonly used in asynchronous programming to handle tasks that take time to complete.
They are often used in event handling, timers, and AJAX requests.
Callbacks can be synchronous or asynchronous, depending on when they are executed.
Example: setTimeout(callback, 1000) will execute the callback function after 1 second.
I applied via Naukri.com
Interview experience
Data Processing Analyst
743
salaries
| ₹3 L/yr - ₹4.8 L/yr |
Data Analyst
459
salaries
| ₹2.2 L/yr - ₹6.1 L/yr |
Data Processing Specialist
322
salaries
| ₹3 L/yr - ₹4.5 L/yr |
Software Engineer
235
salaries
| ₹8 L/yr - ₹21.2 L/yr |
Research Associate
181
salaries
| ₹2.9 L/yr - ₹6 L/yr |
Kantar
GfK MODE
Dun & Bradstreet
Euromonitor International