Is it faster to learn python if you know java?

(*-*)浩
Release: 2019-06-20 10:44:08
Original
4971 people have browsed it

Answer to this question: Learning Java is more difficult than Python. It is much easier to learn Java and then Python. After learning Python and then wanting to learn Java, it is not much different from learning a new language.

Is it faster to learn python if you know java?

Finally, there is one thing I need to say about these two languages ​​separately. Before deciding to learn, we must understand that Java and Python their respective positioning. (Recommended learning: Python video tutorial)

Java originated from the technical system of C and C. It was launched in 1995 and is positioned for specialized programmers to design large-scale complex distributed applications. design. Python was launched in 1991 (earlier than Java) and is mainly targeted at system management, scientific research, education and non-programmer groups. Everyone must understand the reality. Programmers are not the only ones who need to write programs in this world. There are many groups who need to write programs. What I mean by this is that you need to understand what you will use to learn a programming language in the end?

Java and Python have always been two very popular and powerful programming languages. For students who are just starting to learn programming, the question they often ask is, should I learn Java or Python? Is Python easy to learn, or what programming language should I learn first, etc. As a Java programmer, you will definitely be advised to learn Java first and then Python, but if you ask a Python programmer, you may get a completely opposite answer. At the same time, Python is no longer a young kid. It has grown up and competes with mainstream programming languages ​​such as Java and C. When I first came into contact with Python, I thought it was a scripting language, but later I found out that this was a misunderstanding. You can also do object-oriented programming in Python.

Reading a file in Java requires 10 lines of code, but in Python it only takes two lines. This is an advantage of Python, because many novice programmers will like to write very little code. The second point is about static variables and dynamic variables. You need a strongly typed language and a rigorous compiler to detect code that makes mistakes. In Java, you won't see an integer variable stored next to a string variable. Execution speed is the lifeblood of enterprise-level applications. You can see that Java is faster than Python, but remember that you need to compile to run a Java program, while a Python program can be run directly without compilation.

The Python console can directly interpret python commands, which means it will be easier for novices! So now Python and Java are even at 2:2.

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of Is it faster to learn python if you know java?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!