• Post Reply Bookmark Topic Watch Topic
  • New Topic

Explicit conrol transfer statements????  RSS feed

 
Rumesh Eranga
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java control statements are if , for , while and do while statements, but what are explicit control transfer statements??

In my college exam paper, there was a question to name two explicit control transfer statements. It just confused me.

I did some googling and yet i couldn't found the answer.please help

Thanks in advance.
 
Anayonkar Shivalkar
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rumesh Eranga,

I'm not completely sure, but I guess by explicit control transfer, they meant break and continue.

Since those two keywords do not necessarily need any condition to occur, we can say that those are explicit control transfer statements.

I hope this helps.
 
Rumesh Eranga
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anayonkar Shivalkar wrote:Hi Rumesh Eranga,

I'm not completely sure, but I guess by explicit control transfer, they meant break and continue.

Since those two keywords do not necessarily need any condition to occur, we can say that those are explicit control transfer statements.

I hope this helps.


Hay Anayonkar Shivalkar,

Thank you very much for the reply. I also just got confirmed that your answer is correct.

Thank you very much.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!