Updated Java Example and Scripting vs Non-Scripting