Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification
SCBCD Practice Test
20 Free SCBCD Practice Questions

Answer 11

Correct answer: d & e

Explanation:

Choice A is incorrect since the primary key class must be declared public and not private.

Choice B is incorrect because the primary key class does not need to be declared abstract. The container should be allowed to use the primary class without having to extend it.

Choice C is also incorrect as there is no such requirement. All fields of the primary key class must be declared public, even if this means that the encapsulation of the class is broken. Hence, choice D is correct.

Choice E is also correct. The primary key class is not allowed to declare fields having names that are different from the names of the container-managed fields declared in the <cmp-field> elements in the deployment descriptor.

Please refer to section 10.8 of the EJB 2.0 specification for further details.

 

Test Objective:

Entity Beans

 

Next page > Question 12

Explore Computer Certification

About.com Special Features

Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2009 About.com, a part of The New York Times Company.

All rights reserved.