1
What will be in the output?
class VisitorTest {
static int visitors = 0;
public static void main(String[] args) {
System.out.println("visitors online: " + visitors++);
System.out.println("The number of visitors is " + visitors);
System.out.println("The number of visitors is now " + ++visitors);
}
}
Please log in or register to have a possibility to add comment.