O'Reilly logo

The Java® Tutorial: A Short Course on the Basics, 6th Edition by Sharon Biocca Zakhour, Joni Gordon, Sowmya Kannan, Scott Hommel, Raymond Gallardo

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 9. Numbers and Strings

This chapter begins with a discussion of the Number class (in the java.lang package) and its subclasses. In particular, this first section talks about the situations where you would use instantiations of these classes rather than the primitive data types. Additionally, this section talks about other classes that format the output of numbers and perform more complex mathematical functions. Finally, there is a discussion on autoboxing and unboxing, a compiler feature that simplifies your code. The second section discusses characters, and the third section discusses strings, which are a sequence of characters and widely used in Java programming. In the Java programming language, strings are objects. This section describes ...

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