Yesterday's question went home, I knocked over my computer, but also remembered the code. After compiling, it seems to have the same problem, so there is a pathpath path, then run, pass. It seems that this is this reason. The first thing to come to the company this morning is the environment variable of ClassPath. It is strange that the problem is still the same, is there a problem with environmental variables? Then I found an applet in JDK to try, there is no problem, run success, it seems to be a problem with my program. Not much, so I'm looking forward to the wrong view, I finally discovered the wrong location:
The second chapter of Java Programming Ideology (Third Edition) told the "all things". When you create an object in Java, you will be placed in a stack when you use NEW, and aprimitive data type is placed in the stack from efficiency.
About the scope, the following code: /// {int x = 125; {INT x = 34; // illegal}} In C / C , this is no problem, this is called a scope shield (it is called Why?), But in Java is illegal, it is indeed a good way to avoid ambiguity.
Then learn some nouns, including Gabage Collector, Class, Data members, methods, default values, parameters, return values, parameter lists, many are the same or similar to C , and learning is not very Father.
It is a name space, and Java designer uses a reversed domain name to solve this problem as the name of the class library, because the domain name is unique, so you can avoid the problem of renowning. (A little feeling, but still need to practice to really understand.)
Then two nouns Import and Static, the previous one has just been faulty, and the latter is also very simple. The author then uses a program to teach us to use Java Document, this thing is a very good thing, a good thing to do good things, must first make a tool, Java's tools look, there is a big impulse, I also found a CHM version of a JDK document, don't have a taste, huh, huh.
"Java has some good ideas, one is that writing code is not the only important thing - the production document is at least important to him." (I am deeply agreed to this sentence, because I am enjoying no documentation The program is destroyed to me ~)
Regarding the use of Javadoc is very many, of course, the document that is produced is also very beautiful. However, now it is not the focus of my study, I remember such a thing.
The author then talked about the programming problem, except for the use of the curb, all other, others can. -_- b
Next, I have gone to the third chapter of Java Programming Ideology (Third Edition), now there is still time, continue.
Java operators are basically the same as other programming languages, the priority is also, but many people can't remember, don't matter, you can use parentheses.
Java's object added, it needs to be said, it is still refrence (this translation Java thought third edition author did not translate the word, is it the translation of this word now there is a controversy? Since C is called it, We also call it to reference it, can it be the role of the reference, including the value of Java, is also the refretence, not a value. Regular Expressions have made me very headache in the course of the operating system, I met when I saw C # a few days ago, I didn't expect it to see it today, it is really avoided. Here is a method of describing a string with a general term.
The plus number of the unit and the reduction, self-increment, and self-reduction, and the relationship operator.
Even the cake. Today, here.
See you next time.