August 2010
Intermediate to advanced
492 pages
13h 39m
English
java.lang PackageAs seen in Chapter 9, there are various packages available as part of the Java API. One of the basic packages is the java.lang package. This package contains the core classes and interfaces used in the Java Language. These include classes and interfaces like System, String, StringBuffer, StringBuilder, CharSequence, Comparable, Math and the Wrapper classes. In this chapter we discuss some of these classes and interfaces and their common usages.
Comparable AND Comparator INTERFACESWe saw in Chapter 3 that the relational operators < > <= >= work only for numeric data types, i.e. the comparison is not available for reference data types. For boolean data types, it is very logical that ...
Read now
Unlock full access