CHAPTER 5

image

Variables

In this chapter, we will introduce primitive variables and compare/contrast them to reference variables. We will demonstrate how to perform math and logic functions using both primitive and String variables. A new GUI component, text field (which enables a user to input information to an application), will be demonstrated and we will revisit inheritance in more detail.

At the end of this chapter, you should understand:

  • Primitive versus reference variables
  • How to convert between variable types
  • Wrapper classes
  • Text fields
  • Inheritance

After completing the chapter, you should be able to:

  • Use text fields to retrieve and display ...

Get Beginning Java with WebSphere now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.