Practice questions for Java