First review of Java Basics,
1. scope is actually the range in which this variable can work .
2. sometimes encountered value , in fact, a variable name, do not think too complex.
3.Java local variable, instance variable, class variable (static variable) difference
1, a local variable is a variable in the method of a class;
2. An instance variable class is independent of a variable other than a method, but no static modifier is called an object variable
3. class variables (static variables)
A variable that is independent of the method in a class Static modifiers are also known as statically variable
Pseudo Code Description
public class variable{
Static int allclicks=0;// class variable
String str= "Hello World";// instance variable
public void Method(){
Int i=0;// local variable
}
}
4. The difference between an instance variable and a class variable
Java Basic notes First wave ~