In non-floating environments, removing the line breaks between the caption and the `\tabular` will keep the caption and the table on the same page.
In non-floating environments, removing the line breaks between the caption and the
\tabularwill keep the caption and the table on the same page.