Oracle
1Z0-144 · Question #60
Examine the following package specification. SQL>CREATE OR REPLACE PACKAGE emp_pkf IS PROCEDURE search_emp (empdet NUMBER); PROCEDURE search_emp (empdet DATE); PROCEDURE search_emp (empdet NUMBER)…
The correct answer is B. Because function cannot differ only in return type. See the full explanation below for the reasoning.
Question
Examine the following package specification. SQL>CREATE OR REPLACE PACKAGE emp_pkf IS PROCEDURE search_emp (empdet NUMBER); PROCEDURE search_emp (empdet DATE); PROCEDURE search_emp (empdet NUMBER); RETURN VERCHAR2 PROCEDURE search_emp (empdet NUMBER); RETURN DATE END emp_pkg / The package is compiled successfully Why would it generate an error at run tune?
Options
- ABecause function cannot be overload
- BBecause function cannot differ only in return type.
- CBecause all the functions and procedures In the package cannot have the same number of
- DBecause the search EMP (EMPDET NUMBER) procedure and the SEARCH_DEPT (EMPDET
How the community answered
(32 responses)- A3% (1)
- B84% (27)
- C3% (1)
- D9% (3)
Community Discussion
No community discussion yet for this question.