Hi there, As per the JLS, The method main must be declared public, static, and void. See the code below at "<===", it do not have the key word public, but it works. I am little confused. thanks siva x38020
Most cultures have laws against stealing. In theory, if you steal a loaf of bread, you get sent to jail. But in practice, you may or may not get caught, yes? Same here. The rule says it must be public. Some JVMs might catch you if you violate this rule. Others, however, won't. Sun's won't.