Social control theory. In criminology, social control theory proposes that exploiting the process of socialization and social learning builds self-control and reduces the inclination to indulge in behavior recognized as antisocial.
A simple call to the close() method will do the job. If you close the Connection object first, it will close the PreparedStatement object as well. However, you should always explicitly close the PreparedStatement object to ensure proper cleanup. For a better understanding, let us study Prepare-Example Code.
The Blur() Method. The blur method lets you attach a function to the event that will be executed when the event occurs in relation to a given element. The event (or action) here is loss of focus. So, when an input field loses focus, a function can be invoked that performs whatever action the application calls for.