Assertions Flashcards

1
Q

Enables assertions by default (except system classes).

A

-ea

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

Enables assertions for a given class name.

A

-ea:

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

Enables assertions for all members in a given package name.

A

-ea:

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

Short for -enablesystemsassertions; enables assertions in system classes. This is rarely used.

A

-esa

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

Disables assertions by default(except for systems classes).

A

-da

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

Disables assertions for a given class name.

A

-da:

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

Disables assertions in all members of the given package name.

A

-da:

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

Short for -disablesystemsassertions; disables assertions in the system classes. This is rarely used.

A

-dsa

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

Compile code for an older version of java that uses assert as an identifier.

A

-source 1.3

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