Manage books, members and issue or return records.
Difficulty: Intermediate · Technology: Java, JDBC, MySQL
Features to build
- Book and member CRUD
- Issue and return flow
- Fine calculation
- Database persistence
Step-by-step build plan
- Design classes for Book, Member and Loan
- Create the database tables
- Build add, issue and return flows
- Calculate fines for late returns
- Add a simple report of overdue books
The part most people find hard
Preventing a book from being issued twice.
How to test it
Try issuing an unavailable book and check the error.
What to decide before you start
List the entities: books, members and loans, and the rules such as maximum books per member.
Questions an interviewer may ask about this project
- How do you connect with the database using JDBC?
- How do you calculate fines?
- How do you prevent two members borrowing the last copy?
Mistakes to watch for
Not closing database connections and ignoring edge cases such as returns after the due date.
Suggested extensions
Add user accounts, better error handling, automated tests and a README with screenshots. Each extension is a new talking point in interviews.
How to describe it on your resume
Implemented a Java library management system with JDBC and MySQL.
Portfolio tip
Deploy it, link both the live version and the code, and write two paragraphs about what you learned and what you would improve.