This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The short answer is that Spring is using reflection to set the constructor's accessibility to true for the purpose of instantiating it. The thread also explains why and how to use a security manager to override that behavior if you need to.
There will always be people who are ahead of the curve, and people who are behind the curve. But knowledge moves the curve. --Bill James
Joined: Feb 23, 2008
Again thank you very much sir for explaining me so well and giving me such a good link to study, that really helpful and open many windows of my mind and also removed many hidden queries.