Plug-and-play refers to the ability for the operating system to automatically detect and configure a device (like a camera). Correct answer: C
This feature of a computer system allows an electronic device to be used as soon as it is connected to a computer. This means that drivers for the device do not have to be manually installed. In a plug-and-play solution the computer automatically recognizes the device, loads new drivers for the hardware if needed, and begins to work with the newly connected device.
The following code is written in Java. I created both versions of the program that was described in the question. The outputs can be seen in the attached images below. Both versions are attached as txt files below as well.