Introduction to Java

Learn the fundamentals of the Java programming language.

Start[missing "en.views.course_landing_page.learn-java.course_illustration" translation]
Introduction to Java
Lesson 1 of 1
  1. 1

    Java is a programming language designed to build secure, powerful applications that run across multiple operating systems, including Linux, Mac OS X, and Windows. The Java language is known to be f...

  2. 2

    Great job! You've already learned how to print text. Creating more useful Java programs will likely require you to work with several additional types of data. Let's explore a few of them. The fi...

  3. 3

    Fantastic! You just printed an [...] data type. The next data type we will use is the [...] . 1. A [...] is a data type that can only be either [...] or [...] .

  4. 4

    Perfect. Let's look at one more Java data type: [...] . The [...] data type is used to represent single characters. That includes the keys on a keyboard that are used to produce text. 1. [......

  5. 5

    The int, boolean, and char are fundamental data types of Java that we will see again later in the course. Another important feature of Java (and of many programming languages) is the abilit...

  6. 6

    Before we explore what we can do with variables, let’s learn how to keep code organized in Java. Whitespace is one or more characters (such as a space, tab, enter, or return) that do no...

  7. 7

    A comment is text you want Java to ignore. Comments allow you to describe code or keep notes. By using comments in the Java code, you may help yourself and even other programmers understand the...

  8. 8

    Now let's try arithmetic in Java. You can add, subtract, multiply, and divide numbers and store them in variables like this: [...]

  9. 9

    Good work! Let's explore one more special math operator known as modulo. 1. The modulo operator - represented in Java by the [...] symbol - returns the remainder of dividing two numbers. Fo...

  10. 10

    It looks like you're getting the hang of this! Let's explore another set of useful operators available in Java known as relational operators. Relational operators compare data types that have a ...

  11. 11

    You may have noticed that the relational operators did not include an operator for testing "equals to". In Java, equality operators are used to test equality. The equality operators are: 1. [....

  12. 12

    Congratulations! You've learned some of the building blocks of Java programming. What can we generalize so far? Data Types are [...] , [...] , and [...] . Variables are used to store va...

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo

Introduction to Java

Start[missing "en.views.course_landing_page.learn-java.course_illustration" translation]