Java - Notes
Java - Notes
INTRODUCTION
a. What is Java
Java is an object-oriented programming language developed by Sun
Microsystems, a company best known for its high-end Unix
workstations. the Java language was designed to be small, simple, and
portable across platforms and operating systems, both at the source
and at the binary level.
The Java language was developed at Sun Microsystems in 1991 as part
of a research project to develop software for consumer electronics
devicestelevision sets, VCRs, toasters, and the other sorts of
machines you can buy at any department store. Javas goals at that
time were to be small, fast, efficient, and easily portable to a wide
range of hardware devices. It is those same goals that made Java an
ideal language for distributing executable programs via the World Wide
Web, and also a general-purpose programming language for
developing programs that are easily usable and portable across
different platforms.
The Java development environment has two parts: a Java compiler and
a Java interpreter. The Java compiler takes your Java program and
instead of generating machine codes from your source files, it
generates bytecodes.
Why go through all the trouble of adding this extra layer of the
bytecode interpreter? Having your Java programs in bytecode form
means that instead of being specific to any one system, your programs
can be run on any platform and any operating or window system as
long as the Java interpreter is available. This capability of a single
binary file to be executable across platforms is crucial to what enables
applets to work, because the World Wide Web itself is also platform
independent.
Just as HTML files can be read on any platform, so applets can be
executed on any
platform that is a Java-capable browser.
2. OOPS
a. Objects and Classes
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
d. Creating a subclass
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
3. JAVA BASICS
a. Statements and Expressions
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
c. Comments
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
d. Literals
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
f. String Arithmatic
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
c. Calling Methods
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
d. References to Objects
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. Block Statements
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
c. Creating Methods
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. Constructor Methods
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
c. Overriding Methods
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
d. Finalizer Methods
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. Creating Applets
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
d. Color
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
10.
11.
12.
a. Mouse Clicks
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. Mouse Movements
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
c. Keyboard Events
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
13.
a. An AWT Overview
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
f. More UI Components
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
g. More UI Events
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
h. A complete Example
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
14.
b. Networking in Java
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
15.
MODIFIERS
16.
a. Packages
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. Interfaces
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
17.
EXCEPTIONS
18.
MULTITHREADING
b. Thinking Multithreaded
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
e. Thread Scheduling
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
19.
STREAMS
a. Input Streams
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. Output Streams
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
c. Related Classes
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
20.
d. A native Library
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
21.
e. Method Signatures
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
a. The Garbage Collector
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx
b. The Security Story
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxx