Professional Documents
Culture Documents
Total Marks: 20
Object Oriented Programming Time Allowed:
Session 2020-2024 90 Minutes
Roll Number Name Section
What measures has be taken if the requirement is to print the state/data of the
object the instead reference ? (2)
int id;
Write another class with name “EnteryTestList” having the following attributes/ Fields:
A Hashmap with name MeritList<key, Value> pair, whereas key the shall be rollno
with data type shall“Integer” and value data type shall be of “Student” type(above
class).
(i) Write a method “addStudent” with following signature. (5)
Void addStudent( int rollno, String name, String marks):
Method should add the student object (Anonymous object) in as value and key
would be rollno.
(ii) Write a method “generateMeritList” with following signature
Public void generateMeritLit( int merit) (5)
---------------------------------------------Good Luck-------------------------------------------------