O'Reilly logo

Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition by Rolf W. Rasmussen, Khalid A. Mughal

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 Summary

The following topics were discussed in this chapter:

  • basic language elements: identifiers, keywords, literals, white spaces, and comments

  • primitive data types: integral, floating-point, and Boolean

  • converting numbers between decimal, octal, and hexadecimal systems

  • lifetime of fields and local variables

  • declaration and initialization of variables, including reference variables

  • usage of default values for fields

  • structure of a valid Java source file

  • declaration of the main() method whose execution starts the application

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