try { int x = Integer.parseInt(“two”); } Which could be used to create an appropriate catch block?

A) ClassCastException

B) IllegalStateException

C) NumberFormatException

D) None

View Answer
Option – C.

More Questions

error: Content is protected !!