What is output?
ItemList=new ItemList();
list.insertAtHead(15);
list.insertAtHead(10);
list.insertAtHead(12);
list.print();
What is output?
ItemList list = new ItemList ();
list.insertAtHead(15);
list.insertAtTail(10);
list.insertAtHead(12);
list.insertAtTail(17);
list.print();
Which is stored in static memory?
a.A local variable declared within a method
b.A class field defined only once
c.Code instructions
d.A newly created object.
Thank you !!!!
Get Answers For Free
Most questions answered within 1 hours.