Documente Academic
Documente Profesional
Documente Cultură
Programming Language,
Java SE 6
Student Guide
D61796GC11
Edition 1.1
June 2010
D67896
Table of Contents
About This Course ...............................................................Preface-xi
Course Goals.......................................................................... Preface-xi
Course Map............................................................................Preface-xii
Topics Not Covered.............................................................Preface-xiii
How Prepared Are You?.....................................................Preface-xiv
Introductions ......................................................................... Preface-xv
How to Use Course Materials ............................................Preface-xvi
Conventions .........................................................................Preface-xvii
Icons .............................................................................Preface-xvii
Typographical Conventions ................................... Preface-xviii
Additional Conventions............................................. Preface-xix
Explaining Java Technology........................................................1-1
Objectives ........................................................................................... 1-1
Progress Check ................................................................................... 1-2
Relevance............................................................................................. 1-4
Additional Resources ........................................................................ 1-5
Key Concepts of the Java Programming Language ...................... 1-6
Object-Oriented ......................................................................... 1-7
Distributed ................................................................................. 1-8
Simple ......................................................................................... 1-9
Multithreaded.......................................................................... 1-10
Secure........................................................................................ 1-10
Java Technology Product Groups.................................................. 1-17
Identifying Java Technology Product Groups .................... 1-17
Choosing the Correct Java Technology Product Group.... 1-18
Using the Java Platform, Standard Edition SDK
Components.......................................................................... 1-19
Product Life Cycle (PLC) Stages .................................................... 1-22
Analysis Stage.......................................................................... 1-23
Design Stage............................................................................. 1-24
Development Stage ................................................................. 1-25
Testing Stage............................................................................ 1-26
Implementation Stage............................................................. 1-27
v
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.Sun Services, Revision E.1
vi
vii
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision E.1
viii
ix
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision E.1
Relevance........................................................................................... 11-4
Inheritance......................................................................................... 11-5
Superclasses and Subclasses.................................................. 11-6
Testing Superclass and Subclass Relationships.................. 11-8
Modeling Superclasses and Subclasses ............................. 11-10
Declaring a Superclass.......................................................... 11-11
Declaring a Subclass ............................................................. 11-13
Example of Declaring a Subclass ........................................ 11-14
Abstraction...................................................................................... 11-15
Abstraction in Your Analysis and Design ......................... 11-15
Classes in the Java API .................................................................. 11-17
Implicitly Available Classes ................................................ 11-17
Importing and Qualifying Classes...................................... 11-18
Where Do You Go From Here? .......................................................A-1
Getting Ready to Program ............................................................... A-2
Downloading Java Technology.............................................. A-2
Downloading the Java SE API Specification........................ A-2
Setting Up Your Computer to Develop and Execute Java
Technology Programs........................................................... A-3
Downloading a Development Environment or Debugger A-3
References .......................................................................................... A-4
Basic Java Technology ............................................................. A-4
Applets...................................................................................... A-5
Online Tutorial ......................................................................... A-5
Technical Articles, Tips, and White Papers.......................... A-5
Java Programming Language Keywords ......................................B-1
Keywords ............................................................................................B-2
Java Programming Language Naming Conventions....................C-1
Class, Method, and Variable Identifiers ........................................ C-2
Navigating the Solaris Operating System..................................D-1
Solaris OS Quick Reference ............................................................. D-2