Java vs. C + + Object-oriented differences

Source: Internet
Author: User

What are the first object-oriented languages? JAVA, C + +, C #, and so on. But many people think that C # and C + + have a relationship, in fact, a little relationship is not drop. C # is Java-like, a lot of people say false Java, because C # and Java too similar to C # also has a string but his is lowercase, and Java is uppercase. If you have the basics of Java and learn C # then you will soon learn to get started. Because the Microsoft company he wants to make a software to build software, the business you want to tell him after the software generated, but this thought too far, a lot of things are semi-automatic is not to say you want to do it out, inside the idea too many changes inside too much. Microsoft can't do it, then he makes C # very easy to use, very simple. But C # He can't change the underlying code, not cross the platform, or look at the underlying code. Microsoft's idea was to make anything easier to use here, but he didn't do it.

Object-oriented language who first came out? The reality of C + + is then Java, although Java absorbs some of the experience of C + + but they come in different ways. Why is it? If you want to do research, algorithms, data then use C + +. If you want to do business application software then use Java. A lot of people will be his C + + and Java into an industry, many people will ask is C + + and Java who is better, this is completely wrong. The two of them are not in an industry, who is better then see what you have chosen. Although C + + can do what Java can do, but his advantages are not there very low efficiency, only Java is specifically developed application software. For example, if you get lost in the primeval forest, there is no way out for 10 days. The wolf will attack you at night, then if you do not have a tool, and do not bring anything to eat nothing, then you have to build tools to resist the wolf, to find food to survive. But if you bring your own food and weapons with you, then you don't have to build tools to find something to eat. Another example of opening a restaurant, if your table, stool, bowls, kitchenware and so on, what you have to build and not to buy, then if you want to do a business in the business of the software, you have to do all the things you have to build, made out of things you can not guarantee is first-class, can not guarantee is absolutely good. That's impossible. Things in real life he will slowly change the gradual upgrade, so that he has to have a special person to do. In this way, you can open a restaurant by yourself, so you can't open it for a year, it consumes time. But you open a restaurant, you buy everything from the outside. Everything is provided, so you may have to open a business in just one day.

So C + + and Java they spell the library, whose third-party library is the richest. Why many people buy Apple phone, very hot, not because of the price, but his application library development is very good, invited a lot of to participate in the development of applications. So there are many apps for Apple, there are games to play, and software for software. Why there are many, because he has a lot of developers in the inside development, so they spell is also a library. Android did not so he chose to use the Java language to develop, because Java has a lot of resources, a lot of developers will go inside to develop applications so as to stop the market like Apple. Why choose to use Java to do commercial application development, because Java Library A lot of, and the inside of the library are commercial, do it fast, and the quality definitely pass. But for C + + to do that, you have to manage memory issues and manage the hardware issues. Java and C + + are not in the same place, do not compare them with each other.

Technology sharing: www.kaige123.com

Java vs. C + + Object-oriented differences

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.