Solved

How Can You Create a String Literal That Includes a Newline

Question 4

Multiple Choice

How can you create a String literal that includes a newline character?


A) Java provides a set of escape sequences that can be used to include a special character within String and char literals.
B) Declare the variables before you use them.
C) Use the + operator.
D) Use /*.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions