Why does the Java Pet Store Demo have so many lines of code?
A. The Java Pet Store Demo is designed to provide as much sample code as possible for the key aspects of the latest release of the J2EE platform. We deliberately added more code to create a flexible architecture that is fully object-oriented. We were trying to show off concepts and design patterns of Java Enterprise BluePrints, and hence there is more code. Our goal is to offer the developer community a well designed sample application. Also, it is widely accepted that the number of lines of code is a poor metric for measuring either developer productivity or ease of future maintenance.