+ 1

Can we write Java programmes in note pad ?

24th Oct 2017, 10:51 AM
Sapumal Wijekoon
Sapumal Wijekoon - avatar
3 ответов
+ 11
Yes, we can! But notepad isn't actually a compiler, so it needs to be compiled through the command line. https://www.google.co.in/amp/www.instructables.com/id/Use-Notepad-and-Command-Prompt-For-Java-programmin/%3famp_page=true
24th Oct 2017, 10:59 AM
Dev
Dev - avatar
+ 7
Yes you can. Just remember to save it as a file with .java extension and its name should be the same as the name of the class. So if your program has a only one class named MainClass your java file should be saved as MainClass.java. After that you can compile it with the command >>javac MainClass.java And after compilation you can run it with the command >> java MainClass
24th Oct 2017, 10:56 AM
Vahid
Vahid - avatar
0
yes
24th Oct 2017, 2:39 PM
shobhit
shobhit - avatar