Java
EverywhereJava, which is a major benefit. If you rely on writing programs for a living, you may be exposed to Java sooner or later. Java has gradually penetrated into various fields. You can write a Java Servlet and link it to Apache or other Web servers. You can write a Java Applet and execute it on a Web browser. You can even write the database Stored Procedure in Java and install it on Oracle 8i.
I bet there will be more and more colleagues using Java around you. Since 1997, many universities have replaced C with Java as the language for programming teaching. In this way, Java becomes a common language for programmers. If the only benefit of learning Java is convenience for communicating with colleagues, it is also worth it.
Finally, I want to mention: "write once, it can be executed everywhere 」. Earlier versions of Java (1.0 and 1.1) cannot be fully cross-platform, but now it is much better. If you want to spread a program to multiple platforms and do not want to rewrite most of the programs, Java is an excellent choice. Java 2 can now be executed on Linux, many UNIX, and windows.
MacOS 9 Java is still in the 1.1 era. However, Apple's next-generation operating system OS X is centered on UNIX, which greatly simplifies the process of porting software. I don't know what Apple officially said, but in March this year, I saw that OS X developer Release 3 was running Java 2. I am confident that Java 2 can be executed on Linux, OS X, and Windows. This covers most of the computer world.
Java free
Sun provides Java-related tools for you to develop and execute Java programs. You do not have to pay the authorization fee, and you do not have to pay for Java development tools. Of course, Sun has its own wishful thinking. Scott mcnealy (Sun's boss) can't want to conquer the world, but in any case, we do not have to pay anyone to enjoy Java.
Moreover, Java APIs are a precious treasure that allows us to easily write powerful programs. Want to write a network program? You already have an API! Want to connect to the database? You already have an API! Want to write a GUI program? You already have an API! Or do you want to perform digital image processing, music file processing, string profiling, and digital signatures? You can use APIs! As a programmer, there are so many easy-to-use APIs that are really just a pleasure. These Java APIs allow us not to "re-invent the wheel", saving us a lot of effort. Java has such a wide range of standard and advanced APIs, which makes C ++ programmers jealous. C ++ programmers often spend time learning C ++ class libraries (for example, MFC), and then go to Linux to learn another set (because there is no MFC on Linux ). Once you have learned a Java API, it will not change everywhere and you do not need to re-learn.
Finally, Java information files can be obtained free of charge from the website. If you have a network and are available, you can learn object orientation, Java language, and Java API through the network. Sun has put a lot of excellent online teaching materials on the website. If you are used to reading books and learning, there are a bunch of Java books on the market for reference (for example, learning Java I wrote ).
Sunbathing
JAVA is much more interesting than other languages. The Java programming language has many "Sticky defense devices" that prevent you from making big mistakes in the program, so you can write the program quickly, and it takes more time to use other languages. An interesting piece of information shows that writing a program in Java is four to ten times faster than using other languages. I know it sounds incredible, but you can ask people around you who know Java. You don't have to spend a lot of time looking for bugs, which means you can take a longer rest on the beach, which means you can sunbathe in the sun instead of "sunbathing on the screen 」. Use Java to buy one pair of sunglasses for the silver pair you earned!
author: Jonathan Knudsen (book on "Learning Java" and "Java 2D graphics")
: cai xuexiao