File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt over ePractice exam question

 
Gordy Bone
Ranch Hand
Posts: 54
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This following is from a web-based mock exam. I disagree with the answer given please let me know if you think I'm mistaken or not:

Given: t is a reference to a valid Thread object And the following valid run() method for t:




And:




Which can be a result?
- go followed by an exception [CORRECT]
- An exception is thrown with no other output. [MARKED AS INCORRECT]

I disagree that the second option is incorrect. Surely there is no guarantee that thread t will have been given processor time before the second invocation of start(), and therefore no guarantee that "go" will even be printed?


Gordy
 
Srinivasan thoyyeti
Ranch Hand
Posts: 557
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gordy,

I agree with you, There is no guarantee that "go" will print.

So Those kind of questions should be avoided.

I can say Main exam will not contain, ambiguous questions or answers.
As i have answered one of the questions with similar kind of narration.
It was very clear indeed. no ambiguity.
[ March 26, 2007: Message edited by: Srinivasan thoyyeti ]
 
Gordy Bone
Ranch Hand
Posts: 54
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Srinivasan,

That is reassuring to hear. I've come across a few ambiguous questions in mocks and it is frustrating. (This question came from Sun themselves, which is pretty disappointing).

Cheers,

Gordy
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic