Mod 3 Flashcards
the most basic language of a computer
• A sequence of 0s and 1s
• Every computer directly understands its own machine
Machine language
binary digit, 0, or 1
Bit
sequence of 8 bits
Byte
Mnemonic
assembly language, an instruction is an easy-to- remember form
translates assembly language instructions into machine language
Assembler
Java instructions need to be translated into an intermediate language called byte-code
2. Then the bytecode is interpreted into a particular machine language
Compiler
translates a program written in a high-level language into the
equivalent machine language
In the case of Java, this machine language is the bytecode
JVM JAVA VIrTUAL MACHINE
to make Java programs
machine independent
Programming Methodologies 2 tye
Structured Design
- Object - Oriented Design
A problem is divided into smaller subproblems
• Each subproblem is solved
• The solutions of all subproblems are the combined to solve the problem
Structured design
collection of interacting objects
• Object - consists of date and operation
Object - oriented design (ood)
Steps in OOD
1. Identify objects
2. Form the basis of the solution
3. Determine how these object interact
Java program:
collection of classes
Token?
smallest individual unit of a program
WHAT IS JAVAA?
- Developed by Sun Microsystems - An object-oriented language
- General-purpose
- Advantages
- Security features
- Architecturally neutral
- Can be run on a wide variety of computers
- Does not execute instructions on the computer directly - Runs on a hypothetical computer known as a Java Virtual Machine (JVM)