Which approach ensures that the class can be compiled and run?

Given: Which approach ensures that the class can be compiled and run?

Given: Which approach ensures that the class can be compiled and run?

A.
Put the doSomething() method in the try block of a try – catch

B.
Put the doSomething() method and the doSomethingElse() method in the try block
of a try – catch

C.
Put the doSomethingElse() method in the try block of a try – catch

D.
Put the throw new Exception() statement in the try block of try – catch



Leave a Reply 0

Your email address will not be published. Required fields are marked *