No ,you cant save a java program without its extension that is .java..because while interpreting the code jvm converts .java file to .class file(bytecode) and byte code is then being run on different platforms.now if there would be no .java while saving code how could JVM interpret the java file into class file.. To save any program you need to click on file( either in notepad ,eclips,netbeans whatever IDE or editor you are using) and then click on save option a window will b poped up saying where to save the file now choose location for saving your file after choosing location give any name as you wish to your program with .java for example if you keep name of your file as "demo" keep it as " demo.java" (without qoutes) and click ok..done!your program is ready to excute...thanks | 0 |
By: [email protected] On: Mon Aug 07 00:25:27 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |