Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test {
- static {
- System.out.println("test 1");
- }
- public Test(){
- System.out.println("test 2");
- }
- }
- public class sample_0004 {
- static {
- System.out.println("メイン 1");
- }
- public static void main(String[] args) {
- System.out.println("パターン1");
- Test test1 = new Test();
- System.out.println("パターン2");
- Test test2 = new Test();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement