Hepatitis A is spread mainly by fecal route. Hep B is blood borne and can be spread through sharing needles.
Thanks.