1.

To implement a custom URL protocol handler, the URL method __________ is called.(a) setURLStreamHandlerFactory(b) setURLStreamFactory(c) setURLStreamHandlerFactorySetting(d) setStreamHandlerFactoryI got this question in a job interview.I would like to ask this question from Comparing Stubs, Mock Objects and In-container Testing in section In-container Testing of JUnit

Answer»

Right option is (a) SETURLSTREAMHANDLERFACTORY

Explanation: A CUSTOM URLStreamHandlerFactory is passed to the setURLStreamHandlerFactory method.



Discussion

No Comment Found

Related InterviewSolutions