How to force a figure and a table to stay on the same page in LaTeX?

This question already has an answer here:

  • Get a table and figure on the same page with captions & labels

    3 answers

Solutions Collecting From Web of "How to force a figure and a table to stay on the same page in LaTeX?"