Continuing with the next best hand after a full house:

A   B  
       

Here you have four of a kind, also known as quads. This is a hand you will rarely see in poker.

In the very rare occurrence of two players having four of a kind, it is the player with the highest four of a kind who wins. Therefore hand B (four Queens) beats hand A (four Tens).


Continuing with the next best hand after four of a kind:

A   B  
       

Here you have a straight flush. This is the highest hand in the poker rankings. With a straight flush, you have five consecutive cards of the same suit.

Here hand A (Ace high straight flush) beats hand B (Jack high straight flush).

Hand A is also known as a Royal Flush. This is the highest possible hand in poker.

Note that an Ace can also be low to make a straight flush. Therefore 5-4-3-2-A of spades is a valid straight flush. (Q-K-A-2-3 of spades isn't a straight flush; it's just a regular flush - five of the same suit.)

Remember that suits have no ranking. A royal flush in spades and a royal flush in hearts are equal and would share the pot.