Answer: Hacking is the act of compromising digital devices to gain unauthorized access. Hackers are always on the lookout for weak spots in computer and internet security, with the exclusive motive of resolving these errors and improving the content's security.
Cracking is any kind of hacking that’s done for personal gain or other malicious reasons. Jailbreaking is a common example of cracking.
Basically " Hackers build, crackers break."