Object oriented programming Chapter 01
Object oriented programming Chapter 01
Object oriented programming Chapter 01
Chapter One:
Introduction to Object-Oriented Programming (OOP)
12/06/24
12/06/24
12/06/24
12/06/24
Student
Regular Extension
12/06/24
12/06/24
12/06/24
12/06/24
Java is Distributed
Java is designed for the distributed environment of the internet.
12/06/24
Java is Multithreaded
With Java's multithreaded feature, it is possible to write programs that can do many
tasks simultaneously.
This design feature allows developers to construct smoothly running interactive
applications.
Java is High Performance
Java versions have performed at the speed that developers demand.
With the use of Just-In-Time (JIT) compilers, Java enables high performance.
Java is Robust
Robust code is reliable code.
Java is considered a strongly typed language.
JVM insures robustness managing all memory automatically.
Java also includes an extensible mechanism for exception handling.
12/06/24
12/06/24
12/06/24
You type a Java program (source code) using the editor, make any necessary
corrections and save the program on a secondary storage device, such as your
hard drive.
A file name ending with the .java extension indicates that the file contains Java
source code.
IDEs provide tools that support the software development process, including
compile a program.
javac Welcome1.java
The Java compiler translates Java source code into byte codes.
JVM a part of the JDK and the foundation of the Java platform.
So Java’s bytecodes are portable—that is, the same bytecodes can execute
Java Welcome1
in a command window to invoke the JVM, which would then initiate the
—known as loading.
The class loader takes the .class files containing the program’s byte
The class loader also loads any of the .class files provided by Java that
The .class files can be loaded from a disk on your system or over a
12/06/24
their byte codes to ensure that they are valid and do not violate
Java’s security restrictions.
arriving over the network do not damage your files or your system
(as computer viruses and worms might).
12/06/24
source code is translated into byte codes (for portability across JVMs on different
computer platforms) and
byte codes are translated into machine language for the actual computer on which the
program executes.
12/06/24
12/06/24
The Java compiler translates Java source code into a special representation called byte code
Java byte code is not the machine language for any traditional CPU.
Another software tool, called an interpreter translates byte code into machine language and
executes it.
The JVM is a software layer that provides translation between Java byte codes and the native
operating system.
12/06/24
12/06/24
12/06/24