Why Is Method main Declared static?
Java program is to declared static because keyword allowed it being created without an object of a class in which the main method is defined and it is declared as public,since the codes are used outside when the program is started .
Comments
Leave a comment