Intro to Computers, Programs, and Java Flashcards
Intro to Computers, Programs, and Java
Why is Java platform independent?
The JVM can be installed on most platforms, and Java source code will be translated by the specific JVM to the platforms machine language
Intro to Computers, Programs, and Java
What is important for the Java source file names, in relation to class names?
The source file name must match the public class name in the program
Intro to Computers, Programs, and Java
What extension name does Java source files have?
.java
Intro to Computers, Programs, and Java
When does a file name end with .class?
When classes are compiled into byte code, the new file has the .class extension
Intro to Computers, Programs, and Java
What two types of import are there?
Specific import and wildcard import. Specific imports single classes, while wildcard imports all classes in a package
Intro to Computers, Programs, and Java
What are the three categories of errors?
Syntax errors, runtime errors, and logic errors
Intro to Computers, Programs, and Java
__ is the brain of the computer.
The CPU
Intro to Computers, Programs, and Java
The speed of the CPU is measured in __
Hertz. Megahertz, or more commonly today, gigahertz
Intro to Computers, Programs, and Java
Why does the computer use zeros and ones?
Because digital devices have two stable states and it is natural to use one state for 0 and the other for 1
Intro to Computers, Programs, and Java
One byte has __ bits
8
Intro to Computers, Programs, and Java
The computer can only execute code in ___ language
Machine language
Intro to Computers, Programs, and Java
___ translate high-level code into machine code
Compilers
Intro to Computers, Programs, and Java
Java was developed by ___
Sun Microsystems
Intro to Computers, Programs, and Java
Java ___ can run from a web browser
Java applets
Intro to Computers, Programs, and Java
Which of these are object-oriented programming languages?
Java, C++, C, C#, Pascal
Java, C++ and C#