close
learn-java

This is a very Beginner Level Learn Java tutorials. If you have no knowledge of java and you’ve just studied it one time during your university and now you’ve totally forgot about it then this tutorial is for you. It is also for those who have no idea about java and want to start working on it.

Learn Java Tutorial Series Contents:

Download Java IDE:

Eclipse is the best IDE to learn java. Open this like to download eclipse for java and download Eclipse IDE for Java Developers not Java EE, at least no at the moment.

download eclipse for java

 

I’ll be using in on mac. But if you are from another OS you’ll get the download link for that.

After this open this link: https://jdk8.java.net/download.html and download both JRE and JDK. Make sure you know the platform you are using is either 32-bit or 64-bit download accordingly.

Finally run eclipse! And you’ll get this IDE:

eclipse IDE for java

Learn Java: Getting started with Java in Eclipse

On the start up screen of eclipse click on create a new java project:

create a new java project

Give it a name and click finish.

create a new java project in eclipse

Here is the project windows where you’ll write all of you code make classes and do all sort of stuff.

Eclipse java SE IDE

Creating your first class in Java:

Right click on project > new > Class

create a new class in java

Give you class a name. I’m calling it HelloWorld and make sure you check the Public static void main. This is required but not necessary it depends on the requirement of a class. So for now just check this box and make sure your dialogues matches the one in the image below.

new class setting of java

You can see you file and now you are ready to code.

learn java: a basic java class

After the //TODO line add:

Run it by pressing the green play button run a java program and you can see the output printed out in the bottom.

learn java: hello world program output
Chaudhary Talha

The author Chaudhary Talha

I'm an iOS developer by profession and UI/UX designer by passion. All my tutorials are based on my personal experiences and whenever I learn something new I share it with the world.