sol: An object will allocated statically when that object is needed for entire life time of that program 1)if object needs recusrion and storage of object conservly then it is stored in stack 2)f object needs dynamic storage then it should be allocated in heap Solution sol: An object will allocated statically when that object is needed for entire life time of that program 1)if object needs recusrion and storage of object conservly then it is stored in stack 2)f object needs dynamic storage then it should be allocated in heap.