Analysis of the difference between Java and javax

Source: Internet
Author: User

Java is a programming language that is influenced by the C language. Java and javax are essentially packages that are used in conjunction with the context of the Java programming language. There is actually no difference between Java and javax. It's just a different name.

Java is a programming language that is influenced by the C language. It originates from most of the syntax of C and C + +, but it has fewer low-level facilities than any of them. Java is a general-purpose programming language designed to have fewer implementation dependencies than previous languages. It is a concurrent, class-based, object-oriented language.

Java was developed by Sun Microsystems James Gosling and released in 1995. It was originally released as a core component of the Sun Microsystems Java platform.

Java is designed to allow the same code to run on a variety of platforms. that is, the developer is allowed to "write once, run Anywhere" (Wora). as a result, Java applications are typically compiled into bytecode. You can then run a class file that contains Java bytecode on any Java Virtual machine (JVM). This is independent of the computer architecture.

Java and javax are essentially packages that are used in conjunction with the context of the Java programming language. the command to present the Java package is import Java, and the command to start the Javax package is import javax. For example: Import java.util. *; or import javax.util. *;

It turns out that all content that is part of the standard API is part of the Java package, and not all content that is part of the standard API is published under package name javax. Therefore, the package required by the API is Java, and Javax contains the extension of the API. It can even be said that Javax, just a Java with X, represents the extension.

Over time, the extensions released as Javax become part of the Java API. However, moving the extension from the Javax package to the Java package will be too cumbersome and will eventually break a heap of existing code. Therefore, the final decision Javax package will become part of the standard API.

So, there's actually no difference between Java and javax. It's all a name.

Above turn from (Google Translate): Http://www.differencebetween.info/difference-between-java-and-javax

Summarize:

1, through the above explanation can be very clear know javax is also a standard API part, and not all represents the extension of the meaning, and for the online said Javax represents the Java EE this part, in fact, this is the name of the film, it should be said that the problem is more suitable for the history left.

Reference:

Https://stackoverflow.com/questions/727844/javax-vs-java-package

Https://stackoverflow.com/questions/9502962/some-basic-questions-about-javax-vs-java-packages

Analysis of the difference between Java and javax (RPM)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.