Sunday, October 31, 2010

Java - Intro to Classes and Objects

If you become part of a development team in industry, you might work on applications that contain hundreds, or even thousands, of classes.




excerpt from "Java how to program, by Deitel" page 73

JAVA - the System class. And, the package java.lang.

System.out.print("Enter first integer: "); //prompt

System is a class. Class System is part of package java.lang. Notice that class System is not imported with an import declaration at the beginning of the program.

**By default, package java.lang is imported in every Java program; thus, classes in java.lang are the only ones in the java API that do not require an import declaration.


excerpted from "Java how to program,by Deitel"

JAVA - Libraries and APIs documentation

Excerpt from "Java How to Program, by Deitel":

For each new Java API class we  use, we indicate the package in which it is located. This information helps you locate descriptions of each package and class in the Java API documentation.

A web version of this documentation can be found at :
java.sun.com/javase/6/docs/api/

You can download this documentation from
java.sun.com/javase/downloads

Appendix E shows how to use this documentation.