0 votes
in JAVA by
How to execute a java program?

1 Answer

0 votes
by

Open a command prompt window and go to the directory where you saved the java program (HelloWorld. java). …

Type ‘javac HelloWorld. java’ and press enter to compile your code.

Now, type ‘ HelloWorld ‘ to run your program.

You will be able to see the result printed on the window.

Related questions

0 votes
asked Oct 18, 2020 in JAVA by sharadyadav1986
+3 votes
asked May 13, 2021 in JAVA by rajeshsharma
...