Multiple Choice
Assuming that the user enters 23 and 45 as inputs for num1 and num2, respectively, what is the output of the following code snippet?
Public static void main(String[] args)
{
Scanner in = new Scanner(System.in) ;
System.out.print("Enter a number: ") ;
String num1 = in.next() ;
System.out.print("Enter another number: ") ;
String num2 = in.next() ;
System.out.println(num1 + num2) ;
}
A) 23
B) 4523
C) 68
D) 2345
Correct Answer:

Verified
Correct Answer:
Verified
Q5: Which statement is true about variable names
Q9: What will be the value inside the
Q19: Which of the methods below are static
Q21: What will be the value stored in
Q53: Which one of the following statements can
Q62: Which is the Java equivalent of the
Q66: What is the output of the following
Q71: Which one of the following is
Q94: Which of the following statements places input
Q116: Which one of the following operators computes