Understanding executor role in an HTTP server setup

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Consider the following Java code snippet that sets up an HTTP Server and a custom Executor. What's the function of

ExecutorService executor = Executors.newSingleThreadExecutor();
server.setExecutor(executor);
in the context of this server and how does it compare with server.setExecutor(null)?
Select one or more options from the list

Create a free account to access the full topic