Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on Threading Qs

 
Rohan Kayan
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is the question from http://www.javacertifications.net



options
A)good
B)good idea
C)good idea good idea
D)good 0 good 0 1

Correct answer is : A




My doubt is that , as the time/sequence of execution of threads are dependent of the actual JVM and platform , the ans for above question could be any of these five

1. good
2. good 0
3. good 0 1
4. good 0 1 2
5. good 0 1 2 3


Am I correct in my interpretation ??
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it could be any one of the
1. good
2. good 0
3. good 0 1
4. good 0 1 2
5. good 0 1 2 3
as you mentioned...

I think the A is correct because " A)good" is the only possible correct choice in all options!!
 
Neha Daga
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this question has been discussed here
 
Jim Hoglund
Ranch Hand
Posts: 525
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ooops . . .

... Jim ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic