How can I write a response? Look at what puzzles beginners in Java

Source: Internet
Author: User

There is also an external 'input' object in the response, response, and response'

 

Forum discussion: http://topic.csdn.net/u/20090820/09/a3a7f0bd-f23f-450e-b97c-067a94b4dc11.html

 

Java objects can be created in either of the following ways: New XX () and class. forname ("XX "). newinstance (). I am confused about this process.

To generate a class object, you must load two things into the memory, one is the class object, and the other is the class object before the class object is created. because Java is dynamically loaded (the static members of the class are cited
), So when the class is loaded, the following two methods are compared to the above: First: New
XX (), because the constructor method is also a static method, this method will call the constructor method, so the class will be loaded; Second: class. forname () first checks whether the class is added
Load. If not, the class is loaded. At this point, both classes are loaded.

My question is, when is the class Object loaded? Is it the same as the class object? (What I know now about the class object is that it is created in the. Java file, compiled and generated with the class name.
The same word. class file .) before or after a class is loaded, how can class objects be generated together with classes... I hope you can express your opinions more.

 

 

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.