Add second, get second

Report a typo

What is the result of the following code?

time = LocalTime.of(0, 0, 2).plusSeconds(6078).getSecond();
System.out.println(time);

Running the code on your computer is considered as cheating!

Enter a number
___

Create a free account to access the full topic