try { int x = Integer.parseInt("two"); } Which could be used to create an appropriate catch block?
try { int x = Integer.parseInt("two"); } Which could be used to create an appropriate catch block? Correct Answer NumberFormatException
C) NumberFormatExceptionC is correct. 'Integer.parseInt' can throw a NumberFormatException, and IllegalArgumentException is its superclass
মোঃ আরিফুল ইসলাম
Feb 20, 2025