No (5)
NullPointerException NULL pointer exception (a method is called by an empty object)
Abnormal:
Try block: A block of code that may have an exception is not allowed to be missing and is not allowed to exist separately (can be combined with a catch finally block using the preceding 2 to show any accesses than either)
Catch block: Handling exceptions thrown in a try block
Finally block: The code will execute anyway
Throw: Using the throw new Exception ("Extra information Content"), which exists in the method, indicates that the method is likely to throw an exception, hoping that the caller will catch it instead of handling the problem by itself
Throws: The keyword appears on the method header, if a throw new Exception ("Extra information content") appears inside the method, indicating that the method is likely to throw an exception and need to be declared
Run-time exception: Do not need to be forced by the program to scratch the try Catch block
Checked exception: The caller must be required to add a try catch block or the program will not compile through
Log4j
1. Introduction of Log4j.jar-->bulid path--"Add Library"
2. Create a Log4j.properties file note the file name note the path to where the files are placed
8 Basic data types for 8 types of packaging
int Integer
Long Long
Short Short
BYTE byte
float float
Double Double
Char Character
Boolean Boolean
Automatic conversion between wrapper type and basic type when jdk1.5 version
Implementing object-Oriented Programming with Java (6)