01-HelloWorld Flashcards

(13 cards)

1
Q

What is the format for the main method?

A

public static void main(String [ ] args)

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

Are keywords capitalized or lowercased?

A

lowercased

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

Are class names capitalized or lowercased?

A

capitalized

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

What do complete lines must end with?

A

;

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

What is the format for printing something out?

A

System.out.print(“ “);
System.out.println(“ “);

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

What is a syntax error also called?

A

A bug

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

What is the act of fixing syntax errors called?

A

Debugging

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

What does the first line of code look like?

A

public class NameOfClass

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

FirstClass.java:5: error: unclosed string literal
Which line has an error?

A

Line 5

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

How do you start and end comments that are more than one line long?

A

/*
*/

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

How do you mark comments that are one line?

A

//

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

What is a compiler?

A

Translates code into a class file that can be run

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

What is a literal string?

A

Things between two quotation marks

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