Current location - Education and Training Encyclopedia - Education and training - Which is better, java or php?
Which is better, java or php?
1, java and php technology comparison: java is purely object-oriented development, with powerful functions and many branches, and it is impossible without java. C/S or b/s, in terms of function, no language can be compared with java. But its advantages are also its disadvantages. Please refer to point 6 for details. PHP is a rising star, absorbing the advantages of java, C and perl, and focusing on the Internet field. PHP in the WEB field has unique advantages, and no language in the WEB field can compare with it. Compared with the two, basically java wins. But in fact, there is not much comparability, and the areas of concern are different. Take the WEB for example. You can do both, and PHP wins.

Comparison of market share between 2.java and php: java language is ancient and has developed for many years, and it has a place in both C/S and B/S fields, especially in telecommunications and banking. However, with the change of social demand and the attention of other languages, the java market is being eroded. The WEB domain is almost dominated by PHP, the embedded domain is almost dominated by C++, and the client domain is almost dominated by C language. If it weren't for the emergence of Android, the fate of java would be hard to say. The huge java empire accumulated before will not collapse at once, there must be a process. So now you don't need to worry about its future. What you need to worry about now is the talented Java people who have emerged in the past decade and a large number of colleagues who are entering the Java camp. The description of PHP in the market is relatively simple, because we only need to look at one field, that is, the web field. The market of php in the WEB field is over 80%, and the rest are java-JSP, asp and C#. NET, python, ruby and so on. 395 of the top 500 websites use PHP. The two largest websites in the world, facebook and Sina Weibo, both use PHP. Compared with the two, it is even.

3. Compared with Android, the development space of java and PHP is very strong, but the number of apps installed on mobile phones is limited and it is difficult to promote, which is also the biggest challenge facing apps. Fortunately, only JAVA can do Android, and HTML5 is another one. China's population accounts for 19.7% of the global population, China's netizens account for 22.4% of the global netizens, and China's websites account for 0.5% of the global websites, so there is huge room for website development. In developed countries, the contribution of Internet to GDP can reach 20%, while that of China is only 3%. It can be said that the development space of the Internet is huge, and the Internet cannot be separated from the WEB, and the WEB cannot be separated from PHP. Compared with the two, I personally feel that the advantages of PHP are more obvious.

4, java and PHP salary comparison salary is determined by the relationship between supply and demand. Lack of talents, naturally high wages, saturated talents, naturally low wages. JAVA Because universities basically have this course, many people want to engage in the software industry and naturally learn Java. Coupled with the popularity of java in the past 65,438+00 years, the whole java industry is in a state of oversupply. Nanjing: A java training class for 30 people, almost 10 people can't find the ideal job and change careers. The minimum wage even exceeds 1000 yuan, and some people are willing to do it. Of course, if you learn java well, you will get a salary of more than 4,000 yuan. PHP is completely driven by the market. The difficulty is that many people don't understand PHP and there is no way to understand it. The fundamental reason is that the university does not have this course. As far as I know, only Xiaozhuang College in Nanjing offers PHP courses, and it is not a major. The demand for PHP in the market is not clear, and universities are more willing to push java that conforms to the characteristics of the discipline. Few people study php, and enterprises need more, which leads to the salary of PHP far exceeding that of peers. The general starting salary is not less than 3000 yuan. The height of Nanjing has already exceeded 4500 yuan. Beishangguang has exceeded the starting salary of 6000 yuan. Compared with the two: except java, it is very difficult to find a job, but as long as you find a job, the high-level JAVA is similar, and the low-level Java is obviously at a disadvantage.

Comparison of salary increase rates between 5.java and php: java is recognized as difficult to get started. It takes at least 1-2 years to really get started, and during this period, it belongs to the apprenticeship level, and the salary increase is limited. There will be a big increase after two years, and it is basically no problem to get 6-7 thousand. PHP is recognized as simple and quick to get started. After the probation period, you can get a raise. PHPer generally gets a salary increase every six months, and the range for the first three years is ok. 1 5-6 thousand yuan a year and 7-8 thousand yuan in two years. There are also many people who can exceed 10 thousand in three years. Compared with the two: in fact, the advantages of php front-end are obvious, and the areas on both sides are flat in the later period. Unlike many people who say that it is difficult to rise behind PHP, PHP is short of people, but it is even less skilled. Java does not have the high salary that many people boast, and the two levels of differentiation are serious. Actually, it's normal. The more difficult the language is, the more polarized it is.

The bottleneck of the development of 6.java and php respectively: JavaEE system once dominated the development of enterprise-level software for several decades, and talents came forth in large numbers in recent ten years, but the Java language itself is becoming more and more bloated and split. Using Java is an expensive choice, complicated requirements design, slow project progress, expensive application server and difficult maintenance, which makes Java a language above the temple. The split version also makes the so-called cross-platform function an empty talk. The characteristics of java make it unsuitable for Internet enterprises whose business changes rapidly with the market. The WEB domain is almost dominated by PHP, the embedded domain is almost dominated by C++, and the client domain is almost dominated by C language. If it weren't for the emergence of Android, the fate of Java is really hard to say. Using php to develop large and medium-sized systems is convenient and quick, which java can't compare with ASP.NET. There are many powerful frameworks in php, such as yaf, yii, ci, etc. For the development of small and medium-sized general systems, a thinkphp is enough to kill java's ssh three frameworks. Because of its simplicity and rapid development, PHP also makes it a bit difficult to develop complex applications. The so-called success is also Xiao He's failure. Because PHP pays attention to the application level and basically does not need to consider the underlying things, it has developed rapidly and its learning is very simple. However, this has also led to the bottleneck of learning PHP for a period of time. After version 5.3, PHP has added more powerful extensions, which can realize functions that PHP itself can't. Therefore, PHP development has encountered such a bottleneck, which can be solved by extension. Facebook and weibo.com are using extensive extensions to deal with one problem after another. Hui, the architect and chief PHP technical consultant of Sina Weibo, has been focusing on the research and sharing of the underlying principles of PHP. Extension is what he thinks is the greatest place of PHP.

Comparison of the number of jobs in 7.java and PHP: Let's take a look at Baidu's statistics from 2065438+early September 2004: 2065438+early September 2004, the number of java recruitment jobs nationwide was 82703.

2065438+At the beginning of September 2004, there were 47263 PHP posts in China.

The number of jobs in java is almost less than twice that in PHP. But it is worth pondering that the number of talents in java is more than 100 of that in PHP.

Comparison of learning costs between 8.java and PHP: java learning is recognized as difficult. It is difficult to get started, but difficult to understand. The time cost of self-study is 12 months, the success rate of self-study is less than 10%, and the time cost of training is nearly 6 months. The average cost of training fees is about 15000 yuan. The time cost of becoming a master is 2 years. The time cost of becoming a master is generally more than 5 years. PHP learning is recognized as the simplest language. Interpretative language, without compilation. The cost of self-study time is 6 months, the success rate of self-study is 20%, and the cost of training time is 3 months. The average training cost is about 8000 yuan. The time cost of becoming a master is 1 year. The time cost of becoming a master is generally more than 3 years. Compared with the two, the school cost of java is obviously higher than that of PHP.

9 To sum up: java and PHP have their own advantages, and they may not be finished tomorrow morning. What I want to say is that you can learn any one. If you want to learn java, you must engage in the Android industry. If you want to work in the WEB field, you should learn PHP. Because java learning is difficult, students with no foundation or poor foundation should choose carefully, and PHP may be more suitable for students with zero foundation.