There is no functional difference. In the first case, you add rows StringBuilderin the same order in three operations. In the second case, you add the same lines to the same StringBuilderin the same statement.
There will be no noticeable difference in performance and absolutely no noticeable difference. You can choose one or the other stylistically.
source
share