Run Java First Program on Windows 10
In the previous lesson, we learned how to set environment for Java. We successfully verified the installation of Java on command prompt (cmd). In this lesson, we will learn how to write and run Java first program on Windows.
Open a notepad and enter the following code:
After successfully running the program, output will be visible as shown above.
Now, go to the same path and now you can see a class file generated for the same program.
In this lesson, we learned how to run our first Java program on Windows 10.
0 comments:
Post a Comment