April 2003
Intermediate to advanced
496 pages
9h 59m
English
The previous chapter provided an overview of some of the classes and interfaces in the Java APIs. In this chapter we will explore in more detail some of the classes from the java.lang package that you are likely to use in your scientific or engineering programming work. In Chapter 8 we discussed that there are two general types of Java variables—primitive variables that store a single value and reference type variables that contain references to arrays or to objects.
The two variable types are treated differently by Java. You usually cannot mix and match. For instance, you cannot pass a primitive variable to a method that expects a reference type argument. There may be times when you want ...
Read now
Unlock full access