ICSE Class 10 Computer Applications Question 13 of 32

Input in Java — Question 13

Back to all questions
13
Question

Question 13

Consider the following input:
    one, two three, four, five

What values will the following code assign to the variables input1 and input2?

    String input1 = keyboard.next();
    String input2 = keyboard.next();

Answer

input1 ⇒ one,
input2 ⇒ two