T E C h O C E A N H U B

How to write Hello World program in Java.

In this post I have added a simple video to show ” how to write a simple hello world program in Java” . There are not too many steps but when you write a program in eclipse , it turns out to be a lot easy than programming manually.

Manually programming in java  includes steps like

  1. Downloading and installing JDK.
  2. Opening a text editor like Notepad and writing a program.
  3. Saving a program in bin folder of  jdk.  Example-C:Program FilesJavajdk-14.0.1bin
  4. Or you can run Java program anywhere by setting a path. Example:-set path=C:Program FilesJavajdk1.6.0_23bin 
  5. Opening Command prompt and setting its location to the folder where you have saved your Java program.
  6. Compiling it using command Javac ” Filename.java”.
  7. Running it with java “filename”.

I am adding a video below which clearly shows steps to run Java program manually.

 

 For programming in eclipse you just have to download eclipse ide .I have also added a video which will help you program a simple Java program in Eclipse IDE.

Feel free to comment and  subscribe my channel.

Copyright ©TechOceanhub All Rights Reserved.