The difference between Java classes for beginners, java files, relational and file name of the class "&" and "&&" understanding

.Java a relationship class, Java file, the file name of the class

When understand the difference and connection, we need to have knowledge of these terms:

Java class name: Java belongs to the object-oriented programming language, an object that is one class, so we take the Java class name for the object we defined when programming the name.

java file name: for programs written in Java we need to save the file, save the file suffix .java, is the Java file name before .java.

class file name: Java program you want to see the results they need to run the .class file. .Class file is in front of the class name.

During development of Java programs, we need to define a class - take a class name, and then save it in a file .java, .class file form after compiling .java file. In fact three of the same name is defined in the file name must be the same in the Java class name, and file name of the .class file is compiled after the .java file did not change.

II. & && difference between the

the difference:

  1. Both of different classification. & Bits belonging to the operator, && is a logical operator.

  2. The two different treatments: & calculation is false as 0, true as 1, and in its operation, see the results. && operation is performed on boolean amount.

  3. Two different characteristics: short circuit && effect, & no short circuit effect.

Effect of short-circuit: a first determination as long as the && ignored as the result of the consequent operation flas flas

 

Guess you like

Origin www.cnblogs.com/-Archenemy-/p/11831125.html