369,807 views
14 votes
14 votes
Java Question: What is printed as a result of executing the code segment?

Java Question: What is printed as a result of executing the code segment?-example-1
User Reed Richards
by
2.8k points

1 Answer

29 votes
29 votes

The answer should be
7.

Java Question: What is printed as a result of executing the code segment?-example-1
User Daniel Pryden
by
2.7k points