Question 15
Consider the Java code given below.
public class MarksExample { public <T extends Number> void calculateSum(T[] marks){ // Calculates the sum of marks } public <T> void displayMarks(T[] marks){ // Displays the marks } public <T extends Number> double calculateAverage(List<T> marks){ // Calculates the average of marks }}How does class MarksExample look after type erasure?