Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Can we save file without giving file name and just giving .java extension ?

user-image
Question added by Muhammad Iqbal , Java Engineer , Celerant Technology
Date Posted: 2015/01/28
Blessy ann Varghese
by Blessy ann Varghese , system analyst , Flextronics

No,We can't save file by only giving .java extension

Muhammad Iqbal
by Muhammad Iqbal , Java Engineer , Celerant Technology

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

More Questions Like This