What are the tools commonly used in Java programming?

Source: Internet
Author: User

In today's Internet Information development era, IT industry has become one of the hot industry development, the teacher of the education has said that Java has become the mainstream of the current, for Java programming we often will be common in some of the commonly used tools, the following small series will take you to understand it:

1.serviceloader-Loading service is mainly to get all the implementation of the interface with Ali

Java developers often want to differentiate between the use and creation of components, typically by creating an interface that describes component actions and creating a component instance using some kind of mediation.

2.SCanner

There are countless Java tools that can help you build parsers, and many function languages have successfully built parser libraries (parser selectors). But what if you're parsing a comma-separated value file, or a space-delimited text file? Most of the tools used here are too grand, and String.Split () is not enough. (For regular expressions, remember an old saying: "You have a problem with regular expressions.) Then you have two questions. ”)

3.Timer

The Java.util.Timer and TimerTask classes provide a convenient, relatively simple way to perform tasks on a regular or one-time delay basis.

4.stax-parsing an XML file

When XML first appears in front of many Java developers, there are two basic ways to parse an XML file. The SAX parser is actually a large state machine in which programmers invoke a series of callback methods on events. The DOM parser joins the entire XML document into memory and cuts it into discrete objects that join together to form a tree. The tree describes the entire xmlinfoset notation for the document. Both parsers have drawbacks: Sax is too low-level, unusable, Dom is too expensive, especially for large XML files-the entire tree becomes a behemoth.

More luckly, Java developers find a third way to parse XML files by modeling them as "nodes" that can be checked out one at a time from the document stream, then processed or discarded. The "streams" of these "nodes" provide the middle of the sax and Dom, called "Streamingapiforxml", or Stax. (this abbreviation is used to differentiate between the new API and the original SAX parser, which has the same name.) The Stax parser was later packaged into the JDK in the Javax.xml.stream package.

The above is commonly used in Java programming some development tools, want to learn people can review a lot, for everyone's Java learning should also have some help

What are the tools commonly used in Java programming?

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.