The primary difference between Java and J2EE is that while Java is a programming language, J2EE is a computing platform that is constructed upon Java, which is the programming language needed for the platform. A computing platform lets the developed software run, and J2EE supports pure HTML, as well as Java applets and applications.
It depends on Java server pages and servlet code to create HTML or other formatted data for the client. Enterprise Java Beans provides another area for the storage of the platform's logic. An EJB server, or Enterprise Java Beans, provides many functions such as threading, concurrency, security, and memory management, and these services are transparent to the author.