#日常唠叨 # Hello everyone, I am a small star-star Gemini, this is my first time to write a blog, please take care of everyone (the front of the small star is not good, the interface is a bit ugly, do not care)! The next little star will give you a series of small stars to learn Java notes, one day more, after September 1 double Hugh 1-2 More, hope to be useful to everyone. Well, now it's the beginning!
Let's start with the reason and history of programming language:
It should be known that the first computer ABC and the first general-purpose general-purpose computers ENIAC, people began to use the programming language (although the ABC computer is not programmable). Using a machine code, which is programmed with 0101 of binary encodings, people call this programming language machine language , which is the first generation programming language . But this programming language is too locked-in for humans, don't believe it? Take a look at the following example:
00011110101110000000000001000
I'm sure you don't know the meaning of these two lines of code without learning machine language.
So, for the convenience of programming and for solving more complex programming problems (at the beginning of the computer's name, just for arithmetic calculations), programmers begin to use the initials mnemonic to denote basic computer operations. This makes the computer programming a lot easier. Later, programmers unified and perfected this programming, eventually forming a second-generation programming language - Assembly language (which has so far not yet been used), for example:
Data segmentbuf DW3,4,8,1,6,5,7,2,0,9N = (s-buf)/2Data Endscode SegmentassumeASXCodeds:DataStart:movAx,datamovDs,axmovBx0movDx0movCx,n
Assembly language simplifies the difficulty of reciting machine code, but with the development of information industry, people need not only carry out these simple operations. As a result, the higher- level language of the third-generation programming language , which is more comprehensive than the assembler, has risen.
The third generation programming language consists of two major programming languages, one is the process-oriented programming language, the other is the C language , and the other is the object-oriented programming language, in C + + for the representative (here's a gossip: C + + in Chinese, read CPP in English). This programming language preserves not only the assembly language's way of writing code in human languages, but also features that can be implemented programmatically (such as data transfer, UI, etc.) and new programming styles. Here is a picture of the development of a programming language (the third generation programming language is just an example, and there are actually more):
So our current theme,Java, is an object-oriented programming language in the third generation of high-level languages.
So why is our Java invented? In fact, Java was actually a green project developed by Sun's James Gosling organization, originally used in consumer electronics like TV set-top boxes, so there was a requirement for the language itself-- cross-platform , This is one of the reasons why Java is so popular now. But Java just out of time is not hot, and sometimes on the verge of bankruptcy, but you know 1998 years or so, there was a big outbreak, the internet became popular! At this time because each Internet connection system is different (for example, with Windows, Mac OS), in order to facilitate the connection of these different operating systems, there is an urgent need for a cross-platform programming language, just this is a big update of Java, was discovered, So the once-bankrupt programming language, which has been popular for a night, has been popular all the time.
Java note the first initial knowledge of programming languages and Java