Chapter 2 Flashcards
What is source code?
a text listing of commands to be compiled or assembled into an executable computer program
What are the two components of Java?
Compiler and Interpretor
Java translaslates source code into _____.
Byte Code
English in programming language is _____.
Byte Code
Byte code is interpreted by _____.
An interpreter
Java prgram in a webpage is ____.
An applet that can stand alone
What are three parts of Java?
Text editor, compiler, interpreter
What is software called that combines text editor, compiler, interpreter?
IDE
What does IDE stand for?
Integrated Development Environment
What does JDK stand for?
Java Development Kit
What is the extension at the end of source code?
.java
What is the extension at the end of byte code?
.class
What is the extension at the end of web page?
.html
Why is there a java subset?
So you know what is being tested.
What is “/t”?
Tab
What is “/b”?
Backspace
Are Java words case sensitive?
Yes
Every statement ends with what punctuation?
;
First statement in every class _______.
public class NAME { public static void main (String args[]) {
Program statements need to be between ______.
{ } (Braces)
What should you be on the lookout for?
Viruses, hackers, and damage
HACKING IS WRONG!
What is a virus?
A program that duplicates itself and can be destructive/annoying
What are keywords in a program?
Public, class, static
What symbol is used to create a single line comment?
//
What symbol is used to create a multi-lined comment?
/* */
What is “print”?
Displays text
What is “println”?
Displays text and moves cursor to next line
What is the difference between “.java” and “.class”?
Before compiled: “.java”
After compiled: “.class”
What is the output of “System.out.println”?
Displays text and moves cursor to next line
What is the output of “System.out.print”?
Displays text
What is the output of “System.out.println ()”?
Blank line
Do comments print?
No