logo

Crowdly

Browser

Add to Chrome

What will this code print? String a = "hello"; String b = new String("h...

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

What will this code print?

String a = "hello";

String b = new String("hello");

System.out.println(a == b);

System.out.println(a.equals(b));

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

Want instant access to all verified answers on moodle.inthergroup.com?

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

Browser

Add to Chrome