bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java

Java

Java Classes

Java Classes focused on Java OOP and related concepts.

Lesson 1

Java OOP

OOP stands for Object-Oriented Programming .

Read lesson →Loading…
Lesson 2

Java Classes and Objects

Java is an object-oriented programming language.

Read lesson →Loading…
Lesson 3

Java Class Attributes

In Java, variables declared inside a class are called " attributes ".

Read lesson →Loading…
Lesson 4

Java Class Methods

You learned from the Java Methods chapter that methods are declared within a class, and that they are used to perform certain actions:

Read lesson →Loading…
Lesson 5

Java Constructors

A constructor in Java is a special method that is used to initialize objects.

Read lesson →Loading…
Lesson 6

Java this

The this keyword in Java refers to the current object in a method or constructor.

Read lesson →Loading…
Lesson 7

Java Modifiers

By now, you are quite familiar with the public keyword that appears in almost all of our examples:

Read lesson →Loading…
Lesson 8

Java Non-Access Modifiers

Non-access modifiers do not control visibility (like public or private ), but instead add other features to classes, methods, and attributes.

Read lesson →Loading…
Lesson 9

Java Encapsulation

- declare class variables/attributes as private - provide public get and set methods to access and update the value of a private variable

Read lesson →Loading…
Lesson 10

Java Packages

A package in Java is used to group related classes. Think of it as a folder in a file directory . We use packages to avoid name conflicts, and to write a better maintainable code. Packages are divide…

Read lesson →Loading…
Lesson 11

Java Inheritance

In Java, it is possible to inherit attributes and methods from one class to another. We group the "inheritance concept" into two categories:

Read lesson →Loading…
Lesson 12

Java Polymorphism

Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance.

Read lesson →Loading…
Lesson 13

Java super

In Java, the super keyword is used to refer to the parent class of a subclass.

Read lesson →Loading…
Lesson 14

Java Inner Classes

In Java, it is also possible to nest classes (a class within a class). The purpose of nested classes is to group classes that belong together, which makes your code more readable and maintainable.

Read lesson →Loading…
Lesson 15

Java Abstraction

Data abstraction is the process of hiding certain details and showing only essential information to the user. Abstraction can be achieved with either abstract classes or interfaces (which you will le…

Read lesson →Loading…
Lesson 16

Java Interface

Another way to achieve abstraction in Java, is with interfaces.

Read lesson →Loading…
Lesson 17

Java Anonymous Class

An anonymous class is a class without a name. It is created and used at the same time.

Read lesson →Loading…
Lesson 18

Java Enums

An enum is a special "class" that represents a group of constants (unchangeable variables, like final variables).

Read lesson →Loading…
Lesson 19

Java Enum Constructor

An enum can also have a constructor just like a class.

Read lesson →Loading…
Lesson 20

Java User Input (Scanner)

The Scanner class is used to get user input, and it is found in the java.util package.

Read lesson →Loading…
Lesson 21

Java Date and Time

Java does not have a built-in Date class, but we can import the java.time package to work with the date and time API. The package includes many date and time classes. For example:

Read lesson →Loading…