Test Java language usage and function