Getting Started with Java: Variables & Primitive Types

Java    |    Beginner
  • 8 videos | 1h 7m 1s
  • Includes Assessment
  • Earns a Badge
Rating 4.4 of 87 users Rating 4.4 of 87 users (87)
The Java programming language is multi-faceted. To use it, developers need to understand what's meant by Java variables and recognize the different data types in the language. This course focuses on Java variables, and more specifically, the various primitive data types this language has to offer. Follow along with this course and create variables in your program to comprehend the effects of static typing in Java. Then, explore the various primitive data types in Java - from numeric types, such as integers and doubles, to text representations in the form of strings. Finally, you'll investigate the use of an ordered collection of data, namely arrays. When you're done with this course, you'll be able to confidently employ variables and several primitive data types when programming in Java.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Recall how variables can be declared and created in java
    Publish variable values to the console using the format method in java
    Describe the use of various primitive java data types, such as int and boolean
  • Recognize the limits of different java data types in terms of what values they can store
    Identify the use of the byte, char, and short data types in java
    Describe how composite data can be created and accessed in the form of arrays in java
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 6s
    In this video, you’ll learn more about your instructor and this course. In this course, you’ll learn Java variables and primitive data types of Java. You’ll create variables in your program and learn the effects of static typing in Java. You’ll also work with various primitive data types in this language from numeric types to text representations in the form of strings. You’ll also cover the use of an ordered collection of data. FREE ACCESS
  • 12m 16s
    In this video, you’ll watch a demo. You’ll learn the definition and use of variables. You’ll learn a variable is effectively a container for a value. And that value can keep changing. First, for this demo, you’ll clean out the console. Then, you’ll replace the comments within the main function with two lines of code. FREE ACCESS
  • Locked
    3.  Printing Strings with the format Method in Java
    11m 45s
    In this video, you’ll watch a demo. You’ll move along to other forms of variable declarations. First, you’ll replace the contents of the main method with the code onscreen. You’ll then declare a variable called varString. You’ll see this is a type of string with an uppercase S. A string in the context of Java is any sequence of letters, numbers, and uppercase characters. They are usually defined inside two double quotes. FREE ACCESS
  • Locked
    4.  Exploring Primitive Data Types in Java
    9m 59s
    In this video, you’ll watch a demo. You’ll explore more data types supported by Java. You’ll bring up the Project pane in IntelliJ in order to create a new Java source file within the source folder. You’ll right-click, head over to New, and choose the option of a Java Class. You’ll specify a name for this class, calling it DataTypes. Hit Enter and a new source file called DataTypes.java will be created. FREE ACCESS
  • Locked
    5.  Working with Integers, Floats, and Doubles in Java
    8m 7s
    In this video, you’ll watch a demo. Here, you’ll explore primitive data types in Java in more detail, starting with an integer. You’ll minimize the console and then clear out the contents of the main method. Then, you'll paste in two lines of code. Next, you’ll head over to Edit Configurations. Then, you’ll change the name of this run configuration called RunDataTypes to DataTypes. FREE ACCESS
  • Locked
    6.  Working with Byte, Short, and Char Types in Java
    8m 13s
    In this video, you’ll watch a demo. You’ll continue working with the different primitive data types in Java. First, you’ll clear out the contents of the main function. Then, you’ll define a byte variable called varByte. You’ll assign a value of 30 to it, and then print it out to the console. You’ll see a byte can store negative values as well. Specifically negative whole numbers. FREE ACCESS
  • Locked
    7.  Strings and Arrays in Java
    12m 37s
    In this video, you’ll watch a demo. You’ll work with some non-primitive types, specifically strings. Strings are a fundamental data type in any programming language. However, the way they’re used in Java, they include a lot of complexity. This is what you’ll explore in this video. You’ll see that within the data types class, you’ll need to modify the main method so that a string is in use. FREE ACCESS
  • Locked
    8.  Course Summary
    1m 59s
    In this video, you’ll summarize what you’ve learned in the course. You’ve learned more about the various primitive data types in Java. You created variables in your program and learned the effects of static typing in Java. You also learned about the various numeric types, such as integers and doubles, which have their own benefits and limitations. You also explored different text representations in the form of characters and Java strings. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.5 of 160 users Rating 4.5 of 160 users (160)
Rating 4.7 of 84 users Rating 4.7 of 84 users (84)
Rating 4.5 of 70 users Rating 4.5 of 70 users (70)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 253 users Rating 4.4 of 253 users (253)
Rating 4.6 of 169 users Rating 4.6 of 169 users (169)
Rating 4.3 of 63 users Rating 4.3 of 63 users (63)