Answer:
A,B,C -NO
D-Value type like int,char..
E.pop
D. it throws null exception
Step-by-step explanation:
(A,B,C)There is no functional difference but as the values passed to the parameterized constructor is different so you will get different outputs but functionality of the class didn't change
(D) stack is a data structure which stores value types where as heap stores object types.In.stack actual value of the variable stored and heap address of the object stored
(E)the top operation on stack is always pop once we inserted the elements in a stack.if there are no elements in stack pop results null
(D) if the string we passed is null or empty to the test method it returns exception we need to handle that