belowwe show the output from the above arraystack program note thatthrough the use of generic typeswe are able to create an arraystack for storing integers and another arraystack that stores character strings new arraystack areturns null resultsize isempty truestack[ push( )returns null resultsize isempty falsestack[ pop()returns resultsize isempty truestack[ push( )returns null resultsize isempty falsestack[ pop()returns resultsize isempty truestack[new arraystack breturns null resultsize isempty truestack[ push("bob")returns null resultsize isempty falsestack[bobb push("alice")returns null resultsize isempty falsestack[bobaliceb pop()returns alice resultsize isempty falsestack[bobb push("eve")returns null resultsize isempty falsestack[bobevea drawback with the array-based stack implementation