Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
No,We can't save file by only giving .java extension
Yes we can save the java file without giving file name.
write the following code in notepad and save it as ".java"
class Test {
}
to compile the code from command prompt > javac .java