Image

So I'm just learning Java and I already know C++. I know it's dumb but I'm confused about applets and classes. I read somewhere that every java program is a set of classes, but applets aren't classes and they're java programs. Also what exactly is the difference between them? Can't you put a paint method and drawLine in a class? Do you put import statements in classes?