+ 1

Is Empty .java file name a valid source file name?

13th Aug 2016, 12:49 PM
WPimpong
WPimpong - avatar
4 odpowiedzi
+ 2
thats a good question... probably not, and it will be confusing for you if you leave it unnamed, and you wont know what it is later... you see what im saying?
13th Aug 2016, 1:27 PM
Aquarius
Aquarius - avatar
+ 1
haha,,, good one,,,,I had to try it. it's actually not legal to leave a .java file name empty and any other file for that matter
13th Aug 2016, 2:35 PM
Nick Nderitu
Nick Nderitu - avatar
+ 1
ohhh yeah thats right, it does say its not legal. :D now i know.
13th Aug 2016, 4:03 PM
Aquarius
Aquarius - avatar
0
No, cz the class name has to be same as the filename. Now, can you give Empty classname?
4th Dec 2017, 4:41 PM
friendly_nadim
friendly_nadim - avatar