作者:empty 页数:86 出版社:empty |
Sun, the Sun logo, Sun Microsystems.Solaris, Hot lava, and Java are trademarks or registered trademarks of SunMicrosystems.Inc.in the US.and certain other countries.The“Duke character is a trademark of Sun Microsystems.Inc., andCopyright te) 1992-1995Sun Microsystems, In e.All Rights Reserved.UNIX is a registered trademark in the United States andother countries, ex elusive ly licensed through X/Open Company.Ltd.OPEN LOOK is a registered trademark of Novell, In e.All other pro duet names mentioned herein are the trademarks of the irrespective owners.All SPARC trademarks, including the SCD Compliant Logo.are trademarks or registered trademarks of SPARC International.In e, SPARCstation, SPARC scr ver.SPARC engine, SPARCstorage, SPARC Ware.SPARC center, SPARC Class tc, SPARC Cluster,SPARC design.SPARC8H, SPARC printer, UltraSPARC, micro SPARC, SPARC works.and SPAR Compiler are licensedex elusive ly to Sun Microsystems.In e.Pro duets bearing SPARC trademarks are based upon an architecture developed by SunMicrosystems.Inc.The OPEN LOOK and Sun TM Graphical User Interfaces were developed by San Mier o systems, In e.for its users and licensees.Sun acknowledges the pioneering efforts of Xerox in rese are hing and developing the concept of visual or graphical userinterfaces for the computer industry.Sun holds an on-exclusive license from Xerox to the Xerox Graphical User Inter facc,which lie ense also covers Sun'sli een sees who implement OPEN LOOK GUIs and otherwise comply with Sun's written licenseagreements.
Window System is a trademark of the X Consortium.THIS PUBLICATION IS PROVIDED“AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,INCLUDING.BUT NOT LIMITED TO.THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR APARTICULAR PURPOSE.OR NON-INFRINGEMENT.THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS.CHANGES AREPERIODICALLY ADDED TO THE INFORMATION HEREIN.THESE CHANGES WILL BE INCORPORATED IN NEWEDITIONS OF THE PUBLICATION SUN MICROSYSTEMS.INC.MAY MAKE IMPROVEMENTS AND/OR CHANGES INTHE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS PUBLICATION AT ANYTIME
1.1 Beginnings f the Java Language Prject.
1.2 Design Gals f Java.
1.2.1 Simple, bject riented, and Familiar.
1.2.2 Rbust and Secure.
1.2.3 Architecture Neutral and Prtable.
1.2.4 High Perfrmance.
1.2.5 Interpreted, Threaded, and Dynamic.
1.3 The Java Base System.-+.-
14 The Java Envirnment-a New Apprach t Distributed
Cmputing.17
2.1 Main Features f the Java Language.20
2.1.1 Primitive DataTypes.20
2.1.2 Arithmetic and Relatinal peratrs.21
2.1.3 Arrays.,21
2.1.5 Multi-Level Break.
3.1 bject Technlgy in Java.
3.2 What Are bjects?.
3.3 Basics f bjects.
3.3.1 Classes.
2.1.6 Memry Management and Garbage Cllectin.
2.1.7 The Backgrund Garbage Cllectr.25
2.1.8 Integrated Thread Synchrnizatin.25
2.2 Features Remved frm Can dC++.26
2.2.1N Mre Typedefs, Defines, r Preprcessr.26
2.2.2N Mre Structures r Unins.27
2.2.3N Mre Functins.27
2.2.4N Mre Multiple Inheritance.28
2.2.5N Mre Gt Statements.29
2.2.6N Mre peratr verlading.29
2.2.7N Mre Autmatic Cercins.29
2.2.8N Mre Pinters30
2.3 Summary.-.30
3.Java is bject riented.32
The Java Language Envirnment一ctber 1995
4.Architecture Neutral, Prtable,
3.3.2 Instantiating an bject frm its Class.
3.3.3 Cnstructrs.
3.3.4 Methds and Messaging
3.3.5 Finalizers.
3.3.6 Subclassing.
3.3.7 AccessCntrl.
3.3.8 Class Variables and Class Methds.
3.3.9 Abstract Methds.
3.4 Summary.
and Rbust.
4.1 Architecture Neutra!.
4.1.1 ByteCdes.
4.2 Prtable.
4.3 Rbust.
5.1 Dynamic Lading and Binding.
4.3.1 Strict Cmpile-Time and Run-Time Checking.
4.4 Summary.
5.Interpreted and Dynamic.
6.Security in Java.
Cntents
5.1.1 The Fragile Superclass Prblem.
5.1.2Slvingthc Fragile Superclass Prblem.
5.1.3Java Language Interfaces.
5.1.4Run-Tim c Representatins.
5.2 Summary.
6.1 Memry Allcatin and Layut.
6.2 The ByteCde Verificatin Prcess
6.2.1TheByteCdc Verifier.
6.3 Security Checks in the Bytecde Lader.
6.4 Security in the Java Netwrking Package.
6.5 Summary.
7.1 Threads at the Java Language Level.
7.2 Integrated Thread Synchrnizatin.
7.3 Multithread