What is the difference between stateful and stateless applications?

Technical