Multiple choice technology programming languages

when present,package must be the first noncomment statement in the file

  1. True

  2. False

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

The package statement, if present, must be the first non-comment statement in a Java source file. This rule ensures the package declaration appears before any imports or class declarations.