javascript
Brief description  about Online courses   join in Online courses
View Saswati  Sahoo 's Profile

Access Specifier-Public

If in a program multiple classes are declared as public then with which class name we will save it?And in case of interface with the interface name the file will be saved or with the name of the which contains public static void main?
Asked by Saswati Sahoo | Nov 27, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
Hi

In one program we can not make more than one public class or interface, There must be only one public class, and with that public class name file should be save.

Java Teacher
Dec 8, 2010