Primitive data types are passed by value, which is done by creating a copy of the original. You can catch syntax and runtime errors with the “try…catch…finally” construct. The “throw” statement allows you to raise your exceptions so that they can be captured later. Null is an assignment value that we can assign to any…