One way in which Hammurabi and Justinian are
similar is that they successfully
(1) established public education systems
(2) codified the laws of their empire
(3) instituted democratic governments
(4) separated church and state