A picture tells you to learn Java or python!

Source: Internet
Author: User
Tags in python

Source: AI Technology Base camp (id:rgznai100)

This article length is 800 Words , suggest reading 3 minutes

This article is for you to parse the differences between Java and Python.


Java and Python have always been two very powerful programming languages, for those of you who have just started to learn programming, the question that will confuse and most often asks is whether I should learn Java or Python, if Python is easy to learn, or what programming language to learn first, and so on. As a Java programmer, you will certainly be advised to learn Java first and then learn python, but if you ask a Python programmer, you may get a completely different answer. At the same time, Python is no longer a brat, it has grown and the mainstream programming language, like java,c++ some of the fight. When you first touch python, you'll find it a scripting language, but it turns out to be a misunderstanding. You can also do object-oriented programming in Python.


For beginners, choose an attractive language with strong community support to learn. Now that Java and Python are satisfying, even after doing some great analysis, it's still hard to tell which language to learn. Thankfully, we have information graphics that point to some important differences between Python and Java.


a picture tells you. Different points of Python and Java



From the chart, you can easily see that Java is verbose than Python. Reading a file in Java will write 10 lines of code, while in Python it's just two lines. This is the advantage of Python, because many novice programmers will like to write very little code, the 2nd is about static variables, dynamic variables, you need a strong type of language and rigorous compiler to detect two of the code. In Java, you don't see that you're going to save an integer variable in a string variable. Execution speed is the lifeblood of enterprise applications, you can see Java faster than Python, but remember, you need to compile to run Java programs, and Python programs don't compile to run directly.


The Python console can directly interpret the Python command, which means it will be simpler for the novice. So now Python and Java 2:2 are even. Although you'll also see that in Java, Hello World needs more lines of code than Python, but eventually you'll find that they have the same ability, no one is bad. Of course, you never regret learning Java as a programming language for your career. But at the same time, you can learn Python at any time, which is also very useful for writing small sets of tools.


Finally, whatever programming language you choose, go and enjoy the code.


Proofreading: the more Hongschu

in order to ensure the quality of the dispatch, establish Word-of-mouth, data is now set up "Wrong antonyms Fund " to encourage positive error correction by readers .

If you find any errors during the reading of the article, please message at the end of the article , or to Background Feedback , the data will be sent to the prosecutor-reader after confirmation by the small series 8.8 dollars Red Envelopes .

the same reader points out that the same article has many mistakes and the bonus is unchanged. Different readers point to the same mistake and reward the first reader.

Thank you for your attention and support, I hope you will be able to monitor the output of the data sent more quality content.

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.