Headfirst Java Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the difference between scripting languages and programming languages ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does server-side mean?

A

Scripts are run on the server and minimize the workload of the browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does client-side mean?

A

Scripts are run on the browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 4 steps for how Java works?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a source code file?

A

A source code (.java file), holds one class definition. The class represents a piece of your program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are statements?

A

Declarations, assign, method calls, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 looping structures in Java?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a branching statement example in Java?

A

if/else statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does AWT mean?

A

Abstract Window Toolkit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an applet?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly