Set It is the child interface of collection. If insertion order is not required & duplicate objects are not allowed. Then we should go for set interface. Set interface doesn’t contain any new method, hence we have to use only collection interface method. * image * Constructor HasSet h = new […]
Day: December 29, 2018
Stack
Stack It is the child class of vector & contains only or constructor. Stack s =new stack () Method of stack:- Object push ( object o ) // for inserting an object Object pop ( object o ) // remove &returns top of the stack Object Peek () // returns top of the stack with […]