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 live online training, plus books, videos, and digital content from nearly 200 publishers.