Multiple choice technology programming languages

Select the new keyword since J2SE 1.4

  1. abstract

  2. assert

  3. synchronized

  4. strictfp

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The assert keyword was introduced in Java 1.4 as a mechanism for implementing assertions - boolean expressions that test assumptions during development. The other keywords (abstract, synchronized, strictfp) were present in earlier Java versions. Assertions are typically disabled in production but can be enabled at runtime with the -ea or -enableassertions flag.