3 Replies - 77572 Views - Last Post: 16 April 2009 - 05:11 PM

J2SE vs J2EE, what are main differences ?

Posted 16 April 2009 - 12:54 AM

Hi there,

I have been working J2SE , for all the homework I had in university, but I have tried once J2EE, after reading, till now I can not tell what it is the difference between both, when to use that and when to use the other one ,
shall one of them is better than the other!, shall they differ with in the implementation ?, or may be differ in what possibly they can offer,

if I know J2SE what would be needed to move towards the J2EE,

I know that it is for Enterprise , but still can not get why not J2SE,

Re: J2SE vs J2EE, what are main differences ?

As far as the language goes it is not as though java changes. J2EE has access to all of the SE libraries. However EE adds a set of libraries for dealing with enterprise applications.

J2EE is more like a "platform" or an general area of development.

In Java SE you write applications that run as standalone java programs or as Applets. In JavaEE you can still do this, but you can also write applications that run inside of a J2EE container. The container can do a great amount of management for you such as scaling an application across threads, providing resource pools, and management features.

J2EE has a web framework based upon Servlets. It has JSP (Java Server Pages) which is a templating language that compiles from JSP to a Java servlet where it can be run by the container.

So JavaEE is more or less JavaSE + Enterprise platform technologies.

JavaEE is far more than just a couple of extra libraries (that is what I thought when I first looked at it) since there are a ton of frameworks and technologies built upon the J2EE specifications.