Object-oriented programming in Java

Java OOP

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.
FreeWritten by David Capka
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.
FreeWritten by David Capka
Exercises for OOP in Java lesson 1-2

Exercises 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.
PremiumUnratedWritten by David Capka
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.
FreeWritten by David Capka
Exercises for OOP in Java lesson 3

Exercises 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.
PremiumUnratedWritten by David Capka
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.
FreeWritten by David Capka
Exercises for OOP in Java lesson 4

Exercises 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.
PremiumUnratedWritten by David Capka
Warrior for the arena in Java

Lesson 5 - Warrior for the arena in Java

In this Java tutorial, we will create a warrior object (class). Its instances will battle in the arena next time.
FreeUnratedWritten by David Capka
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.
FreeWritten by David Capka
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.
FreeWritten by David Capka
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.
FreeWritten by David Capka
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.
FreeWritten by David Capka
Exercises for OOP in Java lesson 9

Exercises 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.
PremiumUnratedWritten by David Capka
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.
FreeUnratedWritten by David Capka
Lists in Java

Lesson 11 - Lists 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.
FreeUnratedWritten by David Capka
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.
FreeUnratedWritten by David Capka
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.
FreeUnratedWritten by David Capka
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.
FreeUnratedWritten by David Capka
Exercises for OOP in Java lesson 12

Exercises 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.
PremiumUnratedWritten by David Capka
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.
FreeUnratedWritten by David Capka
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 journal in Java and finish it. We'll learn how to sanitize user's input while parsing a date and time.
FreeUnratedWritten by David Capka
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.
FreeWritten by David Capka
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.
PremiumUnratedWritten by David Capka
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. You'll learn about interfaces, implement your own, compare with Comparable, and create anonymous classes.
PremiumUnratedWritten by David Capka
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.
PremiumUnratedWritten by David Capka
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.
PremiumUnratedWritten by David Capka
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.
PremiumUnratedWritten by David Capka


 

Activities (1)