logo

Crowdly

Browser

Add to Chrome

What will be printed? public class Test {     public static void main(String[] a...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will be printed?

public class Test {

    public static void main(String[] args) {

        String s1 = "Java";

        String s2 = new String("Java");

        System.out.println(s1 == s2);

        System.out.println(s1.equals(s2));

    }

}

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learning.devinci.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome