This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.