Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ExamQuestion6
- {
- static int x;
- boolean catch()
- {
- x++;
- return true;
- }
- public static void main(String[] args)
- {
- x=0;
- if ((catch() | catch()) || catch())
- x++;
- System.out.println(x);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement