Skip to content

Commit 38a6a1c

Browse files
Update AnonymousAndStaticBLocks.java
1 parent ff017ce commit 38a6a1c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

AnonymousAndStaticBLocks.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ public class App {
1515

1616
public static void main(String[] args) {
1717
A a=new A();
18-
18+
new A();
1919

2020
}
21-
21+
/*
22+
Output:
23+
Thanks!
24+
Welcome
25+
Welcome
26+
*/
2227
}

0 commit comments

Comments
 (0)