1> In Question #5 and 7.
Q5:
When programming a session bean class which techniques should always be avoided to ensure bean portability across all
EJB containers
A. Using java.net.Socket class
B. Using inner classes
C. Using the final modifier for the fields
D. Passing this as the argument
CORRECT ANSWER GIVEN IS "D"
Q7:
When programming EJBs which declarations should be avoided to ensure bean portability across all EJB containers
A. final int x;
B. static int x;
C. final static int x;
D. final transient int x;
CORRECT ANSWER GIVEN IS "B"
In any case, according to section 25.1.2 of specs, final should not be used at all.
So the correct answer must be
Q5: C
Q7: A, B, D
2> Question# 16:
Whats true about a legal ejb-jar file?
A. It must contain both a home and component interface
B. The DD is optional
C. It must contain J2EE classes used by the bean
D. The enterprise bean class is optional
The answer given is A.
(B, C and D are incorrect for sure)
Assuming we develop only MDBs and no other beans at all. In such a case, there is no home and remote component interfaces required.
Considering this, even A may be incorrect.
Pls clarify.