How to run Java program in notepad | Java first program in notepad | Java program explain.

Опубликовано: 13 Февраль 2026
на канале: Programmer ONE - Sumit Tiwari - SoftEthics
420
40

Hi Learners, Welcome to this step-by-step guide on creating, compiling and executing a Java program using Notepad and Command Prompt (CMD).
We will discuss the whole process: writing code in Notepad, compiling code using CMD, and executing the program. Whether you're a beginner or just looking to refresh your skills, this tutorial is perfect for you.

JDK Installation Help (30 seconds) -    • JDK installation in windows 11 | JDK downl...  

Timestamps:

00:00 - Intro
00:27 - Create Java Program in Notepad
04:20 - Program's explanation
08:55 - Saving Java Program
10:14 - Opening CMD and verify JDK path
10:58 - Compile program in CMD
11:58 - Program gets compiled only when there is no error (explained)
12:35 - Run program in CMD
13:36 - Good to know when on CMD

What You'll Learn:

Writing Java Code in Notepad: How to write a simple Java program in Notepad.

Compiling Java Program: Understand how to compile your Java program using the Command Prompt.

Executing Java Program: Learn how to run your compiled Java program using CMD.

Detailed Java Program Anatomy:
We will dive deep into the structure of a Java program, explaining each keyword and component in detail:

Class Definition: Understand the role of classes in Java.
Main Method: Learn why the public static void main(String[] args) method is essential.
Variables and Data Types: Get insights into Java variables and data types.
Syntax and Semantics: Detailed explanation of Java syntax rules and semantics.
Keywords: Understand the importance and use of Java keywords like public, static, void, and more.

This comprehensive guide will help you grasp the fundamentals of Java programming and give you the confidence to create and run Java programs independently. Don’t forget to like, comment, and subscribe for more programming tutorials!



🔔 Stay Connected:
Subscribe:
   / @programmer_one  

Explore on Web:
https://programmerone.com
https://softethics.com

Follow us on:
https://x.com/programmerone_
https://x.com/SoftEthics

Like us on:
https://fb.me/programmerone
https://fb.me/softethics

Study Stuff:
Apps:
Java Pattern Programs: https://fb.me/JavaPatternPrograms
SoftEthics Learner's App: https://n2s.in/learnersapp
Find study material and programs here:-
ON WEB:- https://codingdots.in/

For queries/suggestions/opportunities:
[email protected]
[email protected]
[email protected]