Sie sind auf Seite 1von 3

THE LANGUAGE OF A COMPUTER FLOWCHART

 Uses Digital Signals  Programmer prepares flowchart before


o All 0’s and I’s (Binary) coding.
o Bits (Binary Digits) MOST COMMON FLOW CHART SYMBOLS
 Data and Commands Stored in Binary
o 8 bits in b Flow lines
o ASCII character stored in a byte
o Integers Storage Begin/End

Initialization
EVOLUTION OF PROGRAMMING LANGUAGES
Decision
 Early computers programmed in
Machine Languages
o All Binary numbers

 Assembly language used mnemonic THE LIFE CYCLE OF SOFTWARE:


codes  PHASE I : Specification
o Codes translated into o Prototype Program
machine language by a  A program that
program called the stimulates the
assembler. behaviour of portions
ASSEMBLY MACHINE of the desired software
LANGUAGE LANGUAGE product.
Load 100100  PHASE II : Design
Stop 100110 o Includes :
Mile 101110  Dividing the program
Add 110110 into modules.
SOB 100111  Specifying the purpose
of each module.
 Specifying the data flow
EVOLUTION OF PROFRAMMING LANGUAGES among modules.
 High level languages read like  PHASE III : Risk Analysis
combination of English and Algebra. o Building software entails risks
o Techniques exist to identify,
Languages: assess, and manage the risks.

1. Program Language
 PHASE IV : Verification
2. Machine Language
o Formal methods can be used to
3. Assembly Language
prove.
4. High Level Language
JAVA BACKGROUND applications that you could
create using any conventional
HISTORY programming language.
 A Development Environment
- Java was created by James o As a development
Gosling et al. Of Sun environment, Java Technology
Microsystems. provided you with a large suite
- Initially called Oak, in of tools; a computer, an
honour of the tree outside interpreter, a documentation
Gosling’s window. generator, a class file packaging
- It was changed to Java tool, and so on.
because there was already  An Application Environment
a language called Oak. o Java Technology applications
are typically general-purpose
- The original motivation for programs that run on any
Java was the need for machine where the Java
platform Independent Runtime Environment (JRE) is
language that could be installed.
embedded in various  Garbage Collection
consumer electronic o Man programming languages
products like toasters, and allows a programmer to
refrigerators. One of the allocate memory; there should
first projects developed be a way to deallocate that
using Java was a personal memory block in order for
hand held remote control other programs to use it again.
named Star I. In C, C++, and other languages
- At about the same time, the the programmer is responsible
World Wide Web and the for this. This can be difficult at
Internet were gaining times since there can be
popularity. Gosling et.al. instances where in the
Realized that Java could be programmers forget to
used for Internet deallocate memory and
Programming. therefore results to what we
call memory leaks.
WHAT IS JAVA TECHNOLOGY?
o Garbage Collection Thread –
 A Programming Language responsible for freeing any
o As a programming language, memory that can be freed. This
Java can create all kinds of happens automatically during
the lifetime of the Java
program.
CODE SECURITY PHASES OF A JAVA PROGRAM:

- Attained in Java through The following figure describes the process of


the implementation of its compiling and executing a Java Program.
Java Runtime Environment
(JRE).
- The JRE runs code complied
for a JVM and performs
class loading (through the
class loader), Code
verification (through the
byte code verifier), and  The first step in creating a java
finally code execution. program is by writing your programs in
a text editor. Examples of text editors
CLASS LOADER
you can use are notepad, vi, emacs, etc.
- Responsible for loading all This file is stored in a disk file with the
classes needed for the Java extension java.
Program.  After creating and saving your java
- It adds security by program, compile the program by using
separating the name spaces the Java Compiler. The output of this
for the classes of the local process is a file of Java byte codes with
file system from those that the file extension class.
are imported from network  The class file is the interpreted by the
sources. Java interpreter that converts the byte
- This limits any Trojan horse codes into the machine language of the
application since local particular computer you are using.
classes are always loaded
first. After loading all the TASK TOOL TO USE OUTPUT
classes, the memory layout Write the Any Text File with
of the executable is then program Editor Java
determined. This adds extension
Compile the Java Compiler File with
protection against un-
Program Class
authorized access to
extension
restricted areas of the code (java byte
since the memory layout is codes)
determined during runtime. Run the Java Program
Program Interpreter Output

Das könnte Ihnen auch gefallen