Trace the following program and answer the questions | static methods in java
All Answers
need an explanation for this answer? contact us directly to get an explanation for this answer
1.
Average = 50.0
Average = 23.333333333333332
2.
private double sum should be : private static sum=0;
3.
4. because numStudents is a static variable.
need an explanation for this answer? contact us directly to get an explanation for this answer
total answers (2)
Average = 50.0
Average = 23.333333333333332
need an explanation for this answer? contact us directly to get an explanation for this answer