VMware Software
Bright Vision Technologies Interview Questions and Answers
Q1. How to implement executor framework and it's benefits
Executor framework is used to manage threads and execute tasks asynchronously.
Executor framework provides a way to manage threads and execute tasks asynchronously.
It provides a thread pool and a queue to manage tasks.
It helps in improving the performance of the application by reducing the overhead of creating and destroying threads.
It also provides a way to handle exceptions and errors in the tasks.
Example: Executors.newFixedThreadPool(10) creates a thread pool of 10 threads.
Q2. 1.what are IOC AND dI
IOC stands for Inversion of Control and DI stands for Dependency Injection.
IOC is a design pattern that allows the flow of control to be inverted, where the framework controls the flow of the program.
DI is a technique where the dependencies of an object are injected into it, rather than the object creating them itself.
IOC and DI are closely related and often used together in software development.
Spring Framework is a popular example of a framework that uses IOC and DI.
Q3. Multithreading in executor framework
Executor framework provides a way to execute tasks asynchronously using multithreading.
Executor framework provides a way to manage thread pools and execute tasks asynchronously.
It uses a pool of threads to execute tasks and provides a way to submit tasks to the pool.
The tasks are executed in a separate thread, allowing for parallel execution.
Executor framework provides different types of thread pools like fixed, cached, and scheduled.
It also provides a way to handle exception...read more
Q4. Design pattern in java
Design patterns are reusable solutions to common software problems.
Design patterns provide a standard way of solving recurring problems in software development.
There are three types of design patterns: creational, structural, and behavioral.
Examples of design patterns include Singleton, Factory, Observer, and Decorator.
Design patterns can improve code readability, maintainability, and scalability.
Q5. Detach and merge in spring
Detach and merge are used in Spring to manage the persistence of entities.
Detach is used to remove an entity from the persistence context.
Merge is used to update the state of a detached entity and merge it back into the persistence context.
Both detach and merge are commonly used in Spring Data JPA.
Example: entityManager.detach(entity); entityManager.merge(entity);
Q6. 2.components of IOC
IOC stands for Inversion of Control. Its components are Dependency Injection and Aspect Oriented Programming.
Dependency Injection: injecting dependencies into a class instead of creating them within the class
Aspect Oriented Programming: separating cross-cutting concerns from the main logic of the application
Examples: Spring Framework, Guice
Q7. Scopes in spring
Scopes in Spring refer to the lifecycle of a bean and its visibility within the application context.
Spring has four standard scopes: singleton, prototype, request, and session.
Singleton scope creates only one instance of a bean and is the default scope.
Prototype scope creates a new instance of a bean every time it is requested.
Request scope creates a new instance of a bean for each HTTP request.
Session scope creates a new instance of a bean for each HTTP session.
Reviews
Interviews
Salaries
Users/Month