Test different Java techniques