Front-end week Discount week - May
Save up to 80 % on our HTML/CSS and JavaScript e-learning courses. Only this week!
Get up to 60 % extra points for free! More info

Object-oriented programming in Java

Introduction to object-oriented programming in Java

Lesson 1

Introduction to object-oriented programming in Java

In this tutorial, we'll introduce object-oriented programming, explain it's historical origins as well as terms such as classes, fields, and methods.
Written by David Capka
Free Show description
First object-oriented app in Java - Hello object world

Lesson 2

First object-oriented app in Java - Hello object world

In this tutorial we'll create our first object-oriented app in Java - Hello object world. We'll create classes, attributes and parametrized methods.
Written by David Capka
Free Show description
Solved tasks for OOP in Java lesson 1-2

Exercise

Solved tasks for OOP in Java lesson 1-2

Solved programmer tasks in Java on the basics of object-oriented programming. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PremiumUnrated Show description
RollingDie in Java - Constructors and random numbers

Lesson 3

RollingDie in Java - Constructors and random numbers

In this tutorial, we'll learn how to use constructors and a random number generator. We'll program a rolling die in Java, as the first part of our arena.
Written by David Capka
FreeUnrated Show description
Solved tasks for OOP in Java lesson 3

Exercise

Solved tasks for OOP in Java lesson 3

Solved programmer tasks in Java on constructors, encapsulation, and Random. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PremiumUnrated Show description
Reference and value data types in Java

Lesson 4

Reference and value data types in Java

In this tutorial, we'll explain in detail how Java works with references (objects) and value data types in memory.
Written by David Capka
Free Show description
Solved tasks for OOP in Java lesson 4

Exercise

Solved tasks for OOP in Java lesson 4

Solved programmer tasks in Java on object references and the null value. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PremiumUnrated Show description
Warrior for the arena in Java

Lesson 5

Warrior for the arena in Java

In this Java tutorial, we'll create a warrior object (class). Its instances will battle in the arena next time.
Written by David Capka
FreeUnrated Show description
Arena with warriors in Java

Lesson 6

Arena with warriors in Java

In this tutorial, we'll finish our arena with warriors. As a result, we'll have an object-oriented Java application simulating a board game.
Written by David Capka
FreeUnrated Show description
Inheritance and polymorphism in Java

Lesson 7

Inheritance and polymorphism in Java

In this Java tutorial, we'll go over object inheritance and polymorphism. We'll learn how to reuse code and explain what the protected access modifier is.
Written by David Capka
FreeUnrated Show description
Arena with a mage in Java (inheritance and polymorphism)

Lesson 8

Arena with a mage in Java (inheritance and polymorphism)

In this Java lesson, you'll learn how to call super constructors, override methods and put what you know about inheritance and polymorphism to the test.
Written by David Capka
FreeUnrated Show description
Static class members in Java

Lesson 9

Static class members in Java

In this Java lesson, we'll learn how to use static fields, methods, and constructors. We'll even get to create our own static class - a static registry.
Written by David Capka
Free Show description
Solved tasks for OOP in Java lesson 9

Exercise

Solved tasks for OOP in Java lesson 9

Solved programmer tasks in Java on static attributes and methods. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PremiumUnrated Show description
Getters and setters in Java

Lesson 10

Getters and setters in Java

In this Java tutorial, we'll introduce properties, also known as getters and setters, that will provide better object encapsulation.
Written by David Capka
FreeUnrated Show description
ArrayList in Java

Lesson 11

ArrayList in Java

This tutorial introduces the ArrayList collection in Java into which we can easily add and remove items. We'll create a sample app and cover some methods.
Written by David Capka
FreeUnrated Show description
Date and Time in Java - Creating and formatting

Lesson 12

Date and Time in Java - Creating and formatting

We'll introduce new LocalDate, LocalTime, and LocalDateTime classes which are available since Java 8. We'll create instances and format output values.
Written by David Capka
FreeUnrated Show description
Date and Time in Java - Modifying and intervals

Lesson 13

Date and Time in Java - Modifying and intervals

In this Java tutorial, we'll convert between LocalDateTime and other data types, modify the inner value and introduce durations and periods.
Written by David Capka
FreeUnrated Show description
Date and Time in Java - Parsing and comparing

Lesson 14

Date and Time in Java - Parsing and comparing

In this Java tutorial we'll learn how to parse date and time using a custom pattern, compare, and introduce other classes such as Instant and time zones.
Written by David Capka
FreeUnrated Show description
Solved tasks for OOP in Java lesson 12

Exercise

Solved tasks for OOP in Java lesson 12

Solved programmer tasks in Java on the topic of date and time. Tasks are ordered by difficulty. Solutions are available for download.
Written by David Capka
PremiumUnrated Show description
Diary with a database in Java

Lesson 15

Diary with a database in Java

In this Java tutorial, we'll create an electronic diary with a database using the List collection. It'll be able to add, remove and search entries.
Written by David Capka
FreeUnrated Show description
Diary with a database in Java (finishing)

Lesson 16

Diary with a database in Java (finishing)

We'll create a user layer for the electronic diary in Java and finish it. We'll learn how to sanitize user's input while parsing a date and time.
Written by David Capka
FreeUnrated Show description
Interfaces in Java

Lesson 17

Interfaces in Java

In this tutorial you'll learn about interfaces in Java, how to auto-implement them with NetBeans, and how to replace multiple inheritances with them.
Written by David Capka
Free Show description
Type casting and object hierarchy in Java

Lesson 18

Type casting and object hierarchy in Java

You'll learn how to cast an instance to another data type using interfaces in Java. You will also learn about and create an object hierarchy.
Written by David Capka
PremiumUnrated Show description
Abstract class, comparing and anonymous classes in Java

Lesson 19

Abstract class, comparing and anonymous classes in Java

This tutorial explains abstract classes in Java. We'll learn about interfaces, implement our own comparing with Comparable, and create anonymous classes.
Written by David Capka
PremiumUnrated Show description
Enumerated types and constants in Java

Lesson 20

Enumerated types and constants in Java

This lesson is about enumerated types (enums) and EnumSets in Java. We'll also learn to use the final keyword and implement class constants.
Written by David Capka
PremiumUnrated Show description
The equals() and clone() methods in Java

Lesson 21

The equals() and clone() methods in Java

This tutorial explains differences between the equals() method and the == operator. We'll override hashCode() and learn to create shallow and deep clones.
Written by David Capka
PremiumUnrated Show description
Boxing, wrapper classes, packages and more

Lesson 22

Boxing, wrapper classes, packages and more

In the final lesson, we'll learn about boxing and unboxing, wrapper classes for Java primitive types, packages, nested classes and more.
Written by David Capka
PremiumUnrated Show description


 

Activities (3)