-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathB.java
More file actions
54 lines (43 loc) · 743 Bytes
/
Copy pathB.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 B {
static int a = m1();
static int m1(){
System.out.println("B SV:a");
return 10;
}
int x = m2();
int m2(){
System.out.println("B NSV:x");
return 20;
}
static {
System.out.println("B SB");
}
{
System.out.println("B NSB");
}
B(){
System.out.println("B NPC");
}
B(int x){
System.out.println("B IPC");
this.x = x;
}
public static void main(String[] args){
System.out.println("B main");
}
static void m3(){
System.out.println("B SM m3(np)");
}
static int m3(String s){
System.out.println("B SM m3(String) "+ s);
return 5;
}
void m4(){
System.out.println("B NSM m4(np)");
}
String m4(float f){
System.out.println("B NSM m4(float)");
return "a";
}
}