Introduction to Java Common class libraries (GO)

Source: Internet
Author: User

In the Java programming language, many classes have been developed for the convenience of learners, and these classes have been tested and are the basis of our programming. Without the use of these existing classes, our programming will become unusually complex and inefficient. So we should master the content of Java Basic Class library as much as possible. Classes in a class library belong to different packages according to their purpose.

1.java.lang Package Java.lang Package is the most commonly used in Java package, the program does not need to inject, you can use the class in the package, using the class in the package can design the most basic Java program.

The classes in the 2.JAVA.AWT package java.awt package provide a way to create graphical interfaces, including the creation and setting of buttons, text boxes, list boxes, containers, fonts, colors, and graphics.

3.javax.swing Package javax.swing Package for Java written graphical interface to provide the creation of classes, the use of Javax.swing package classes established interface elements can be adjusted to the interface style of various operating systems, support the development of various operating platform interface. In addition, the swing package also provides classes for tree controls, tab controls, and tabular controls. Many of the classes in the Java.swing package inherit from the class of the java.awt package, and Java retains the use of the java.awt package to maintain the compatibility of the technology, but use the javax.swing package as much as possible to develop the program interface.

The class of the 4.java.io package Java.io package provides the data flow mode of the system input and output control, file and object read-write serialization processing, the more commonly used classes include: Bufferinputstream, Bufferoutputstream, BufferedReader, BufferedWriter, DataInputStream, DataOutputStream, FileInputStream and FileOutputStream.

The 5.java.util Package Java.util package provides classes for creating complex data structures, such as time dates, random numbers, and lists, collections, hash tables, and stacks, and more common classes are: date, Timer, random, and LinkedList.

The 6.java.net Package java.net package provides support for network development, including a server ServerSocket class that encapsulates socket sockets, a client socket class, and a URL class that accesses various resources on the Internet.

7.java.applet Package Java.applet package has only one applet class, which is used to develop applet applets on the Web page, so that the Web page has stronger interactivity and multimedia and network functions.

The class libraries in these seven packages are the most basic and most commonly used in the Java programming language, and students must be proficient in mastering them. In order to improve the efficiency in the Java programming language learning, it is more efficient.

http://www.maiziedu.com/news/3427

Introduction to Java Common class libraries (GO)

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.