Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 10 points Q2(a) Explain the changes required to the class Student shown below to allow persistence to a delimited text file Student -

image text in transcribedimage text in transcribed

QUESTION 2 10 points Q2(a) Explain the changes required to the class Student shown below to allow persistence to a delimited text file Student - studentID: integer studentaddress: String grade String > + Student () > + STudent student ID: integer, address: String, grade: String) + get studentID:integer + getAddress():String +geGrade: String + set studentNo( student ID integer) void + setAddress(address: String) void + setGrade(grade String) void + toString0 String Click Save and Submit to save and submit. Click Save All Answers to save all answers. Save All Answers Save an here to search SetGrade(grade. String) void + toString() String Explain the operation of the load () method given below with reference to the class diagram given in Q2 (a). Q2(b) [ Name of the array list - ArrayList student List; ] public void load(String filename) { try{ FileInputStream fin =new FileInputStream(filename); try ObjectInputStream objectInputStream =new ObjectInputStream(fin)) { studentList = (Student) objectInputStream readObject(); } } catch(IOException ClassNotFoundException ex){ System.out.println(ex); System.exit(0);}} Total Marks[10] Click Save and Submit to save and submit. Click Save All Answers to save all answers. Save All Answers Save and Submit le (19) ENG 10:13 AM IN 12/27/2020

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

Define power.

Answered: 1 week ago