Multiple choice technology testing

Return type of a test method must be void.

  1. True

  2. False

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

JUnit test methods must return void because the framework calls them and checks for exceptions rather than return values. Non-void return types would interfere with the test execution mechanism.