a development
Looking at the history of Java, he found that his development was full of drama. It has not been carefully planned, produced, but it has a epoch-making significance, the formation of all seems to be smooth Cheng Zhang, but also full of legends.
In 1990, Sun was prepared to write general-purpose control systems for the next generation of appliances only. Because of the problems of the C + + API, a new language oak was created.
In 1992, in its competitive set-top box platform initiative, it was defeated by excessive user control. Situation improves, get the best validation here, and stick to it a little bit. The next little bit is a turnaround.
In the 1994, the advent of the Internet and browsers gave Oak hope. After adjusting, look at the browser method. Renamed to Java.
At the beginning of 1995, sun company published the Java language online, free for everyone, including the source code. A few months later it set up the hottest language. Sun's selfless achievements in Java, free sharing, let it spread at the fastest speed. The idea of open source sharing is at this time a big shine.
At this point Java is just a language, want to develop the responsible program, must have a strong development class library, JDK application.
In early 1996, JDK1.0 was released. Includes the runtime Environment (JRE) and the development environment (JDK).
Operating environment includes: Core API, inheritance API, user interface API, publishing technology, Java Virtual Machine (JVM)
The development environment includes: compiler
1997,jdk1.1 has added a JIT (on-the-fly compiler) compiler, abandoning the traditional way of compiling (compile a, run, discard after completion), the frequently used instructions are saved in memory, the next call does not need to recompile, which makes the JDK significantly more efficient.
The advent of flash eats into the Java language's application on Web pages. Although the Java language is widely used on the internet, it has not been looking for its own positioning. Known in 1998, Sun released the most JDK1.2 version in history. Along with the 1.2 release of Jsp/servlet, EJB and other specifications, and the Java into the J2SE J2ME three versions.
Read the history of Java, full of frustrations and hope. It went through the trough of the "small lotus only dew point Corner", is also verifying its brilliance. Every setback brought a Jedi counterattack. Gorgeous turn, the beauty of Java.
two Java and C # simple comparisonMicrosoft's launch of the. NET platform, which publishes the C # language, appears to be against Java. Since the birth of C #, the controversy between C # and Java has been growing. From the technical point of view, C # and Java are the traditional object-oriented design of the component of the era of innovation, can be the same. There are unique advantages over java,c#: The visual Studio development platform provided by Microsoft can improve the development efficiency of C # programs well, and Microsoft is better at leveraging the Windows platform than Java when using C # When you create Windows services, log Windows event logs, and access the Windows registry,. NET is more convenient. Java is designed to be independent of any platform and naturally does not provide too many Windows features. This is his advantage: cross-platform. The C # language can only be limited to Windows platforms. So for an open enterprise application, Java is often chosen as the development language, not C #. read a blog above to describe the relationship between Java and C #. Java is like a professional camera, and the photos taken are dependent on photographic technology. and C # is like shoot camera, C # inherits the features of Windows: Fool, easy to operate, easy to get started. three operating mechanisms
The Java language is a special high-level language, which has both the characteristics of the interpreted language and the characteristics of the compiled language, and Java is first compiled and explained. Instead of generating a specific platform's machine code, the Java language compiles a platform-independent bytecode. It is not an executable file, it must use the Java interpreter to interpret execution.
The Java language is responsible for interpreting the execution of bytecode files is a Java Virtual machine, all the JVM on the platform to the compiler to provide the same programming interface, and the compiler only need to face the virtual machine, generate virtual function understanding of the code, and then by the virtual machine to interpret the execution. The JVM on all platforms provides the same interface to Java bytecode programs, but the interface down to different platforms is not the same.
four garbage collection mechanismthe traditional C + + and other programming languages require the programmer to reclaim the allocated memory. Explicitly garbage collection is a difficult thing, because programmers do not always know that should be appropriate to release, if some of the allocated memory is not collected in a timely manner, it will cause the system to slow down, or even cause the program to crash, this phenomenon more than memory leaks. Explicit garbage collection has the following drawbacks: 1 recovery is not available, resulting in memory leaks and reduced system performance. 2 Error recycling. The Java language does not require programmers to directly control memory collection, and the memory allocation and recycling of Java programs is performed automatically by the JRE in the background. The JRE reclaims unused memory, a mechanism known as garbage collection. Typically, the JRE provides a background thread for detection and control, which is typically garbage collected automatically when the CPU is idle or when memory is low. traditional garbage collection and Java garbage collection, like manual and mechanical comparisons. Garbage collection can automatically free up memory space, reduce the burden of programming, can improve the efficiency of programming, protect the integrity of the program. But it also has drawbacks. Its overhead affects the performance of the program. The Java virtual machine must keep track of the objects that are useful in the program in order to determine the useless objects and release them. This process takes the processor's time. The second is the incompleteness of the garbage collection algorithm. An earlier garbage collection algorithm does not guarantee that 100% of all discarded memory is collected.
Five summary
after the ITOO2.0 (Java project), look back at the history of Java, look at its garbage collection mechanism, and suddenly feel close to the relationship.
Java Learning (ii)--java overview