head first java
head first java reading notes
-
This book is suitable for zero-based entry, there are certain programming based on people watching but there will be little redundant.
-
Java, integer
and boolean are two types. And is not compatible. Boolean must
be tested boolean variable. isHot = true; while (isHot) {} -
There are hundreds of built-java class, java API of java libraries.
-
instanceof determines whether a class
-
Only in reference to a variable class does have the method to call it, the public methods of the class as is the content of the contract, the contract is a commitment agreement to other programs.
-
super.runReport () method calls the parent class.
-
If you write a constructor with arguments, no-argument constructor also need to write one.
-
Reference means is null, the reference count is 0, the object will be garbage collected machine (GC) manufactured released.
-
Static final variables constant, is marked as a variable representing the final once it is initialized not change. After the class is loaded static final variable will always maintain its value.
-
Use static import, a bit like in the global namespace C ++.