My Android Learning experience 35

Source: Internet
Author: User

These days again the basic knowledge of Android all over again, not the first time so difficult, feel a lot of simple, also found a lot of detail problems, found themselves in the network programming shortcomings.

Here are some small detail questions:

The difference between the three 1.string,stringbuilder,stringbuffer

String is the operation of a string of characters, which belongs to an immutable class. Once created, he cannot be modified, and the modification of an existing string object is to recreate an object and then save the new value in. Final class, cannot be inherited.

StringBuffer is the manipulation of a string of characters, which is a mutable class that can only be created by constructors, to be assigned by means of the Appen () method.

StringBuilder is a mutable class that is not thread-safe compared to stringbuffer, and is typically used when a single thread is operating.

The difference between 2.int and Inerger

int is the basic data type.

Integer is its wrapper class, more convenient to interact with, for example, type conversion.

3. Open threads are not allowed in broadcast receivers

4. Breakpoint Explanation:

The simple explanation is to tell the compiler to stop at that point to make it easier for the user to see the current situation.

Press F5 to step through F6 progressive execution Press F8 to skip this breakpoint

My Android Learning experience 35

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.