Which two statements are correct about PL/SQL package components?

Which two statements are correct about PL/SQL package components? (Choose two)
A. A package must have both specification and body.
B. A package body can exist without the package specification.
C. A package specification can exist without the package body.
D. When a packaged public variable is called for the first time in a session, the entire package is loaded into memory.

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which two statements are correct about PL/SQL package components?

  1. I also think correct answers are C,D.

    https://docs.oracle.com/cd/E11882_01/appdev.112/e25519/packages.htm#LNPLS00904

    “You can code and compile specifications without their bodies. Next, you can compile standalone subprograms that reference the packages. You need not fully define the package bodies until you are ready to complete the application.”

    “Package public variables and cursors can persist for the life of a session. They can be shared by all subprograms that run in the environment. They let you maintain data across transactions without storing it in the database. ”

    “The first time you invoke a package subprogram, Oracle Database loads the whole package into memory. Subsequent invocations of other subprograms in same the package require no disk I/O.”

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.