JMX (Java Management Extensions) Question:
Download Job Interview Questions and Answers PDF
What are the advantages of setter dependency injection?
Answer:
Here are a few advantages of Setter:
☛ Natural for Java Beans
☛ Avoids overly long constructors
☛ Can be inherited
☛ Easier to understand in that properties have names
☛ Constructor args don't have names
☛ Natural for Java Beans
☛ Avoids overly long constructors
☛ Can be inherited
☛ Easier to understand in that properties have names
☛ Constructor args don't have names
Download JMX Interview Questions And Answers
PDF
Previous Question | Next Question |
How to access JMX (Java Beans) from a process running in docker container? | How is the application JVM configured? |