Java Learning Notes

Source: Internet
Author: User

Recently interested in Java, learned something, recorded some notes.

1. Compiled language explanatory language
Explanatory language does not produce a target program that can be executed directly
Compiling the new language will generate the corresponding machine code and target program

2. Java Reflection mechanism
3. Source code

Compile Intermediate Code OBJ

Connecting the consolidated obj file and library file to form an executable EXE file

Java Virtual machine Interpretation execution

4. Talk about the Session again

There is no definition for session sessions in the HTTP protocol, which is produced by various programming languages based on the stateless nature of the HTTP protocol. Its implementation is nothing more than a hash table on the server side, and the hash table key is the Cookie value passed to the browser named Jsessionid.

When you need to save a value to the session, the container performs the following steps:

A. Get the Jsessionid value, and if not, create a method that is request.getsession ().
B. The HttpSession object instance you get is the equivalent of a hash table where you can store data in the hash table (SetAttribute)
C. You can also get a value by getattribute

This Cookie, called Jsessionid, is automatically deleted when the browser is closed. Set the MaxAge value of the Cookie to 1 to achieve the effect that the browser turns off auto-delete.

First note these.

Java Learning Notes

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.