Skip to content

Commit 3362fdf

Browse files
authored
Added new
1 parent e211004 commit 3362fdf

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class 2_Initialize_objects_and_their_members{
2+
3+
String blah = "ABC";
4+
5+
public 2_Initialize_objects_and_their_members(){
6+
System.out.println("Public Constructor");
7+
}
8+
9+
static {
10+
System.out.println("Static Initializer");
11+
}
12+
13+
{
14+
System.out.println("Instance Initializer");
15+
}
16+
17+
public void static void main(String[] args){
18+
new 2_Initialize_objects_and_their_members();
19+
new 2_Initialize_objects_and_their_members();
20+
}
21+
}

0 commit comments

Comments
 (0)