O'Reilly logo

Oracle Certified Associate, Java SE 7 Programmer Study Guide by Richard M. Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Java Data Types and Their Usage

In this chapter we will learn more about how Java organizes and manipulates data, especially primitive data types and strings. In addition to this, we will explore various related concepts such as scoping and the lifetime of a variable. While strings are not a primitive data type in Java, they are a critical part of many applications and we will examine what Java has to offer.

In this chapter we will focus on:

  • The declaration and use of primitive data types
  • Using the String and StringBuilder classes
  • How the program stack and heap relate to each other
  • The differences between a class and an object
  • Constants and literals in Java
  • The scope and lifetime of a variable
  • Operators, operands, and expressions

Understanding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required