Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Whizlabs Exam Simulator

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
arrod Felino

You answer is correct.
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic