Objective:
In the process of learning Java, mastering the basic concepts of our learning is very important both j2se,j2ee,j2me, J2SE is the basis of Java, so it is necessary to do a summary of the basic concepts, so that everyone in the future learning process to better understand the essence of Java, Here I have summed up 30 basic concepts.
Java Overview:
At present, Java is mainly used in middleware development (middleware)---Processing client-server communication technology, early practice proved that Java is not suitable for the development of PC applications, its development has gradually become in the development of handheld devices, Internet information stations, and on-board computer development. The difference between Java and other languages is that the program runs with the independence of the platform, and the Windows,solaris,linux can use exactly the same code on other operating systems. Java syntax is similar to C + + syntax, C++/C programmers are easy to master, and Java is completely object-oriented, which presents a good GC (garbage Collector) garbage disposal mechanism to prevent memory overflow.
The Java White Paper presents 11 key features of the Java language.
(1) Easy:java's syntax is simpler than C + +, and another aspect is that Java enables software to run on very small machines, with the base explaining that its support for the class library is about 40KB, and increasing the basic standard library and thread-supported memory needs to be increased by 125kb.
(2) Distributed: Java with a very powerful TCP/IP protocol Family example threading, Java applications can pass through the network URL to access the remote objects, because of the emergence of the servlet mechanism, so that Java programming is very efficient, now many large web The server supports the servlet.
(3) OO: object-oriented design is a programming technique that focuses on the interfaces of objects and objects. Its object-oriented and C + + are many different in the processing of multiple inheritance and Java's original class model.
(4) Robustness: Java takes a safe pointer model that reduces the likelihood of rewriting memory and data crashes.
(5) Security: Java is used to design networks and distribution systems, which creates new security issues that Java can use to build antivirus and anti-attack system. It turns out that Java is doing a better job of anti-virus.
(6) Neutral architecture: Java compilation its generation architecture-neutral target file format can be executed on many processors, and compiler-generated instruction bytecode (Javabytecode) implements this feature, which can be interpreted on any machine.
(7) Portability: Java in the basic data structure type size and algorithm are strict rules so portability is good.
(8) Multithreading: Java processing multithreading process is very simple, Java to the implementation of multithreading to the bottom of the operating system or thread program completed. So multithreading is one of the popular reasons for Java as a server-side development language.
(9) Applets and servlet: programs that can be executed on a Web page are called applets, require a lot of Java-enabled browsers, and applets support Dynamic Web pages that many other languages cannot.