Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Case Analysis of java class structure

Shulou Source: shulou.com Published: 2022-05-31 10:48:32 09月23日 Update

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

Tags: Examples structures case analysis analysis articles content members arrays types proper elements that is parts ideas interfaces data new knowledge more steps notes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia Linux Huawei Microsoft