Check Points Ch 1
What is an interpreter? What is a compiler?
An interpreter is a software that reads one statement from the source code, translates it to the machine code or virtual machine code, and then executes it right away. A compiler is a software that translates a program in high-level language into machine language code
What is the difference between an interpreted language and a compiled language?
An interpreter reads one statement from the source code, and translates it to the machine code or virtual code, and then executes right away. A compiler translates the entire source code into a machine code file, and the machine code file is then executed.
What programming language does Android use?
Android uses the Java programming language
What is an assembly language? What is an assembler?
Assembly language is a low-level programming language in which a mnemonic is used to represent each of the machine language instructions. Assembler is a software that translates assembly language into machine language.
What are the major responsibilities of an operating system?
Controlling and monitoring system activities, allocating and assigning system resources, and scheduling operations
Syntax error (compile error)
Errors detected by compilers from errors in code construction, such as mistyping a keyword, omitting some necessary punctuation, or using an opening brace without a corresponding closing brace.
Runtime Error
Errors that cause a program to terminate abnormally. They occur while a program is running if the environment detects an operation that is impossible to carry out.
Logic Error
Errors that happen when a program does not perform the way it was intended to.
IDE
Integrated Development Environment
What is the JVM
JVM is the Java Virtual Machine that runs a Java program
JDK
Java Development ToolKit
JRE
Java Runtime Environment
What is a Java applet?
Java applet is a special program that runs from a Web browser. Due to security reasons, applets are no longer allowed to run from Web browsers
Can Java run on any machine? What is needed to run Java on a computer?
Java can run on any machine with a JVM
Who invented Java? Which company owns Java now?
Java was invented by a team led by James Gosling at Sun Microsystems in 1991. Originally called Oak, it became Java in 1995 when it was redesigned for developing Internet applications. Oracle bought Sun and Oracle now owns Java
What are multi-programming, multi-threading, and multiprocessing?
Multi-programming allows multiple programs to run simultaneously by sharing the CPU. Multi-threading allows concurrency within a program, so that its sub-tasks can run at the same time. Multiprocessing, or parallel processing, uses two or more processors together to perform a task
What is the Java language specification?
The Java language specification specifies the syntax for the Java language
What is a high-level programming language? What is a source program?
The high-level languages are English-like and easy to learn and program. The program written in a programming language is called a source program.
What are the input and output of a Java compiler?
The input of a Java compiler is a Java source code file and the output is a Java class file
What language does the CPU understand?
The machine language is a set of primitive instructions built into every computer. This is the language understood by a computer and executed by a computer
What is an operating system?
The operating system (OS) is a program that manages and controls a computer's activities. Application programs such as an Internet browser and a word processor run on top of an operating system.
What is the Java source filename extension, and what is the Java bytecode filename extension?
The source file extension is .java and the bytecode file extension is .class
What is the command to run a Java program?
java is the JDK command to run a program
What is the command to compile a Java program?
javac is the JDK command to compile a program