AP Computer Science A Question of the Day

Test your knowledge with a hand-picked multiple-choice question.

True or False.

This code snippet returns an error.

String s1 = "foo";

String s2 = "foo";

return s1 == s2;

Select an answer and click Check.
1 taken
0 correct
1 incorrect