Java code examples for certification 1Z0-803.