StackTips

Getting Started with Java

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!

23 Lessons Updated 6 months ago Java Beginner Level

Description

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!

01. 

Introduction

This is the beginning of the Java class. In here you will get started with writing your first Java code!

02. 

Overview, Syntax, and Comments

Get an overview of Java in this lesson including the syntax and how to leave single and multi-line comments.

03. 

Variables and Types

Variables and constants hold data and information. Learn how to declare, initialize, and reassign them in Java.

04. 

Math

Learn about how to do arithmetic and work with the basic math operators and methods provided by Java.

05. 

Ifs, Else Ifs, Switch

Logic and conditionals are a fundamental part of Java and is how your program can make decisions on what to do.

06. 

Loops

Learn how to shorten and improve your code by utilizing loops like for loops, while loops, and do while loops.

07. 

Methods

Methods in Java allow you to reuse a code block and reduce code repetition which ensures cleaner and more modular code.

08. 

Arrays

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.

09. 

Enums

Enums in Java are a group of constants that you can define. Learn how to define them, get their value, and iterate over them.

10. 

Classes and Objects

Java is an object-oriented programming language and because of this, classes and objects are a fundamental feature of the language.

11. 

Instances and Access Modifiers

Creating a new object creates a new instance of that class. Learn about what that means, including the different access modifiers.

12. 

Encapsulation

Encapsulation is the principle of wrapping data inside an object to protect it from unwanted accesses or manipulation.

13. 

Inheritance

Inheritance is the mechanism in which a class is able to access all of the properties and methods of a parent class.

14. 

Polymorphism

Polymorphism is the concept that objects can take many forms, particularly when it is extending from a parent class.

15. 

Abstract Classes

Abstract classes are classes in Java that contain abstract methods and let children classes provide the implementation.

16. 

Interfaces

Java interfaces are templates for classes to achieve abstraction and polymorphism similar to abstract classes.

17. 

Packages

Packages are the namespace conventions that Java follows to avoid naming collisions and organize files.

18. 

Collections

The Collections framework in Java defines numerous different data structures in which you can store, group, and retrieve objects.

19. 

Date: 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.

20. 

File System and IO

Learn how to work with the file system in Java including how to open, read, write, and close a file.

21. 

Regular Expressions

Learn how to use regular expressions search patterns to match text and do advanced find and replace operations.

22. 

Exceptions

Learn how to gracefully handle and recover from critical exceptions in Java when they arise in your code.

23. 

Conclusion and Wrap Up

Congratulations on finishing this class on Java. This lesson is the last lesson of the class on Java and serves as the conclusion of the class.