- 2

which are the results of the following code? (Choose all that apply)

String numbers = "012345678"; System.out.println(numbers.substring(1, 3)); System.out.println(numbers.substring(7, 7)); System.out.println(numbers.substring(7)); A) 12 B) 123 C) 7 D) 78 E) A blank line F) An exception is thrown. G) The code does not complie.

8th May 2021, 2:31 AM
Ahmed
1 Respuesta
0
Ahmed Just run this code in Code Playground and get your answer.
8th May 2021, 3:12 AM
A͢J
A͢J - avatar