Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread

 
Abhi vijay
Ranch Hand
Posts: 509
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Source : Devaka Cooray's Exam Simulator




Here System.out.print("Printed, ");
this line is not executed???
 
Ruben Soto
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Abhi,

I performed some modifications to the code that should allow you to see what's going on. Try to run this:

 
Abhi vijay
Ranch Hand
Posts: 509
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.Ruben. I understood. I am really nervous, as I am making a lot of mistakes in the Thread questions.
 
Ruben Soto
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Threads questions are tough for everyone. If you now understand why the code wasn't working as you expected, that means you understand threads quite well though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic