Java Code Snippets Interview Questions