|
The Java programming language, notes and examples.
Java 2 |
CmdLine |
Command-line parameters |
Exp |
Simple parser for arithmetic expressions |
Gas |
ideal, reversible 2-D gas simulation |
GUI |
separating business from GUI:
applications & applets |
TA |
TextArea -> (Input|Output)Stream |
Plotter |
simple plotter applet |
Biased |
Longest biased interval and longest non-negative sum interval |
Approx. Palindromes |
Finding Approximate Palindromes in Strings Quickly and Simply |
1997,
L. Allison,
School of Computer Science and Software Engineering,
Monash University,
Australia 3800.
Glossary:
abstract method | specfies procedure heading only |
catch |
catch an exception as in `try{...}catch(...){...}', see try |
class |
collection of routines and data, ~ module, template |
extends |
form a subclass, i.e. give extra methods / vars |
implements |
gives the implementation of an `interface' |
import |
as in `import aPackage.aClass' or `import aPackage.*' |
interface |
spec' only of a class, see `implements' |
method | routine in a class |
new(someClass) | create instance of class |
null | reference (pointer) to a null object |
package | a collection of classes, see import |
private ... | accessible in the class only |
protected ... |
accessible in the class and its subclasses only |
public ... |
accessible inside or outside a class |
static |
variable or method is shared between class instances |
super |
reference to superclass, gives access to its methods |
this | reference to current object |
try |
try a method that may raise an exception, see catch |
The Applet Tag:
<APPLET
CODEBASE="..." optional, default is relative to document or <BASE>
e.g. CODEBASE="SnowFlake"
CODE="..." required, e.g. CODE="SnowFlake.class"
NAME="..." optional
WIDTH =400 say, required
HEIGHT=400 say, required
VSPACE=5 say, optional
HSPACE=5 say, optional
>
<PARAM NAME="whatever" e.g. NAME="order" if applet
VALUE="whatever_val"> e.g. VALUE=4 has param(s)
</APPLET>
Applet, see
[java.sun.com].
|
|