Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Design - Interview Questions and Answers for 'Concur' - 2 question(s) found - Order By Newest | ||||
Almost sure to be asked in every company using any Dependency Injection framework ( Spring, Guice etc ) | ||||
| ||||
Ans. It is a Design Pattern that facilitates loose coupling by sending the dependency information ( object references of dependent object ) while building the state of the object. Objects are designed in a manner where they receive instances of the objects from other pieces of code, instead of constructing them internally and hence provide better flexibility. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  design patterns   ioc ( Inversion of Control )  dependency injection Asked in 83 Companies intermediate   frequent | ||||
Related Questions | ||||
What are the benefits of Dependency Injection or IOC ? | ||||
What are different types of dependency injections ? | ||||
Name few Dependency Injection frameworks ? | ||||
Why do we need polymorphism in Java ? | ||||
What are the various Auto Wiring types in Spring ? | ||||
What is the difference betweeen @Inject and @Autowired ? | ||||
Which of the following Java features facilitates Dependency Injection - Inheritance or Composition ? | ||||
What are the different ways in which dependency injection can be done using Spring Framework ? | ||||
Difference between constructor and setter injection ? | ||||
| ||||
Ans. Each has it's own advantages Batching requires less resources but may result in loosing whole batch in case of failure whereas concurrency even though is little more expensive in terms of resources but would result in minimal loss in case of failure. In case messages are to be consumed in a particular order, batching them in that order and then consuming them makes better sense. if incoming messages are not continuous , it makes more sense to do concurrency as we need not wait for all messages to form a batch and flush. Though time sensitivity can be added but that would add unnecessary complexity. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  concurrency vs batching   concurrency  multithreading  batch | ||||
Related Questions | ||||
Which interfaces are implemented by BatchUpdateException? | ||||