Interviewer And Interviewee Guide

JMX Interview Question:

Why is dependency injection useful?

Submitted by: Administrator
Different collaborators for different environments can be injected - test, production, test-database, real database. This allows classes to be tested independent of its collaborators (makes it easy to pass in stub or mock objects).
Submitted by:

Read Online JMX Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.