301 Redirect is a permanent redirect that pass between 90 to 99 percent of the link juice (link juice is called the power of ranking) to the redirected page.
On the other hand, 404 redirect is one of the most easiest as well as effective ways to fix the 404 errors from the perspective of SEO, which is used a 301 redirect. They are interconnected with each other.