Java Code Snippets Predict The Output In Python