J2SE vs J2EE
Java is one of the most widely used object oriented programming languages, which is used from software development to web development today. It is a general purpose and concurrent programming language. It was originally developed by Sun Microsystems in 1995. James Gosling is the father of the Java programming language. Oracle Corporation now owns Java (after buying Sun Microsystems recently). Java is a strongly typed language that supports a range of platforms from Windows to UNIX. Java is licensed under GNU General Public License. Since it initial release in 1995 (Java 1.0) it has grown and become the dominant development language for developing web-based applications. J2SE is the Java 2 Platform Standard Edition, which provides the set of basic classes and APIs. Java 6 is its current stable release. J2EE is Java 2 Platform Enterprise Edition, which provides advanced technologies and APIs built on top of the functionality provided by J2SE. Developers of Java changed names of all the editions recently, and now J2SE and J2EE are known as Java SE and Java EE respectively.
什么是J2SE?
J2SE is a collection of basic Java classes and APIs. Its latest version Java 6 (also known as Java Standard Edition 6.0 or Java SE 6 or Java 1.6), codenamed Mustang, was released in December, 2006. Current revision is the Update 26, which was released on June, 2011. It has 3700+ classes and interfaces. It focuses on new specifications and APIs including XML, Web Services, JDBC version 4.0, programming based on Annotations, API’s for Java compiler and Application client GUI. This was on top of already existing features like Annotations, Generics and Autoboxing. Annotations are a mechanism for tagging classes with metadata so that they can be used by metadata-aware programs. Generics is a mechanism of specifying types for objects belonging to collections such as Arraylists, so that type safety is guaranteed at compile time. Autoboxing allows the automatic conversions between primitive types (e.g. int) and wrapper types (e.g. Integer). Also, the support for older versions of Windows (Win9x series) was removed starting from the Update 7.
J2EE是什么?
J2EEprovides a server programming platform in Java. J2EE adds functionality (libraries) for the deployment of distributed and multi-tier java applications running on application servers. Current version of J2EE is Java EE 6. JDBC (Java Database Connectivity), RMI (Remote Method Invocation), JMS (Java Message Service), web services and XML are some of the specifications offered by Java EE. Furthermore, specifications unique to Java EE such as Enterprise JavaBeans (EJB), Connecters, Servlets, portlets, Java Server Pages (JSP) are also offered. The aim of this is to allow programmers to develop application with high scalability and portability. Java EE developers can focus on business logic (instead of infrastructure/integration) because the application servers will take care of transactions, security and concurrency.
What is the difference between J2SE and J2EE?
J2SE是基本类和API的集合,可为开发标准Java应用程序提供基本功能(Java语言,虚拟机和基础库),而J2EE提供了用于开发多层企业应用程序的技术和API的集合。换句话说,J2SE用于开发作为独立桌面程序或小程序执行的应用程序,但是J2EE通常用于编写在J2EE容器中执行的应用程序。J2EE具有J2SE的所有功能。但是,它具有其他功能,例如EJB,JSP,Servelts和XML技术。它还包括检查应用程序与支持J2EE的现有应用程序的合规性的测试。
发表评论