The behavior of the 5th Chapter object

Source: Internet
Author: User

1. All method calls are maintained in a structure called the call stack, and the currently executing method is at the top of the call stack. When the current method executes, it is removed from the top of the call stack, and the previous method in the stack is returned by the control process.

The 2.main () method is always at the bottom of the call stack.

3. If a Java program is a multithreaded application, it can have multiple call stacks.

4. When a method is executing, three cases (1) of the method return a value. (2) The method does not return a value. (3) method throws an exception to the caller of the method.

5. The process of copying data between method invocations is called call by value, and is the only option.

6. The only limitation caused by a value call is that the method cannot change the point of the reference.

7. In a large Java program, there can be many classes, but there must be only one class with the main () method.

8. The only time the constructor is called is when the object is instantiated. The constructor is similar to a method, but it is not a method.

9. Each class must have a constructor.

In the 10.Java class, once the class's definition explicitly defines one or more construction methods, the default construction method is no longer provided by the system.

11. Parameters: Variables that are used to receive externally-passed data when the method is invoked.

12. Arguments: Data that is actually passed to the function form parameter when the function is called.

13. Inside each member method, there is a this reference variable that points to the object that called the method.

14.java.lang----contains some of the core classes of the Java language, such as String, Math, Integer, System, and thread, to provide common functionality.

The 15.java.net----contains classes that perform network-related operations.

The 16.java.io----contains classes that can provide multiple input/output functions.

The 17.java.util----contains utility classes, such as defining system attributes and using functions related to date calendars.

The behavior of the 5th Chapter object

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.