Java is a high-level, cross-platform, mature, object-oriented programming language. Java is extremely popular due to its flexibility and ability to run anywhere!
Introduction
This is the beginning of the Java class. In here you will get started with writing your first Java code!
5 minutes readOverview, Syntax, and Comments
Get an overview of Java in this lesson including the syntax and how to leave single and multi-line comments.
5 minutes readVariables and Types
Variables and constants hold data and information. Learn how to declare, initialize, and reassign them in Java.
5 minutes readMath
Learn about how to do arithmetic and work with the basic math operators and methods provided by Java.
9 minutes readIfs, Else Ifs, Switch
Logic and conditionals are a fundamental part of Java and is how your program can make decisions on what to do.
16 minutes readLoops
Learn how to shorten and improve your code by utilizing loops like for loops, while loops, and do while loops.
12 minutes readMethods
Methods in Java allow you to reuse a code block and reduce code repetition which ensures cleaner and more modular code.
5 minutes readArrays
Arrays are a list of data in Java. In this lesson, learn how to create, add elements to, remove elements from, and iterate over arrays.
5 minutes readEnums
Enums in Java are a group of constants that you can define. Learn how to define them, get their value, and iterate over them.
5 minutes readClasses and Objects
Java is an object-oriented programming language and because of this, classes and objects are a fundamental feature of the language.
7 minutes readInstances and Access Modifiers
Creating a new object creates a new instance of that class. Learn about what that means, including the different access modifiers.
7 minutes readEncapsulation
Encapsulation is the principle of wrapping data inside an object to protect it from unwanted accesses or manipulation.
5 minutes readInheritance
Inheritance is the mechanism in which a class is able to access all of the properties and methods of a parent class.
7 minutes readPolymorphism
Polymorphism is the concept that objects can take many forms, particularly when it is extending from a parent class.
7 minutes readAbstract Classes
Abstract classes are classes in Java that contain abstract methods and let children classes provide the implementation.
5 minutes readInterfaces
Java interfaces are templates for classes to achieve abstraction and polymorphism similar to abstract classes.
5 minutes readPackages
Packages are the namespace conventions that Java follows to avoid naming collisions and organize files.
5 minutes readCollections
The Collections framework in Java defines numerous different data structures in which you can store, group, and retrieve objects.
23 minutes readDate: Work with Moments in Time
Learn how to express dates and moments in time using Java's built-in date and time functions and variables.
5 minutes readFile System and IO
Learn how to work with the file system in Java including how to open, read, write, and close a file.
10 minutes readRegular Expressions
Learn how to use regular expressions search patterns to match text and do advanced find and replace operations.
9 minutes read