1.

Which of the following is not a method of the ResourceFactory class?(a) createResource()(b) releaseResource()(c) shutdown()(d) freezeResource()I have been asked this question during an online interview.This interesting question is from Software Architecture topic in portion Software Defined Radio Architecture of Cognitive Radio

Answer»

Right choice is (d) freezeResource()

For explanation I would say: ResourceFactory class is USED when a Resource has to be EXPLICITLY created. The createResource() interface creates an instance of the desired Resource, the releaseResource() calls the releaseObject() interface, and shutdown() TERMINATES the ResourceFactory.



Discussion

No Comment Found

Related InterviewSolutions