2.6. Understanding the API

In the last section you recall that we created a String object and that (almost) everything in Java is an object. We are able to create an object of type String because this class is defined by Sun. The SDK contains hundreds and hundreds of classes developed by Sun that are part of the core packages. java.lang, for instance, is the package containing the String class. A set of predefined code definitions is referred to as a library.

Note

The concept of core Java libraries is much like the <cf> tag library that ships with ColdFusion Server, which offers about 90 predefined tags and more than 250 functions. Together, these make up the core ColdFusion language. But if ColdFusion MX did not come with a <cfchart> tag, you ...

Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.