- Basic features: encapsulation, inheritance, polymorphism
- Some new features:
- Static Import: Import static package name
- Functions with variable parameters: Add (int ... x)
- Enhanced for loop: for (int x:xs)
- Automatic unpacking: Basic type, Class object (uniqueness), Int–>integer
- Enum Type:
- Generic enum type: Public enum name {,,,,}
- Advanced enumeration types: Each enumeration type can be followed by a corresponding method
- Reflection:
- There are three ways to get class:
- By object: GetClass ()
- By class: Class name. class
- By class Keyword: Class.forName (package name)
- Reflection Type:
- Construction Method Reflection
- Member Field Reflection
- Member method Reflection: Static Master Method and general method
- Array Reflection
- Main methods
- Isprimitive ()//is a basic type
- IsArray ()//is an array type
- Invoke (object, parameter)//general and the following methods used in conjunction with the main method of reflection method
- GetMethod (method name, parameter type)//method reflected by the Member method
- Callout: @ Callout keyword
- Generics: (This thought is important)
- Class loader: Class name. Class.getclassloader ()
- Dynamic Agent
- MyEclipse configuration is based on the workspace, if you want to configure the cracked 64-bit myeclipse,jdk to install the 32-bit
Technorati mark: Personality determines fate focus change life
Java Basics (i)