The shopping cart application is built using the concept of an abstract class of Java. The abstract class provides a wireframe structure for the new classes that are similar to the abstract class. HashMap and ArrayList are used to store the orders and display the orders of the customers.