Java
Java is a high-level programming language developed by Sun Microsystems. It was originally designed for developing programs for set-top boxes and handheld devices, but later became a popular choice for creating web applications.
Java 2 Enterprise Edition ( J2EE )
J2EE was proposed by Sun Microsystems (Now, Oracle) for developing and deploying multitier, distributed, enterprise scale business applications. Applications written for J2EE standards enjoy certain benefits such as portability, security, scalability, load-balancing, and reusability. Enterprise Edition (J2EE) builds on top of Java2 Standard Edition ( J2SE ) to provide the types of services that are necessary to build large scale, distributed, component based, multi-tier applications. In other words, J2EE is a collection of APIs which could be used to build such large-scale systems.