SHARE
TWEET

Untitled

a guest Feb 17th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class ExamQuestion6
  2. {
  3.     static int x;
  4.     boolean catch()
  5.     {
  6.         x++;
  7.         return true;
  8.     }
  9.     public static void main(String[] args)
  10.     {
  11.         x=0;
  12.         if ((catch() | catch()) || catch())
  13.             x++;
  14.         System.out.println(x);
  15.     }
  16. }
RAW Paste Data
Top