Solved Question 2 Given The Following Java Program Segment

Solved Question 2 Given The Following Java Program Segment