Question 69 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 69 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given:

public class App {
String mystr = "7007";

public void dostuff (string str) {
int myNum = 0;
try (
String mystr = str;
myNum = Integer. parseInt (mystr) +
} catch (NumberFormatException ne) {
System.err. println ("Error");
}
System. out. println (
"myStr: "+ myste + ", myNum:

+ myNum)
,

public static void main(string[] args) {
App obj = new App();
obj. dostuft ("9009") ¢

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.