O'Reilly logo

Beginning Java with WebSphere by Robert W. Janson

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 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 ...

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