Although the Java technology is so tempting and the foreground seems very bright, is it already a widely used and successful language, such as C, C + +? Microsoft is not aggressively promoting them. NET technology? Are the artificial intelligence languages such as LISP, Prolog and so on in the financial field of North America and Europe not also a big application? Is it a wise choice to learn Java programming?
With these questions, let's look at the advantages of Java.
1. Free!
Sun provides everything you need to develop Java applications for free, and you don't have to pay any royalties. Maybe you'll be skeptical: capitalists are doing communist? In fact, Sun's benefits in Java are really small, far more than IBM and BEA, which monopolize Java Application Server technology, seem to be making wedding clothes for others. In this respect, Sun Chairman, president and chief Executive Officer Scott McNealy explained: "Sun does not use Java to make money, this is like using English without taxes, sun does not use Java itself to profit, but to apply Java to the business." "The original is long leash there!"
Java APIs are a valuable and free asset compared to Java itself. Want to use socket operation network? In the API, want to connect to the SQL database? API, and want to give the application a nice user interface? 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, excellent Java tutorials, technology sites countless. Sun itself offers free tutorials, enough for self-study. You can download this tutorial in http://java.sun.com/docs/books/tutorial/information/download.html. Bruce Eckel Master's Masterpiece Java Programming ideas (thinking in Java) is a great book to read, and many enthusiasts even think of it as a Bible page. You can download the electronic version of this book for free at the author's homepage http://www.BruceEckel.com. The machinery industry press has also introduced a Chinese version of the Taiwanese technology writer Hou Jie, but it is not free.
Perhaps you would ask, with so many excellent tutorials, what are you doing in this Java café? Well, while those tutorials and technical articles are so good, they're not for beginners. The purpose of the Java Café is to help you lay the groundwork for Java technology, master the main threads of Java technology, and help you take the first step into the Java world!
2. Cross-platform
"Write once, run anywhere," the Java system can run on different operating systems and hardware. As Linux continues to grow and Mac OS X fully supports Java technology, Cross-platform features become more and more weighty.
Because Java is cross-platform, the Java API is naturally platform-unified. For programmers, there is no more comforting than a unified API function--there's a round wheel, so why invent the wheel from scratch? We can see the value of Java APIs compared to C + + class libraries. C + + programmers with experience in Windows programming must have experienced the days of being tortured by MFC (Microsoft Foundation Classes, Microsoft Base class), the steep learning curve, the inability to start production for a few months, and the high rate of forgetfulness over time. It is said that even within Microsoft, no one is willing to use it except for the MFC development team. Even if you are familiar with MFC, can successfully develop Windows applications, if you want to write a Linux application, MFC is not useful, you have to learn Linux under the C + + development of a set of library functions. There are also Unix, FreeBSD, Mac OS ... Did you learn to come? Anti-Java API, operating system, you love who is who, as long as the writing can be run anywhere!
3. Strong support has been gained in academia
Because of the free, Cross-platform, Java language itself technologically advanced, in colleges and universities, Java has become a number of subject research, curriculum and calculation of the preferred language, with Java to do on the machine, is generally encouraged. As far as I know, the postgraduate entrance examination of many faculties of Peking University and Tsinghua can be answered in the Java language. In fact, using Java to do this is much simpler than using C or other languages, and you can focus on the core parts of the algorithm to get a higher score.
Master Java Technology students generally have more job opportunities after school part-time, get a higher pay, not only to reduce the burden of the family, but also allow themselves to enter the social exercise as soon as possible. So, if you are still studying, learning Java, you must be right.
4. Simple
Syntax Java is simple compared to languages like C + +.
Thankfully, Java provides a garbage collection mechanism. In the past, the development of C + +, the most easily wrong place is memory management, the application of the memory must be released after use, otherwise can use less memory resources, until the exhaustion of system resources and cause panic. In the Java system, you can apply any memory, and the Java system will automatically release the unused memory resources when appropriate. This magical mechanism called "garbage collection" saves a lot of time for debugging errors.
In Java, it's not easy to write poorly coded code. On the one hand, the garbage collection mechanism blocked the possibility of memory leaks, on the other hand, the exception capture mechanism, it forced you to do the worst. When you write a program, you will inevitably encounter some unexpected, such as file can not open, network read failure and other special circumstances. In C + + and other languages are based on the return value to judge, if a sentence to check the return value, it is too much trouble. As a result, programmers habitually ignore the return value of the check and comfort themselves that everything will be okay. This will bury the hidden danger. In Java, Java methods can throw exceptions, and you have to answer exceptions even if you don't want to do anything. For example, write the code to open the file, you have to respond to exceptions to prevent accidental occurrence, otherwise the program simply can not compile. Proactive, making the Java system more robust.
5. Mature Platform for enterprise application
This is one of the two most active areas of Java technology today. We have already mentioned a lot in the previous Java technology Introduction, and here we focus only on the advantages that are relevant to us.
Java Technology enterprise applications are designed to enhance the competitiveness of enterprises, so the Java technology is appreciated by enterprises, market share is the largest of the same technology. At the same time, Java open standards, so many vendors. There are many application servers, tools and artifacts available, ranging from high-end Bea WebLogic, IBM WebSphere and other commercial software to open source free tools such as Tomcat and JBoss. As a beginner of Java technology, it is possible to do the training of Java Enterprise application without any cost, and then, if you participate in the development of Java Business Projects, you can seamlessly migrate the software to high-end commercial platform. In view of. Net, want free self-study, do not pirate is impossible.
Finally, talk about Java and Web services. Web services are a milestone in the history of software interoperability, an important direction for technology development, and a technology that you must never fail to understand. Sun is the inventor of the Java language, and as an open Cross-platform technology system, Java plays a very important role in the development of Web services. As an active participant and leader of the industry, Sun was accepted as a member of the Web Services Interactive organization WS-I, and the promotion of Web services interoperability was significant, as well as a key counterweight to the value of Java technology.
6. Wireless Applications
This is another of the most active areas of Java technology that are designed to provide more and more convenient personalized services for Java mobile applications. In the coming years, there will be huge business opportunities and fierce competition between mobile communication operators and mobile device applications, and this trend is likely to interact with other developments such as e-government, E-commerce and so on. The proprietary nature of Java in the handset market and the openness and standard of Java itself make more and more enterprises join the Java camp.
China is no exception. The first time Dr. James Gosling came to China in 2003, one of the important tasks was to forge alliances with China Unicom.
The story of the Yellow sugar
Dr.--james Gosling, father of Java
Dr. James Gosling is famous for "the father of Java technology". He is the founder of Java Technology, as a member of the Sun Research Institute, personally designed the Java language, complete the Java technology of the original compiler and virtual machine. Under his leadership, Java has become the standard programming mode of Internet and the fact standard of distributed enterprise application, and its Cross-platform technical superiority has brought about epoch-making change for network computing. At present, Dr. Gosling is actively committed to the research of software development tools to make software development tools more powerful, easier for developers to use, to ensure the rapid implementation of application, service development.
In fact, mobile game development is also a good career and opportunity, the success of a number of examples oh.
7. The Open Java Community--java Community PROCESS,JCP
JCP is a hero who makes Java famous. JCP created an open forum for like-minded enthusiasts to exchange views, explore and define new platforms and brainstorm. Java welcomes competition, because only in this way can the maximum increase in the field of technology, this with rival Microsoft. NET technology is vastly different. There are many actors on the Java stage, anyone can participate in the process of JCP, help Sun to determine the development and future of Java, but also challenge their influence. As a result, you can find that new nouns in the Java world abound, far ahead of the norm. and at Microsoft. NET technology on the stage, you can only see an actor, that is Microsoft itself.
8. Support from open source or non-profit organizations
Open source organization is the dream of anarchy--no polity, no ownership, freedom of speech and action, only sustained by faith and selfless devotion to desire to share and communicate. In the Java World, open source organizations and non-profit organisations are at their best, and many of the finest tools are in their hands. For example, JUnit, Cactus, Tomcat, Struts, JBoss, Eclipse, ANT, Xerces, Hibernate, Axis, AspectJ, and so on, many tools will appear in our café and play an important role.
In the Java world, there is absolutely no good in cheap goods, and these tools have the quality that is comparable to commercial software, and many business Ides also integrate these tools. For Java programmers, life will not only be easy, more importantly, you can see hope, there is a chance to contribute their own strength!