Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
SCBCD-5 Q&A With Explanations - 2

SCBCD-5 Q&A With Explanations - 2

Ratings: (0)|Views: 443|Likes:
Published by ThamaraiP

More info:

Published by: ThamaraiP on Jun 20, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
QUESTIONS FOR SCBCD 5.0 FORM 2
Location: > Section 1: EJB 3.0 Overview > Objective 1.1 > Question 1Which statement correctly identifies the architectural goals of the designers of the EJB architecture?A The EJB architecture supports the development, deployment, and use of web services.B The EJB architecture only supports interoperability with programs written in the Java language.C The EJB architecture addresses the development and deployment of EJB components, but the runtimeaspect is left completely to the discretion of the container providers.D The EJB architecture requires that users be aware of the low-level connection pooling aspects andmulti-threading characteristics of the Java EE platform.
Reference
 Option A is correct. (See section 2.1 "Overall Goals" in the Core Specification.) Option B, C, and D areincorrect because they are NOT listed as goals in section 2.1Location: ... > Section 1: EJB 3.0 Overview > Objective 1.2 > Question 2When a programmer is creating an EJB container, which two APIs should be available or be provided bythe EJB Container Provider or the EJB Server Provider? (Choose two.)A EJB 2.1 APIsB Common AnnotationsC JavaServer Faces APIsD JavaServer Pages APIsE Java Data Objects APIs
Reference
Options A and B are correct. (See the Simplified Specification 2.2. and the Core Specification 21.1.1.)Option C, D, and E are NOT mentioned in the Specifications so are incorrect.Location: ... > Section 1: EJB 3.0 Overview > Objective 1.3 > Question 3What programming restrictions are defined in the EJB specifications?A An enterprise bean must NOT attempt to listen on a socket.B A session bean class must NOT have any superclasses and/or superinterfaces.C An enterprise bean can directly read a file descriptor.D An entity bean class need NOT implement a public zero-argument constructor.
 
 
Reference
Option A is correct. (See section 21.1.2 of the Core Specification)Option B is incorrect because it may well have them. (See section 4.6.2)Option C is incorrect. It must NOT attempt to read (or write) a file descriptor. (See 21.1.2 of the CoreSpecification.)Option D is incorrect because it must do so. (See section 8.6.2.)Location: ... > Section 1: EJB 3.0 Overview > Objective 1.4 > Question 4Which two roles defined by the EJB architecture typically modify the metadata associated with an ejb-jarin the creation, integration, and deployment of the ejb-jar as part of a larger application? (Choose two.)A Application AssemblerB System AdministratorC Enterprise Bean ProviderD Persistence ProviderE EJB Container ProviderReferenceOptions A and C are correct. (See the Core Specification, section 2.2.) The assembler is responsible forcombining enterprise beans and the provider for creating the bean. Both would typically manipulate themetadata.Option B is incorrect because this role refers to someone who configures the enterprises computing andnetwork infrastructure.Option D is incorrect because this role refers to the provider of the persistence runtime.Option E is incorrect because this role refers to the provider of the EJB container.Location: ... > Section 1: EJB 3.0 Overview > Objective 1.5 > Question 5An enterprise bean packaged in an ejb-jar returns instances of a Television class as a result for one of itsbusiness methods. The developer has been asked to create an associated ejb-client JAR file.What files must be placed in this ejb-client JAR for it to be valid?A The ejb-jar file (by inclusion or by reference)B The Television class (by inclusion or by reference)C Stubs of all enterprise classes referenced by the ejb-clientD The DTDs and schemas of all XML messages used by the client
 
 ReferenceOption B is correct. (See section 20.4 and 20.3 of the Core Specification.)Option A is incorrect. The developer typically places the ejb-client in the ejb-jar, NOT vice-versa.Option C is incorrect. Stubs are generated and should NOT be packaged by a developer.Option D is incorrect. This has nothing to do with EJB technology.Location: ... > Section 1: EJB 3.0 Overview > Objective 1.6 > Question 6An enterprise bean has a set of interceptor classes defined for it in two ways: First, the interceptorclasses were specified in the deployment descriptor for the enterprise bean. Second, the classes werespecified using the @Interceptor annotation on the enterprise bean itself.Which statement describes the runtime and deployment-time use of these metadata?A A conflicting-metadata exception will be thrown by the deployment tools.B The deployment descriptor metadata will override the annotation metadata.C The annotation metadata will override the deployment descriptor metadata.D The result is NOT specified and will be vendor-specific.ReferenceOption B is correct. (See the Simplified Specification 2.1 or the Core Specification 12.1.) Because B iscorrect, A, C, and D are necessarily incorrect.Location: ... > Section 2: General EJB 3.0 Enterprise Bean Knowledge > Objective 2.1 > Question 7Which statement about life-cycle callback methods is correct?A Life-cycle callback methods must be implemented in the bean class.B Life-cycle callback methods can have public, private, protected, or package-level access.C A life-cycle callback method can only have a single callback annotation. In other words, you cannotdefine a single method and give it two different callback annotations.D Life-cycle callback methods can be declared as static.
Reference
See 3.4.1 Simplified Specification for all of these.Option A is incorrect. They can be implemented in an interceptor class too.Option B is correct.Option C is incorrect. It can have multiple callback annotations.Option D is incorrect. They cannot be static (or final).

Activity (8)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
s liked this
newsrv liked this
Ben Heckendorf liked this
sathish1712 liked this
real0123 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->