-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathC.java
More file actions
54 lines (43 loc) · 743 Bytes
/
Copy pathC.java
File metadata and controls
54 lines (43 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package reflectionapi;
class C {
static int a = m1();
static int m1(){
System.out.println("C SV:a");
return 10;
}
int x = m2();
int m2(){
System.out.println("C NSV:x");
return 20;
}
static {
System.out.println("C SB");
}
{
System.out.println("C NSB");
}
C(){
System.out.println("C NPC");
}
C(int x){
System.out.println("C IPC");
this.x = x;
}
public static void main(String[] args){
System.out.println("C main");
}
static void m3(){
System.out.println("C SM m3(np)");
}
static int m3(String s){
System.out.println("C SM m3(String) "+ s);
return 5;
}
void m4(){
System.out.println("C NSM m4(np)");
}
String m4(float f){
System.out.println("C NSM m4(float)");
return "a";
}
}