+ 3

why PROGRAM is to be saved with the NAME of CLASS in JAVA

if its not saved with the name of class .....the the compliler says the class not found

9th Jun 2017, 11:24 AM
Anmol Arora
Anmol Arora - avatar
4 Respostas
+ 2
ty...
9th Jun 2017, 12:50 PM
Anmol Arora
Anmol Arora - avatar
+ 1
u can save your file name with any name only when your class is no type that is if you remove public then you can save it by any name
9th Jun 2017, 12:37 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
and if its wid public keyword then why is it compulsary to save wid class name
9th Jun 2017, 12:40 PM
Anmol Arora
Anmol Arora - avatar
+ 1
it is compulsory because it tells jvm that it is the entry point
9th Jun 2017, 12:48 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar