The first Java program
YAJC Java
Hello! In this post we will try to create a very basic program almost every developer starts with. This set of programs (written in different languages) is named “Hello World”. The programs outputs/prints a sentence “Hello World!” to the standard output.
Standard output is a default “window” for console based applications where you can interact with your users. Console applications are ones which look like this:

This image shows the command line interface you will use very often. That means you will need to get familiar with it. Let’s do it later :) In the following posts we will touch this topic as it’s extremely important.
Approaches to create a program
There are different approaches to create the first program and we will start with the easiest one.
Web based environment
Visit the following page https://www.onlinegdb.com/online_java_compiler. This page contains the full version of your first program.
In order to run your first program you only need to press on the green button on the top and expect the output on the back window at the bottom.

Nothing much has been done but this is your first program, CONGRATULATIONS! 🥳
Such web based tools are helpful to try something online without a need to install any software on your PC. Or to create a program which you can share with anybody by a link.
If you are curious how these tools work: the tools have JDK installed on a server. They send your code to the server and provide the results to you.
Command line interface
Before trying this way, we need to get familiar with command line interface. We do not want to create too big posts so this will be covered in upcoming posts.
Integrated development environment (IDE)
We highly recommend to use this approach only after you feel comfortable using “Command line interface” approach.
IDE - is an extremely powerful text editor which takes a lot of actions to speed your development process up and ease many routine tasks.
There are a lot more to study and try. We are looking forward to seeing you!