201671010140.2016-2017-2 Java Program 16th Week of Java Learning

Source: Internet
Author: User
Tags java web

Java Learning Week 16th

this week to 13 chapters: "Deploy Java Application" to carry out classroom learning, in the teacher's mind traction, to this chapter of knowledge to learn, to the instance of the program running and annotation, compared to the book before the simple preview of knowledge, semi-knowledge and semi-solution, after class learning, The understanding of this part of the knowledge is also more thorough, especially in the jar file this part, feel mastered well, to the Java program to package into a jar file, how to do all have a further study, cognition, did not understand how to use Jar program to make Jar file, in the classroom classmate's demonstration, Also understand this part of the knowledge. The knowledge of encapsulation, attribute mapping and other aspects of the package in the jar file is well mastered, but it is difficult to understand the smattering of the applet and Java Web start.

        Summary of knowledge about applets in the blog Park: applet is a Java program. It is typically run inside a Java-enabled Web browser. Because it has full Java API support, the applet is a full-featured Java application. Each applet is a subclass of the Java.applet.Applet class, and the underlying applet class provides a method for invoking the derived class. To get the information and services of the browser context. The <applet> tag is a property of the underlying,<applet> tag that embeds an applet in an HTML file that specifies the applet class to run. Width and height are used to specify the initial size of the applet's run panel. Applets must be closed by using the </applet> tag.

    • The Applet class in Java inherits the Java.applet.Applet class.
    • The applet class does not define main (), so an applet program does not call the main () method.
    • Applets are designed to be embedded in an HTML page.
    • When the user browses to the HTML page containing the applet, the applet's code is downloaded to the user's machine.
    • A JVM is required to view an Applet. The JVM can be a plug-in for a Web browser, or a standalone runtime environment.
    • The JVM on the user's machine creates an instance of an applet class and invokes various methods in the applet life cycle process.
    • Applets have strict security rules enforced by WEB browsers, and the security mechanisms of applets are known as sandbox security.
    • Other classes required by the Applet can be downloaded in the form of a Java archive (JAR) file

And for the Java Web start this part of the Knowledge, blog Park in the explanation is also very confusing, but not as clear as the book, in the book and blog Park with the help of this part of the study can be more organized, this part of the content is more abstract, it's practice and no experience, so it is more difficult, The next chapter of the concurrency of knowledge is expected to be well received.

201671010140.2016-2017-2 Java Program 16th Week of Java learning

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.