Almost final variables

Report a typo

Take a look at the following code snippet that deals with strings.

String MSG = "Hello";
String greeting = MSG + ", world!";
greeting = "Hello, John!";
String hello = greeting + MSG;

Select all variables which can be marked as final without causing compilation errors.

Select one or more options from the list
___

Create a free account to access the full topic