Which of the following statements is true?

  1. If assertions are compiled into a source file, and if no flags are included at runtime, assertions will execute by default.
  2. As of Java version 1.4, assertion statements are compiled by default.
  3. With the proper use of runtime arguments, it is possible to instruct the VM to disable assertions for a certain class, and to enable assertions for a certain package, at the same time.
  4. When evaluating command-line arguments, the VM gives -ea flags precedence over -da flags.



© 2017