Thinking in Java (II)-control

Source: Internet
Author: User

Compared with C ++, Java is a more pure OOP language, and even an object itself

This sentence illustrates many problems...

Many problems that can be solved using process-oriented ideas in C ++ are also solved using object-oriented ideas in Java.

This is the rule of the Java World. It meets the commercial needs, and some things have to be sacrificed.

There are also some feature issues.

Wood has a pointer (actually a pointer to the basic type)

The use of reference is safer. This is what Java has always been pursuing.

Of course, it will be troublesome to operate things at the very bottom layer.

Java does not support small living space variables to mask large living space variables...

I personally do not like this usage in C ++.

Boolean cannot be replaced by non-Boolean

A configuration that is slightly inconvenient, but it has little impact.

Mainly increasedCodeThe readability also prevents some potential ambiguity.

Disable Operator Overloading

This reduces uncertainty and is not necessary.

Something flashy is decisively abandoned

Goto statements are shelved

Er... Considering the attack intensity of this word, I am still silent.

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.