aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Whizlabs Exam Simulator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Whizlabs Exam Simulator" Watch "Whizlabs Exam Simulator" New topic
Author

Whizlabs Exam Simulator

Jarrod Felino
Greenhorn

Joined: Nov 15, 2008
Posts: 26
I have been using the Whizlabs exam simulator alongside the Enthuware Exam simulator. Enthuware's question and answers are of a pretty high quality. However the same cannot be said about Whizlabs. I am really considering not using this exam simulator any more as the questions are very vague with very poor English (I am a native speaker).

Has anyone used the Whizlabs and found it useful for the actual exam???
Jarrod Felino
Greenhorn

Joined: Nov 15, 2008
Posts: 26
One of the questions from Whizlabs is the following (Question 53 in Exam 2):

Which of the following is incorrect about the how the exceptions are handled in EJB's (1 correct answer)

A. When a business method of an enterprise bean throws an application exception the container discards that instance of the bean

B. Message driven beans are not allowed to throw exceptions to clients

C. When a business method of an enterprise bean throws an application exception, the container automatically rolls back the transaction

D. The class of exception recieved by the client is the same class of exception when the bean throws an application exception



Whizlab answer: C
My answer: A and C

A bean is never discarded when an application exception is thrown as the client can try and recover as per section 14.3.1 of the EJB3 core specification. Were the exception changed to a 'system exception' "A" would not be an answer.
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

I have also complained about the poor quality of the English language that has been used in some questions.
I have also noticed it in Enthuware mocks, but most questions are written in good English.

And I agree with you about that question, answers A and C.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Piotr Uryga
Ranch Hand

Joined: May 25, 2006
Posts: 68
I have used whizlabs for SCJP and SCWCD alongside with Enthuware.
Now I'm preparing to SCBCD and I'm not going to waste my time on whizlabs.

Most annoying thing: Questions with incorrect answers


SCJP 1.4, SCWCD 1.4, SCBCD 5, SCEA
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
arrod Felino

You answer is correct.
Mellon Sun
Ranch Hand

Joined: Feb 20, 2003
Posts: 126
Are you serious?

As far as I know, only nonapplicationexception cause the container discard the session bean and rollback the transaction. I think both the answer A and B are not right.

I prefer the answer D, as the ejb core says: "An application exception thrown by an enterprise bean instance should be reported to the client precisely", the ApplicationException are "rethrowed".

[ December 17, 2008: Message edited by: Mellon Sun ]

[ December 17, 2008: Message edited by: Mellon Sun ]
[ December 18, 2008: Message edited by: Mellon Sun ]

SCJP,SCWCD1.3,SCWCD1.4,SCJD,SCBCD5,SCEA5
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
Hi All,

Im really sorry.. I wanted to say "Your answer is NOT correct". but by mistake I have missed "NOT".

Mellon Sun is CORRECT. (I double checked )

Here is the summary.

By default App exceptions do not rollback the exceptions (you can override using annotations or ejb-jar). App exceptions are recoverable. So bean instance will not be discarded. To be recoverable, App exps should be propagated to client as it is, not as a wrapped.

Again sorry for inaccurate answer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Whizlabs Exam Simulator
 
Similar Threads
Part 1 Exam Simulators...
SCJP 5 with 94% :-)
passed scea part one with 83%
SCEA 5 part - I Exam simulator
Which of these 3 books do you consider the best?