Stream.concat() method is used to merge two streams into one stream which consist of all elements of both merged streams.