Learn Java programming

CodeKnowledge is the website if you want to learn the basics of programming in Java for free

At Code Knowledge, you will learn the basics of Java programming with articles and examples written in simple, understandable language for both beginners and experienced programmers. Our last part we will end with you getting to code your own game. 

Programmering Java Code

Who knows, this may be the start of your own game or app that you will develop into something extraordinary.

Get started with Java

Why learn Java?

Java Programmering Kod

Simple and free

Everything is available for free online, and it’s easy to get started. Because Java is object-oriented, it’s easy to build powerful programs that are clear to understand. Java is platform-independent, which means that you can run Java on all operating systems such as Mac, Windows or Linux.

Lär dig Java Programmering

Popular and well-established

Java is one of the most popular programming languages available and one of the most common languages to start with when learning to code. There is an extensive library of ready-made tools you can use, and whatever project you are working on, you will always encounter problems, then it makes it easier to have a large community of programmers around the world where we can help each other. 

Programmera Java

Java is everywhere

It’s on the computer’s desktop, and it’s in the phone’s applications, it’s in the credit card, and so on. Java is almost everywhere, therefore, making the possibilities to what you can create almost limitless. For example, Java is one of the languages used when programming apps for Android

Chapters at Code Knowledge

We have divided this series of articles on learning Java in a simple and fun way into seven different chapters. Each chapter explains how to get started with programming in Java. You don’t need any prior knowledge; we will take everything from the start.

Kom igång Java Programmera


Get a thorough introduction to help you get started with Java programming. We will show you everything from inspiration for what you can do with programming to how you get started and start coding your first programs.


Datatyper Variabler Java

Data types

In this chapter, we will take a closer look at data types, variables and constants, where we will see how we use variables to store data and make several different calculations.

Data types

If satser Java

If statement

In the third chapter, we will explain the conditional statements in Java that enable us to control the logic of our programs. We will see how we can use the if statement, the else statement and the else-if statement to control our programs to perform different code blocks.

If statement

Loopar Java


In this chapter, we will see how the three loops in Java, the While-loop, For-loop, and Do-loop, functions. Loops are very useful in programming when you want to reuse a certain code sequence several times.


Metod Java Metoder


Methods in Java are a way to reuse and structure your code. It is a useful and powerful tool because methods are entirely independent of any other code. We will also learn what is meant by recursion, where one method calls another method.


Array Java ArrayList


An array is a collection of elements stored in what can be seen as a list or table. We use an array as a way to store and structure data.


Klasser Objekt Java

Classes and Objects 

This chapter will address one of the most important areas in programming, known as object-oriented programming. Classes and objects form the basis when programming large programs because a program consists of several small building blocks (objects) that together build large programs.

Classes and objects

Learn Python at CodeKnowledge

Learn Python Programming


Get started with Python

Curious about Data Science, Analytics, AI, Machine Learning, IoT, and so much more?

Then you should check out our new site called DataRundown. The purpose of DataRundown is to share knowledge about interesting topics within data and tech.

Datarundown Logo Learn Data Science Machine Learning