Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
36Activity
0 of .
Results for:
No results containing your search query
P. 1
JEDI - Introduction.to.Java.programming.vol.2

JEDI - Introduction.to.Java.programming.vol.2

Ratings: (0)|Views: 2,596|Likes:
Published by Johanna Mariz

More info:

Published by: Johanna Mariz on Nov 09, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/23/2014

pdf

text

original

 
J.E.D.I.
Introduction toProgrammingII
Version 2.0May 2006
Introduction to Programming IIPage 1
 
J.E.D.I.
Author
Rebecca Ong
Team
Joyce AvestroFlorence BalagtasRommel FeriaRebecca OngJohn Paul PetinesSun MicrosystemsSun Philippines
Requirements For the Laboratory Exercises
Minimum Hardware Configuration
Microsoft Windows operating systems
:
Processor
: 500 MHz Intel Pentium III workstation or equivalent
Memory
: 384 megabytes
Disk space
: 125 megabytes of free disk space
SolarisTM operating system (SPARC version):
 
Processor:
500 MHz Ultra 60, SunBlade 150, or equivalent workstation
Memory
: 512 megabytes
Disk space
: 150 megabytes of free disk space
SolarisTM operating system (x86 version):
 
Processor:
AMD Opteron 100 series Sun Ultra 20 workstation or equivalent
Memory
: 512 megabytes
Disk space:
150 megabytes of free disk space
Linux operating system
:
Processor
: 500 MHz Intel Pentium III workstation or equivalent
Memory
: 384 megabytes
Disk space:
125 megabytes of free disk space
Macintosh OS X operating system:
 
Processor
: PowerPC G4
Memory
: 512 megabytes
Disk space
: 125 megabytes of free disk space
Recommended Hardware Configuration
Microsoft Windows operating systems
:
Processor
: 780 MHz Intel Pentium III workstation or equivalent
Memory
: 512 megabytes
Disk space
: 125 megabytes of free disk space
SolarisTM operating system (SPARC version):
Processor
: UltraSPARC IIIi 1.5 GHz SunBlade 1500 workstation or equivalent
Memory
: 1 gigabyte
Disk space
: 150 megabytes of free disk space
SolarisTM operating system (x86 version):
Processor
: AMD Opteron 100 series Sun Ultra 20 workstation or equivalent
Memory
: 1 gigabyte
Disk space:
150 megabytes of free disk space
Linux operating system
:
Processor
: 800 MHz Intel Pentium III workstation or equivalent
Memory
: 512 megabytes
Disk space: 125 megabytes of free disk space
Macintosh OS X operating system:
Processor
: PowerPC G5
Memory
: 1 gigabyte
Disk space
: 125 megabytes of free disk space
Operating System
NetBeans IDE runs on operating systems that support the JavaTM VM. Below is a list of platforms thatNetBeans IDE has been tested on.
Microsoft Windows XP Professional SP2
Solaris operating system (SPARC® and x86 Platform Editions) versions 8, 9, and 10
Red Hat Fedora Core 3
Mac OS X 10.4
Software
NetBeans IDE runs on the J2SE JDK 5.0 (JavaTM 2 JDK, Standard Edition), which consists of the JavaRuntime Environment plus developers tools for compiling, debugging, and running applications written inthe JavaTM language. NetBeans IDE 5.0 has also runs on J2SE SDK version 1.4.2, but it has only beentested on JDK 5.0.For more information, please visit: http://www.netbeans.org/community/releases/50/relnotes.html
Table of Contents
1 Review of Basic Concepts in Java........................................................................141.1 Objectives................................................................................................141.2 Object-Oriented Concepts...........................................................................141.2.1 Object-Oriented Design.......................................................................14
Introduction to Programming IIPage 2
 
J.E.D.I.
1.2.2 Class.................................................................................................141.2.3 Object...............................................................................................151.2.4 Attribute............................................................................................151.2.5 Method..............................................................................................151.2.6 Constructor........................................................................................151.2.7 Package ............................................................................................151.2.8 Encapsulation.....................................................................................151.2.9 Abstraction........................................................................................151.2.10 Inheritance.......................................................................................161.2.11 Polymorphism...................................................................................161.2.12 Interface..........................................................................................161.3 Java Program Structure..............................................................................171.3.1 Declaring Java Classes.........................................................................171.3.2 Declaring Attributes............................................................................171.3.3 Declaring Methods..............................................................................181.3.4 Declaring a Constructor.......................................................................181.3.5 Instantiating a Class............................................................................191.3.6 Accessing Object Members...................................................................191.3.7 Packages...........................................................................................191.3.8 The Access Modifiers...........................................................................201.3.9 Encapsulation.....................................................................................201.3.10 Inheritance.......................................................................................211.3.11 Overriding Methods...........................................................................211.3.12 Abstract Classes and Methods.............................................................221.3.13 Interface..........................................................................................231.3.14 The this Keyword..............................................................................241.3.15 The super Keyword............................................................................251.3.16 The static Keyword............................................................................261.3.17 The final Keyword.............................................................................271.3.18 Inner Classes....................................................................................281.4 Exercises..................................................................................................291.4.1 Multiplication Table.............................................................................291.4.2 Greatest Common Factor (GCF)............................................................291.4.3 Shapes..............................................................................................291.4.4 Animals.............................................................................................292 Exceptions and Assertions.................................................................................302.1 Objectives................................................................................................302.2 What are Exceptions?.................................................................................302.2.1 Introduction.......................................................................................302.2.2 The Error and Exception Classes...........................................................302.2.3 An Example........................................................................................312.3 Catching Exceptions...................................................................................312.3.1 The try-catch Statements.....................................................................312.3.2 The finally Keyword.............................................................................342.4 Throwing Exceptions..................................................................................362.4.1 The throw Keyword.............................................................................362.4.2 The throws Keyword............................................................................362.5 Exception Categories..................................................................................372.5.1 Exception Classes and Hierarchy...........................................................372.5.2 Checked and Unchecked Exceptions......................................................382.5.3 User-Defined Exceptions......................................................................382.6 Assertions.................................................................................................392.6.1 What are Assertions?...........................................................................392.6.2 Enabling or Disabling Assertions...........................................................39
Introduction to Programming IIPage 3

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->