Question: Part II Object Oriented Programmingl50 pointsl Test 2 (5 questions, 2 points eacb) Read the folowing code and answer the questions. public class Test9 f
Part II Object Oriented Programmingl50 pointsl Test 2 (5 questions, 2 points eacb) Read the folowing code and answer the questions. public class Test9 f public static void main(Stringt] args) String s1- new String("abcde") String s2 new String("abcde"); boolean b1. s1,equals(s2); 2/6 boolean b2 S1 $2; System.out.printin("b1-"+bi+":b2ab2 string s3 "abcde" string s4a "abcde", boolean b3 s3.equals(s4); boolean b4 S3 $4; System.out.printin("b3+b3+":b4-"+b4); (code2 boolean b5 s1.equals (s3); boolean b6 s2-$4; System.out.println("b5-"+b5+":b6-"+b6) (code3) b2-"+b2); (1) What is the printout of the code1? Why? (2) What is the printout of the code2? why? (3) What is the printout of the code3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
