Documente Academic
Documente Profesional
Documente Cultură
Object-Oriented Programming
Procedural Programming
top down design(module->2 sub-modules-> 3sub-modules..n sub-modules)
create functions to do small tasks
communicate by parameters and return values
Object-Oriented Programming
design and represent objects
Bottom up design (n classes->create objects for communication between classes)
determine relationships between objects
determine attributes each object has
determine behaviors' each object will respond to
create objects and send messages to them to use or manipulate their
attributes
Overview
JDBC
Note: Before compile and run the JAVA code need to set the
PATH and CLASSPATH environment variables.
Java Platform
Most programming languages compile source code directly into machine code, suitable for
execution on a particular microprocessor architecture.
The difference with Java is that it uses bytecode - a special type of machine code thats why
JAVA is compiled and interpreted type of language.
JVM Architecture
10
The Heap:
All Java objects take their storage from the heap
Whenever you need to create an object, you simply write
the code to create it by using new, and the storage is
allocated on the heap when that code is executed.
11
12
13
14
JVM Architecture
Class Loader
Byte-Code verifier
15
JVM Architecture
16
JVM Architecture
17
Thanks