Question: JAVA Question need help for this question: 1. Calculate the length of this record. 2. Write a statement that positions the file pointer at the

JAVA Question

JAVA Question need help for this question: 1. Calculate the length of

need help for this question:

1. Calculate the length of this record.

2. Write a statement that positions the file pointer at the beginning of the record that has empID 20.

You have an object of the RandomAccessFile class named empRaf. It refers to a physical file that contains a company's employee records. Each employee record has: an int field named emplD which points to its location in the file a 20 character last name a 15 character first_name a hire date stored as an int a 3 character job code The emplD values begin at 1, but the first record in the file begins at byte O 1. Calculate the length of this record. 2. Write a statement that positions the file pointer at the beginning of the record that has emplD 20

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!