Friday, August 25, 2017

Why it shows error when we keep different class name in different program

If you want to keep different class name, just remove 'public' keyword before class name.

It should be taken care that if a class is declared public, the java file name should be same as class name.

No comments:

Post a Comment