Question 10 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 10 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

public static void main(string[] args) {
StringBuilder sb = new StringBuilder (5);
String s =";

if (sb.equals(s)) {
System. out.println ("Match 1");

) else if (sb.tostring().equals(s.tostring())) {
System. out.println ("Match 2");

} else {
System.out.println ("No Match");

3

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.