Techoceanhub logo

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 Files\Java\jdk-14.0.1\bin
  4. Or you can run Java program anywhere by setting a path. Example:-set path=C:\Program Files\Java\jdk1.6.0_23\bin 
  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.

Share:

Categories

Archives

Related Posts

Array Destructuring

Array Destructuring Array destructuring is a powerful syntax introduced in ES6 that allows you to unpack elements from an array

Read More »

Explore our Affiliated partner links

hostgator website plan

Hostgator

Best Website hosting plans & Best for 24/7 support.

hostinger webhosting plan

Hostinger

Reasonable website hosting packages for small business & 24/7 Email support

Elementor pro

Design Worpdress website quickly using Elementor Builder and AI

buy elementor website templates

Buy Elementor Website Template

Buy ready made Elementor Website Template from us & Get Free Elementor pro licence for 1 year .