Javatpoint Logo

.java

By: Janish*** On: Thu Aug 03 18:47:38 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
Can java program be save without .java ?? And if save then how??Up0Down

 
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
Image Created0Down

By: [email protected] On: Mon Aug 07 00:25:27 IST 2017 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No