Why main method is declared public static in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 15941
Total Votes: 149 votes
Category: JAVA/Core JAVA
Submitted on: 2012-01-05 14:57:02
Submitted By: Javin Paul
Description:Why Main method is declared public static void in Java is one of Classical interview questions in Java. Every Java Programmer knows that main method is entry point in Java program but only few knows the secret behind signature and syntax of main method in Java. most of Java developer don't really know why main is static , public or void in java and this article answers this questions and explains reason why main is static in Java More detail...