Question: What will the following program print when run? Select the one correct answer. (a) The program will print false true. (b) The program will print
What will the following program print when run?
![public class Uppity { public static void main(String[] args) { String strl](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/9/4/9/03665bdf9aca7a401706949035045.jpg)
Select the one correct answer.
(a) The program will print false true.
(b) The program will print false false.
(c) The program will print true false.
(d) The program will print true true.
(e) The program will fail to compile.
(f) The program will compile, but throw an exception at runtime.
public class Uppity { public static void main(String[] args) { String strl = "lower", st r2 = "LOWER", str3 = "UPPER"; strl.toUpperCase (); strl.replace ("LOWER","UPPER"); System.out.println ((strl.equals (str2)) + " +(str1.equals(str3))); } }
Step by Step Solution
3.40 Rating (150 Votes )
There are 3 Steps involved in it
b The reference value in the reference ... View full answer
Get step-by-step solutions from verified subject matter experts
