Advertisement
Guest User

Pergunta

a guest
Oct 1st, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. Given:
  2.  public class Breaker2 {
  3.  static String o = "";
  4.  public static void main(String[] args) {
  5.  z:
  6.  for(int x = 2; x < 7; x++) {
  7.  if(x==3) continue;
  8.  if(x==5) break z;
  9.  o = o + x;
  10.  }
  11.  System.out.println(o);
  12.  }
  13.  }
  14. What is the result?
  15. A. 2
  16. B. 24
  17. C. 234
  18. D. 246
  19. E. 2346
  20. F. Compilation fails.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement