Case Analysis of java class structure
In this article, the editor introduces in detail the "case analysis of java class structure", with detailed content, clear steps and proper handling of details. I hope that this "case analysis of java class structure" article can help you solve your doubts.
Structure description
1. Class: external class, member (member inner class, static inner class), local inner class, anonymous inner class
2. Interface: API
3. []: array
4. Enum: enumerate
5. Annotation: note @ interface
6. Primitive type: basic data type
7. Void: no return value
Example
@ Testpublic void test3 () {Class C1 = Object.class; Class c2 = Comparable.class; Class c3 = String [] .class; Class c4 = int [] [] .class; Class c5 = ElementType.class; Class c6 = Override.class; Class C7 = int.class; Class C8 = void.class; Class c9 = Class.class; int [] i1 = new int [10]; int [] i2 = new int [100]; Class