Which of the following correctly declares and initializes a String object?

A. new String = Hello
B. String greeting == "Hello";
C. String greeting = "Hello";
D. String new = "Hello"

Answer: C

Computer Science & Information Technology

You might also like to view...

Use the F5 key to include dollar signs for absolute references in a cell

Indicate whether the statement is true or false

Computer Science & Information Technology

To ensure that the next time you apply a Heading 1 style it will retain new formats, choose ________ on the shortcut menu

A) Update Heading 1 to match selection B) Update default heading to match selection C) Update Heading 1 to match changes D) Update default heading to match changes

Computer Science & Information Technology