Headfirst Java Flashcards
What is the difference between scripting languages and programming languages ?
All scripting languages are programming languages.
Scripting languages do not require the compilation step and are interpreted. They can be server-side or client side.
What does server-side mean?
Scripts are run on the server and minimize the workload of the browser
What does client-side mean?
Scripts are run on the browser
What are the 4 steps for how Java works?
Step 1: Source - Create a source document (Java language)
Step 2: Compiler (javac) -the compiler checks for errors and won’t compile until it knows that everything will run correctly
Step 3: Output (code) - The compiler creates a new document coded into java bytecode.
Step 4: Virtual machine - The machine that has a JVM implemented with software, can read and run the bytecode.
What is a source code file?
A source code (.java file), holds one class definition. The class represents a piece of your program.
What are statements?
Declarations, assign, method calls, etc.
What are the 3 looping structures in Java?
for, while, do-while
If some condition is true, you do everything inside the loop block. The looping depends on the condition test, which must result in either true or false.
What is a branching statement example in Java?
if/else statement
What does AWT mean?
Abstract Window Toolkit
What is an applet?
An applet is a Java program that can be embedded into a webpage. It’s embedded into an HTML page by using the applet or object tag and hosted on a web server