2.Shape:packagecom.test;publicinterfaceShape{publicdoublearea();publicdoubleperimeter();}Circle:packagecom.test;publicclassCircleimplementsShape{doubler=5;doublepi=3.14;@Overridepublicdoublearea(){returnpi*r*r;}@Overridepublicdoubleperimeter(){return2*p···