• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java questions  RSS feed

 
Junaid Mahmud
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to make sure that the answer to the question below is 2.  Let me know if I am correct or not. Thanks!


What is y after the following switch statement is executed?

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37513
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depending on the surrounding code, yes. Why not just try it though?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!