E) both C and D
Erro handling and execution paths
Thread 2 read
Thread 1 read/write 4 times
Thread 2 write
Thread 1 read
Thread 2 read/write 4 times...
Option D is correct. The loop should look like this:
for (int i = 0; i < 10; i += 2)
{
System.out.print(i + " ");
}
"true" is a string type of data. String types of data are lines of text between quotation marks. They are generally used for displaying text to users but can be helpful for debugging as well.