With these questions, let's take a look at the advantages of Java.
1. Free!
Sun provides everything for developing Java applications for free, and you don't have to pay any royalties. Maybe you will wonder: Did the capitalists make money? In fact, Sun's income from Java is really small, far less than IBM and BEA, which monopolize Java application server technology, and it seems that it is suspected of making wedding clothes for others. In this regard, Scott McNealy, Chairman, President and CEO of Sun, explained: "Sun didn't make money in Java, just like he didn't pay taxes in English. Sun does not make money through Java itself, but applies Java to business. " It turned out to be a long-term fishing!
Compared with Java itself, Java API is a valuable free wealth. Want to use Socket to operate the network? It is in the API; Want to connect to the SQL database? It is in the API; Want to give the application a beautiful user interface? It is in the API; Want to work with digital graphics, play music, parse strings or create digital signatures? It's all in the API
Finally, Java has developed for so many years, and there are countless excellent Java tutorials and technical websites. Sun itself provides free tutorials, which are enough for self-study. You can download this tutorial at/docs/books/tutorial/information/download.html. Think in java, the masterpiece of Bruce Erker, is a must-read, and many enthusiasts even ponder it page by page like reading the Bible. You can download the electronic version of this book for free from the author's homepage. Machinery Industry Press has also introduced the Chinese translation of Taiwan Province technical writer Hou Jie, but it is not free.
Maybe you will ask, why do you want this Java cafe with so many excellent tutorials? Well, although those tutorials and technical articles are so excellent, they are not suitable for beginners. The purpose of Java Cafe is to help you lay the foundation of Java technology, master the main context of Java technology, and help you take the first step into the Java world!
2. Cross-platform
"Write once, run anywhere", Java system can run on different operating systems and hardware. With the continuous development of Linux and Mac OSX fully supporting Java technology, cross-platform features become more and more important.
Because Java is cross-platform, Java API is naturally platform-unified. For programmers, nothing is more gratifying than a unified API function. You already have a round wheel. Why did you invent the wheel from scratch? You can know its value by comparing Java API with C++ class library. C++ programmers with Windows programming experience must have experienced the days of being tortured by MFC (Microsoft Basic Course), with steep learning curve, unable to start production for several months, and high forgetting rate without contact for a period of time. It is said that even within Microsoft, no one wants to use it except MFC development team. Even if you are familiar with MFC and can successfully develop Windows applications, MFC is useless if you want to write a Linux application. You must learn a set of library functions developed by C++ under Linux. And UNIX, FreeBSD, Mac OS…… ....................... Can you learn? On the other hand, Java API, operating system, can be run anywhere as long as it is written once!
3. Received strong support from academic circles.
Because of its free, cross-platform and advanced technology, Java has become the preferred language for research, courses and calculation of many disciplines in colleges and universities, and it is generally encouraged to use Java to do computer homework. As far as I know, many postgraduate entrance examinations in Tsinghua of Peking University can be answered in Java. In fact, in most cases, using Java to accomplish these tasks is much simpler than using C or other languages. You can focus on the core parts such as algorithms and get higher scores.
Students who master Java technology generally have more job opportunities, and can take part-time jobs in their spare time to get higher pay, which not only reduces the burden on their families, but also allows them to enter the society and exercise as soon as possible. So, if you are still studying and learning Java, you must be right.
be simple
Compared with languages such as C++, Java is grammatically simple.
Thankfully, Java provides a garbage collection mechanism. In the past, in the development of C++, the most error-prone convenience was memory management, and the applied memory must be released after it is used up, otherwise the available memory resources will be less and less until the system resources are exhausted, leading to a crash. In the Java system, you can apply for memory at will, and the Java system will automatically release useless memory resources at an appropriate time. This magical mechanism is called "garbage collection", which saves a lot of debugging time.
In Java, it is not easy to write inferior code. On the one hand, garbage collection mechanism blocks the possibility of memory leakage, on the other hand, it is an exception capture mechanism, forcing you to prepare for the worst. When writing a program, you will inevitably encounter some accidents, such as the file can't be opened and the network reading fails. In languages such as C++, it is judged by the return value. It's really too much trouble to check the return value sentence by sentence. As a result, programmers habitually ignore the check of the return value and comfort themselves that everything will be fine. This has buried hidden dangers. In Java, Java methods can throw exceptions, and you must answer exceptions, even if you don't want to do anything. For example, when writing code to open a file, you should respond to exceptions to prevent accidents, otherwise the program will not compile at all. Take preventive measures to make Java system more robust.
5. Mature enterprise application platform
This is one of the two most active fields of Java technology at present. We have mentioned a lot in the introduction of Java technology, and here we only focus on the advantages that are closely related to us.
The enterprise application of Java technology aims at improving the competitiveness of enterprises, so Java technology is appreciated by enterprises and has the largest market share among similar technologies. At the same time, Java is open to standards, so there are many suppliers. There are many application servers, tools and components to choose from, from high-end commercial software such as BEA WebLogic and IBM WebSphere to open source free tools such as Tomcat and JBoss. As a beginner of Java technology, you can carry out self-training of Java enterprise applications without any cost. If you participate in the development of Java commercial projects in the future, you can seamlessly transplant the software to high-end commercial platforms. On the other hand, Net, it is impossible to teach yourself for free without piracy.
Finally, talk about Java and Web services. Web service is a milestone in the history of software interoperability, an important direction of technology development, and a technology that you must understand. Sun Company is the inventor of Java language. As an open cross-platform technology system, Java plays a very important role in the development of Web services. After Sun was accepted as a board member of WS-I, an organization that promotes the interaction of Web services, as an active participant and industry leader, it is of great significance to promote the interoperability of Web services, and it also adds a key weight to the gold content of Java technology.
6. Wireless applications
This is another most active field of Java technology at present, aiming at providing more and more convenient personalized services for Java mobile phone applications. In the next few years, there will be huge business opportunities and fierce competition between mobile communication operators and mobile device application software, and this trend is likely to interact with other developments such as e-government and e-commerce. The exclusiveness of Java in the mobile phone market and the openness and standardization of Java itself make more and more enterprises join the Java camp.
China is no exception. Dr James Gosling first came to China in 2003, and one of his important tasks was to form an alliance with China Unicom.
The story of yellow sugar
Father of Java? Dr. James Gosling
Dr James gosling is known as "the father of Java technology". He is the founder of Java technology. As an academician of Sun Research Institute, he personally designed the Java language and completed the original compiler and virtual machine of Java technology. Under his leadership, Java has become the standard programming mode of the Internet and the de facto standard for distributed enterprise applications, and its cross-platform technical advantages have brought epoch-making changes to network computing. At present, Dr. Gosling is actively engaged in the research of software development tools, in order to make the functions of software development tools more powerful, more convenient for developers to use and ensure the rapid completion of application and service development.
In fact, mobile game development is also a good career and opportunity, and there are many successful examples.
7. Open the Java community? Java community process, JCP
JCP is a hero who made Java famous. JCP has created an open forum where colleagues can exchange views, explore and define new platforms and work together. Java welcomes competition, because only in this way can we improve the technology in the field to the greatest extent, which is very different from rival Microsoft. Net technology. There are many actors on the stage of Java, and anyone can participate in the process to help Sun decide the development and future of Java and challenge his influence. As a result, you will find that new terms emerge one after another in the Java world, far ahead of the specification. On the stage of Microsoft. Net technology, you can only see one actor, and that is Microsoft itself.
8. Support from open source organizations or non-profit organizations
Is open source organization an anarchist's dream? There is no political system, no ownership, no freedom of speech and action, and it is only maintained by faith and selfless dedication that yearns for enjoyment and exchange. In the Java world, both open source organizations and non-profit organizations have developed to the extreme, and many excellent tools are from their hands. For example, JUnit, Cactus, Tomcat, Struts, JBoss, Eclipse, ANT, Xerces, Hibernate, Axis, AspectJ and many other tools will appear in our cafes and play an important role.
In the Java world, it is absolutely impossible to have a bargain without good goods. These tools have the same quality as commercial software, and many commercial ides also integrate these tools. For Java programmers, life will not only become easier, but more importantly, you can see hope and have the opportunity to contribute to everyone!
Verb (abbreviation of verb) abstract
Seeing this, if you can have the impulse to learn Java technology, I am also very satisfied. Choosing a language is difficult, you must make a choice. Even if you are a staunch fan of Microsoft technology, you are welcome to come and sit in this cafe for a while when you are free and lament the unique style of Java.