+ 1
Is public keyword must require to declare a class??
If public keyword is not there can't we call the method outside??
2 odpowiedzi
+ 7
Public keyword is not necessary. We can call methods of private class outside too.
+ 3
You can use public and call the private class
https://en.m.wikibooks.org/wiki/Java_Programming/Keywords/public