How to Compile and Run Java Program from Command Prompt ( cmd )

preview_player
Показать описание
In this tutorial you will learn How to Compile and Run a Java Program from Command Prompt ( cmd ) in windows computer / laptop.

Here we will see how to compile and run java programs with / without user defined packages.

First we compile the java program to generate the byte files for all classes in the source code.

Then we provide the .class file which contains the static void main method to java interpreter.
java Hello

our Social Media Pages

Our Website

#ExampleProgram
Рекомендации по теме
Комментарии
Автор

Sir can you post a vedio about how to submit our solution in GeeksforGeeks, letcode.. I am able solve the problem in some other complier by seeing the questions.. But don't know how to submitt the solution while solving in these platform.

bh