Professional Documents
Culture Documents
1. Fill out the blanks in the following questions: (the answers can be found in the ppt
file posted on the blackboard)
a. Language Evaluation Criteria include Readability, Writability, Reliability, and
Cost .
b. For the Von Neumann computer architecture, the data and programs stored in
memory, the memory is separate from CPU, the instructions and data are
piped from memory to CPU.
c. For the Imperative language, the central features are variables, assignment
statements, and iteration; some examples are C, Java, Perl.
d. For the Functional language, the main means of making computations is by
applying functions to given parameters; some examples are LISP, Scheme
The Java Source file is first passed into the compiler which in turn is converted into
stream of bytes and it generates a machine code in form of .class file. This .class file is
nothing but the machine code which is known as Byte code in Java.
A method's bytecode stream is a sequence of instructions for the Java virtual machine.
Each instruction consists of a one-byte opcode followed by zero or more operands. The
opcode indicates the action to be taken. The remaining information is encoded into one
or more operands that immediately follow the opcode. Each type of opcode has a
mnemonic. Every streams of Java bytecodes can be represented by their mnemonics
followed by any operand values.
Java opcodes generally indicate the type of their operands. This allows operands
to just be themselves, with no need to identify their type to the JVM. For example,
instead of having one opcode that pushes a local variable onto the stack, the
JVM has several. Opcodes iload, lload, fload, and dload push local variables of
type int, long, float, and double, respectively, onto the stack.