Which code sample is the recommended way to override the create() method in EmployeesImpl, an implementation of oracle.jbo.server.EntityImpl for the Employee’s entity object, to set default salary?

Correct Answer for the following Question is given below

Which code sample is the recommended way to override the create() method in EmployeesImpl, an implementation of oracle.jbo.server.EntityImpl for the Employee’s entity object, to set default salary? (Choose the best answer.)}}}Instances of subclasses should call super.create() before performing any operations.References: http://docs.oracle.com/cd/E28280_01/apirefs.1111/e10653/oracle/jbo/server/EntityImpl.html

Question:

Which code sample is the recommended way to override the create() method in EmployeesImpl, an implementation of oracle.jbo.server.EntityImpl for the Employee’s entity object, to set default salary?

Options:

protected void create(AttributeList attributeList) { SetAttributeInternal (SALARY, 0); super.create(attributeList);

protected void create(AttributeList attributeList) { super.create(attributeList); setAttributeInternal(“SALARY”, 0); }

protected void create(AttributeList attributeList) { super.create(attributeList); setSalary(0);

protected void create(AttributeList attributeList) { setSalary(0);

Correct Answer

The Correct Answer for this Question is

protected void create(AttributeList attributeList) { super.create(attributeList); setAttributeInternal(“SALARY”, 0); }

Explanation

The Question – Which code sample is the recommended way to override the create() method in EmployeesImpl, an implementation of oracle.jbo.server.EntityImpl for the Employee’s entity object, to set default salary? has been answered correctly and answers for the question is protected void create(AttributeList attributeList) { super.create(attributeList); setAttributeInternal(“SALARY”, 0); }

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment