Billy Sclater wrote:I was advised to 'close' the scanner in a finally block after use. But wouldn't the scanner close once the try block exits?
Billy Sclater wrote:#1 Should I make another FileReader class -:OrderFileReader(?), or just use the DataFileReader class that I already have to do that, and just rename it?
#2 Same question about making another interface and class to implement it for the Order table.
Should I just use the interface and PersonDaoImpl class to do that (and just rename them)?
Or should I make a special seperate interface and class for the Order table?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Billy Sclater wrote:I just have a question about the validateData method. Should I leave it as it is? Or should I convert the logic into a custom exception?
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2