JMX (Java Management Extensions) Question:

Download Job Interview Questions and Answers PDF

What is lazy initialization?

JMX Interview Question
JMX Interview Question

Answer:

Bean is not allocated until it is actually needed - dependency injected - or requested via getBean(). specify lazy="true" (false by default). Only useful if bean genuinely may never be used in most runs of the application.

Download JMX Interview Questions And Answers PDF

Previous QuestionNext Question
What is a nested bean?What is a cross-cutting concern?