Register now or log in to join your professional community.
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