|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Leveraging Java Classes and PackagesAlthough operators and data types are obviously very important in Java, classes are where the real action is. A class is a group of objects with similar properties (attributes), common behavior (operations), common relationships to other objects, and common semantics. An object, on the other hand, is an instance of a class, dynamically created by the program during runtime. In other words, classes define objects; objects, on the other hand, are specific, concrete instances of a class.
This discussion is continued later in this chapter. For now, however, it is time to get on with the fun stuff: coding and running your very first Java applet! Installing the JDKMany excellent, graphical tools for developing Java applets are on the market. These tools are called Integrated Development Environments, or IDEs. For professional development, youll probably want one of these tools. Regardless of which IDE youor your companychoose, you should still be familiar with Suns command-line JDK. Several reasons for this are
Minimum RequirementsSun has targeted Java to run on any machine. It has focused its JDK development efforts on a smaller group. This section describes the minimum hardware and operating system requirements needed for the JDK. Your Computer Although Java runs on nearly every computer, the JDK itself runs on fewer machines. The following is the list of hardware and operating system combinations supported by Sun:
If you need to run the JDK but dont have Windows or Solaris, dont despair. Many hardware vendors have ported the entire JDK to their machines. See the comments on Other JDKs, later in this section. Disk Space A typical copy of the JDK installer requires about 10MB. The installer will expand into a set of files about twice its size. Thus, you should budget around 30MB to get started. (You can delete the installer itself after youre done if you need to free up the space.) Youll also want to allow another 30MB for the documentation. If youre tight on space, you can use the online version, but its slower than a local copy.
Other JDKsIf youre not using a common operating system such as Suns Solaris or Microsofts Windows NT, dont worry. Even though a Sun JDK may not be available for your computer, you may still be able to develop Java programs. Check with your computer vendor to see if it has ported the JDK to your operating system. IBM, for example, has released versions of the JDK for AIX (IBMs version of UNIX), OS/400 (which runs on the popular AS/400), and OS/390 (a mainframe operating system).
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |