Write a Complete chapter on Generics in java which includes Definition, importance and uses. You have to write a program which completely explains the concept of Generics.

computer science

Description

Question:-

1.      Write a Complete chapter on Generics in java which includes Definition, importance and uses. You have to write a program which completely explains the concept of Generics.

 

Create a generic class that contains a method sameAvg() that determines if two Stats objects contain arrays that yield the same average, no matter what type of numeric data each object holds. Call this method in another class and show details.

 

 

 

 

Assignment Title

Name of Student:

Registration Number:

Section:

Roll No:

Problem No. Assigned:

  1. Theoretical Answer

// You can write answer(theoretical) of the topic along with relevant programs assigned to you. If there is any subheading, write 1.1 or 1.2 etc.

  1. Programming Answer

 

  1. Execution Screenshot

// with explanation

 

Don’t copy paste anything. 


Related Questions in computer science category