Some questions about java