Basic Concepts Flashcards

1
Q

a collection of statements that are grouped together to perform an operation (also called a function)

A

method

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

belong to the class instead of a specific instance

A

static

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

the method that is the starting point for all Java programs

A

main

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

public static void main(String[ ] args)

what method is this?

A

main method

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

each object is called a(n) __________ of a class

A

instance

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

indicates that a method does not return a value

A

void

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

a collection of variables of the same type

A

array

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

prints a line of text to the screen

A

System.out.println()

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

In Java, each code statement must end with this (Remember: Do not use these after method and class declarations that follow with the body defined using the curly braces)

A

semicolon

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

single line comment

A

//

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

multiline comment

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

documentation comments (Javadoc)

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

a tool which comes with JDK and it is used for generating Java code documentation in HTML format from Java source code which has required documentation in a predefined format

A

javadoc

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

a _____ is given a name (or identifier), such as area, age, height, and the like.

A

variable

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

use to declare an integer variable

A

int

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