Dayrvia
Jv

Java · Strings · Practice questions

Try 2 questions on Java · Strings, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

2 questions
Q1 Which expression tests character content for equality?
String a = new String("OK");
String b = new String("OK");
Q2 What is the content of name afterwards?
String name = "day";
name.concat("light");
Original practice questions written for Dayrvia.