Add office photos
Employer?
Claim Account for FREE

VMware Software

4.4
based on 1.1k Reviews
Filter interviews by

Bright Vision Technologies Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. How to implement executor framework and it's benefits

Ans.

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.

Add your answer

Q2. 1.what are IOC AND dI

Ans.

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.

Add your answer

Q3. Multithreading in executor framework

Ans.

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

Add your answer

Q4. Design pattern in java

Ans.

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.

Add your answer
Discover Bright Vision Technologies interview dos and don'ts from real experiences

Q5. Detach and merge in spring

Ans.

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);

Add your answer

Q6. 2.components of IOC

Ans.

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

Add your answer

Q7. Scopes in spring

Ans.

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.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter