title: How to restrict developers to use reflection to access private methods and constructors in Java?
body: <p>How to restrict developers to use reflection to access private methods and constructors in Java?</p>
  
  <p>Using normal Java code we can't access private constructors or private methods outside of a class. But by using reflection we can access any private methods and constructors in a Java class.</p>
  
  <p>So how can we give security to our Java code?</p>