M2P Fintech
SRF Packaging film Business Interview Questions and Answers
Q1. What is the mean by thread, how many ways we can create thread?
A thread is a lightweight sub-process that allows concurrent execution within a process. Threads can be created in multiple ways.
Threads can be created by extending the Thread class in Java.
Threads can be created by implementing the Runnable interface in Java.
Threads can be created using thread pools in Java.
Threads can be created using asynchronous functions in JavaScript.
Q2. What is the difference between sync and asynchronous call?
Sync call blocks the execution until the response is received, while asynchronous call allows the program to continue executing without waiting for the response.
Sync call blocks the program execution until the response is received
Asynchronous call allows the program to continue executing without waiting for the response
Sync calls are easier to understand and debug, but can lead to performance issues if used excessively
Asynchronous calls are more efficient for handling multipl...read more
Q3. What is the difference between fail safe and fail fast
Fail safe focuses on ensuring system stability and preventing catastrophic failures, while fail fast prioritizes quick detection and response to errors.
Fail safe is about designing systems to minimize the impact of failures and ensure stability.
Fail fast is about quickly detecting and responding to errors to prevent further issues.
Fail safe often involves redundancy and error checking mechanisms to prevent catastrophic failures.
Fail fast encourages rapid feedback loops and ea...read more
Q4. What is spring boot dependency injection?
Spring Boot dependency injection is a design pattern where objects are passed their dependencies rather than creating them internally.
In Spring Boot, dependency injection is achieved through the use of @Autowired annotation.
It helps in achieving loose coupling between classes and promotes easier testing and maintenance.
Example: @Autowired private UserService userService; // Injecting UserService dependency
Q5. How to deploy your service in production server?
Deploying service in production server involves building the application, configuring the server, and monitoring performance.
Build the application code into a deployable package (e.g. JAR file for Java applications)
Configure the production server with necessary dependencies and environment variables
Deploy the application package to the server using tools like Docker, Kubernetes, or manual deployment scripts
Monitor the performance of the deployed service using monitoring tools...read more
Q6. What is the use of rate limiter?
Rate limiter is used to control the rate of incoming requests to a server or API.
Prevents server overload by limiting the number of requests a client can make in a specific time period
Helps protect against DDoS attacks by limiting the rate of incoming requests
Ensures fair usage of resources by preventing one client from monopolizing server resources
Can be implemented using algorithms like token bucket or leaky bucket
Example: Setting a rate limit of 100 requests per minute for...read more
Q7. What is use of Jenkins and kubernates?
Jenkins is a continuous integration tool used for automating software development processes, while Kubernetes is a container orchestration platform for managing containerized applications.
Jenkins is used for automating the building, testing, and deployment of software projects.
Kubernetes helps in automating the deployment, scaling, and management of containerized applications.
Jenkins can be integrated with Kubernetes to automate the deployment of applications in containers.
Bo...read more
Q8. What is collection framework?
Collection framework is a unified architecture for representing and manipulating collections of objects in Java.
It provides interfaces (like List, Set, Map) and classes (like ArrayList, HashSet, HashMap) to store and manipulate groups of objects.
It allows for easy manipulation, sorting, searching, and iteration of collections.
Collections in the framework can store objects of any type, including user-defined classes.
Example: List
names = new ArrayList<>(); names.add("Alice"); ...read more
Q9. What is use of thread.join()?
thread.join() is used to wait for a thread to finish its execution before moving on to the next steps.
thread.join() blocks the current thread until the thread it is called on completes its execution.
It is commonly used in multi-threaded applications to ensure that all threads have finished before proceeding.
Without thread.join(), the main thread may continue executing while other threads are still running.
Example: thread1.join() will wait for thread1 to finish before continui...read more
Top Lead Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month