Pregunta de entrevista de DBS Bank

In Java 8, how does the stream works under the hood?