Java Programming Logical Questions Examples