Getting Started with Java: Variables & Primitive Types
Java
| Beginner
- 8 videos | 1h 7m 1s
- Includes Assessment
- Earns a Badge
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 courseRecall how variables can be declared and created in javaPublish variable values to the console using the format method in javaDescribe 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 storeIdentify the use of the byte, char, and short data types in javaDescribe how composite data can be created and accessed in the form of arrays in javaSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 6sIn 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 16sIn 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
-
11m 45sIn 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
-
9m 59sIn 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
-
8m 7sIn 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
-
8m 13sIn 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
-
12m 37sIn 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
-
1m 59sIn 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.