Multiple choice

Which of the following methods of Package class is used to return a true value if the invoking package is sealed, or otherwise it returns false?

  1. getSpecificationVersion()

  2. isSealed()

  3. getName()

  4. getImplementationTitle()

  5. isSealed(URL url)

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

This method of Package class is used to return a true value if the invoking package is sealed, otherwise it returns false.