Keyword Java Flashcards

1
Q

abstract

A

Specifies that a class or method will be implemented later, in a subclass.

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

assert

A

Describes a predicate placed in a java program to indicate that the developer thinks that the predicate is always true at that place.

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

boolean

A

A data type that can hold True and False values only.

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

break

A

A control statement for breaking out of loops.

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

byte

A

A data type that can hold 8-bit data values.

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

case

A

Used in switch statement to mark blocks of text.

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

catch

A

Catches exceptions generated by try statements.

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

char

A

A data type that can hold unsigned 16-bit Unicode characters.

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

class

A

Declares a new class.

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

continue

A

Sends control back outside a loop.

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

default

A

Specifies the default block of code in a switch statement.

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

do

A

Starts a do-while loop.

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

double

A

A data type that can hold 64-bit floating-point numbers.

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

else

A

Indicates alternative branches in an if statement.

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

enum

A

Used to declare an enumerated type. Enumerations extend the base class.

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

extends

A

Indicates that a class is derived from another class or interface.

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

final

A

Indicates that a variable holds a constant values or that a method will not be overridden.

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

finally

A

Indicates a block of code in a try-catch structure that will always be executed.

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

float

A

A data type that holds a 32-bit floating - point number.

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

for

A

Used to start a for loop.

21
Q

if

A

Test a true/false expression and branches accordingly.

22
Q

implements

A

Specifies that a class implements an interface.

23
Q

import

A

References other classes.

24
Q

instanceof

A

Indicates whether an object is an instance of a specific class or implements an interface.

25
Q

int

A

A data type that can hold 32-bit signed integer.

26
Q

interface

A

Declares an interface.

27
Q

long

A

A data type that holds a 64-bit integer.

28
Q

native

A

Specifies that a method is implemented with native (platform-specific) code

29
Q

new

A

Creates new objects.

30
Q

null

A

This indicates that a reference does not refer to anything.

31
Q

package

A

Declares a Java package.

32
Q

private

A

An access specifier indicating that a method or variable may be accessed only in the class it’s declared in.

33
Q

protected

A

An access specifier indicating that a method or variable may only be accessed in the class it’s declared in.

34
Q

public

A

An access specifier used for classes, interfaces, methods, and variables indicating that an item is accessible throughout the application (or where the class that defines it is accessible)

35
Q

return

A

Sends control and possibly a return value back from a called method.

36
Q

short

A

A data type that can hold a 16-bit integer.

37
Q

static

A

Indicates that a variable or method is a class method, rather than being limited to one particular object.

38
Q

strictfp

A

A java keyword is used to restrict the precision and rounding of floating-point calculations to ensure portability.

39
Q

super

A

Refers to a class’s base class (used in a method or class constructor)

40
Q

switch

A

A statement that executes code based on a test value.

41
Q

synchronized

A

Specifies critical sections or methods in multithreaded code.

42
Q

this

A

Refers to the current object in a method or constructor.

43
Q

throw

A

Creates an exception

44
Q

throws

A

Indicates what exceptions may be thrown by a method.

45
Q

transient

A

Specifies that a variable is not part of an object’s persistent state.

46
Q

try

A

Starts a block of code that will be tested for exceptions.

47
Q

void

A

Specifies that a method does not have a return value.

48
Q

volatile

A

This indicates that a variable may change asynchronously.

49
Q

while

A

starts a while loop.