exam questions

Exam 1z0-148 All Questions

View all questions & answers for the 1z0-148 exam

Exam 1z0-148 topic 1 question 31 discussion

Actual exam question from Oracle's 1z0-148
Question #: 31
Topic #: 1
[All 1z0-148 Questions]

Examine this Java method in class Employee, loaded into the Oracle database:
Public static int updateSalary (String name, float salary) {}
Which PL/SQL specification can be used to publish this method?

  • A. CREATE FUNCTION update_salary (p_nm VARCHAR2, p_sal NUMBER) RETURN PLS_INTEGER AS LANGUAGE JAVA LIBRARY "Employee" NAME "updateSalary" PARAMETERS (p_nm java.lang. String, p_sal float, RETURN int);
  • B. CREATE FUNCTION update_salary (p_nm VARCHAR2, p_sal NUMBER) RETURN PLS_INTEGER AS LANGUAGE JAVA NAME "Employee.updateSalary" PARAMETERS (p_nm java.lang.String, p_sal float, RETURN int);
  • C. CREATE FUNCTION update_salary (p_nm VARCHAR2, p_sal NUMBER) RETURN PLS_INTEGER AS LANGUAGE JAVA NAME "Employee.updateSalary" PARAMETERS ("name" java.lang.String, "salary" float, RETURN int);
  • D. CREATE FUNCTION update_salary (p_nm VARCHAR2, p_sal NUMBER) RETURN PLS_INTEGER AS LANGUAGE JAVA NAME Employee.updateSalary (java.lang.String, float) return int;
  • E. CREATE FUNCTION update_salary (p_nm VARCHAR2, p_sal NUMBER) RETURN PLS_INTEGER AS LANGUAGE JAVA
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Tinamoran
Highly Voted 5 years, 3 months ago
d is the right answer
upvoted 6 times
...
Rakeshpro
Most Recent 2 years, 4 months ago
https://docs.oracle.com/en/database/oracle/oracle-database/21/jjdev/calling-Java-from-PL-SQL.html#GUID-499ABE6B-4391-43C8-A527-74A6C7B0A0FF
upvoted 1 times
...
chrishillinger
2 years, 5 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
DmitryPDN
5 years ago
Yes, Dis the correct answer since you should only point types of parameters, not their names in publication of java function.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago