Header Ads

ad728
  • Breaking News

    What is the use of static keyword in Main()?



    Since main() method is the entry point of any Java application, hence making the main() method as static is mandatory for launching the Java application. Since the main method is static, Java virtual Machine can call it without creating any instance of a class which contains the main method.

    No comments