For a class to get executed it should contain static public main method. This method also allows you to invoke other methods. When we define classes we not only want other classes to follow it but it should also execute. This is the centralized idea behind main method.
Category:JDBC Interview Questions
No comments:
Post a Comment