How to Compile and Run First Java Program (CMD & Notepad)

Veröffentlicht am: 15 Januar 2022
auf dem Kanal: Self Study Tutorials
362
7

How to Compile and Run First Java Program using Notepad and Windows Command Prompt (CMD)?

New to Java? In this tutorial, we'll show you how to write, compile, and run your very first Java program using only basic tools: Windows Command Prompt (CMD) and Notepad. No complex IDE is required!

In this video, you will learn:

How to write a simple "Hello World" program in Notepad.
The correct way to save your file as .java.
How to use the javac command to compile your code into a .class file.
How to use the java command to execute your program and see the output.

Commands used in this tutorial:

1. To Compile: javac Hello.java
2. To Run: java Hello

If you found this helpful, like and subscribe to Self Study Tutorials for more beginner-friendly coding guides!

#JavaForBeginners #JavaTutorial #LearnToCode #SelfStudyTutorials #WindowsCMD


Auf dieser Seite können Sie das Online-Video How to Compile and Run First Java Program (CMD & Notepad) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Self Study Tutorials 15 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 362 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!