Question: 4. Given the code below, what is the output? 1 String s1 -new String( Hello World): 2 String s2new String( Bello Java) 4 System.out.print(s1.equals (s2))

 4. Given the code below, what is the output? 1 String

4. Given the code below, what is the output? 1 String s1 -new String( Hello World"): 2 String s2new String( "Bello Java") 4 System.out.print(s1.equals (s2)) A. compilation fails B. false C. true D.output is unpredicatable 5. Which of the following is not a promitive type in Java? A. int B. char C. Boolean D. short

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!