quiz
quiz copied to clipboard
Changes made:
Defined magic hex number (0x80) as a constant and used it. Made public methods final to allow a better design and prevent classes overriding the default behaviour. File reading/writing was not thread-safe, used synchronized blocks to do operations safely on file arguments. JVM String pool would be potentially polluted with unnecessary String creations in the original code, used StringBuilder instead.