Answer:
90
Step-by-step explanation:
Reformatting the code snippet gives the following:
=================================================
1. public class GradeCurveApp {
2. public static void main(String[] args) {
3. int grade = 95;
4. GradeCurve curve = new GradeCurve();
5. curve.lowerGrade(grade);
6. System.out.println(grade);
7. }
8. }
10. public class GradeCurve {
11. public void lowerGrade(int g) {
12. g -= 5;
13. }
14. }
===================================================
As shown in the code snippet, there are two classes:
i. the main class - GradeCurveApp and;
ii. GradeCurve.
On line 3 of the main class, an integer variable, grade, is declared and initialized to a value of 95.
On line 4, an instance, curve, of the second class, GradeCurve, is created which then calls the method lowerGrade() of the class using the grade variable as argument.
As declared in lowerGrade(), the method takes in an integer as parameter and then reduces the integer by a value of 5.
Therefore, the call to lowerGrade(), on line 4 using the grade variable as argument will reduce the value of grade by 5 which makes its value become 95 - 5 = 90.
Line 6 then prints the value of grade to the console using the method System.out.println().
Therefore, 90 will be displayed.