Java is a object-oriented program its a complete programming language. It derives much of its syntax from C and C++.
Java was developed by James Gosling at Sun Microsystems and was released in 1995.Its a platform Independent,Open Source.
J2EE is a platform for building server-side application .J2EE (or just "JEE" now) is Java Enterprise Edition, which consists of core Java with a powerful set of libraries. These libraries are mostly useful if the applications you're developing have to be multi-tiered, fault-tolerant and/or distributed, running on application servers.