Question #01: 1. Show the output of the following code. What is the output if x = 3 and y 2? What is the output if x - 2 and y-2? if (x > 2) { if (y > 2) { z-x + y: System.out.printin("z is z); else...


Question #01:<br>1. Show the output of the following code. What is the output if x = 3 and y 2?<br>What is the output if x - 2 and y-2?<br>if (x > 2) {<br>if (y > 2) {<br>z-x + y:<br>System.out.printin(

Extracted text: Question #01: 1. Show the output of the following code. What is the output if x = 3 and y 2? What is the output if x - 2 and y-2? if (x > 2) { if (y > 2) { z-x + y: System.out.printin("z is z); else System.out.printIn("x is "+ x); 2. Suppose that s1, s2, and s3 are three strings, given as follows: String sl = "Welcome to Java": String s2 - "Programming is fun"; String s3 = "Welcome to Java": What are the results of the following expressions? 1- sl.equals(s2) 2. sl.indexOffj)

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here