Question: Given the following String x = xyz; String input; Code that reads a value from the keyboard and stores it in the variable input what

Given the following String x = "xyz"; String input; Code that reads a value from the keyboard and stores it in the variable input what will be the outcome of the following two statements, if the user enters xyz on the keyboard? System.out.println(x == input); System.out.println(x.equals(input)); Otrue, false false, true true, true false, false Given the following String x "xyz" String input; Code that reads a value from the keyboard and stores it in the variable input what will be the outcome of the following two statements, if the user enters xyz on the keyboard? System.out.println(x == input); System.out.praatin(x.equals(input)); true, false false, true true, true false, faise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
