alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package test0578;

public class X {
	
	static {
		int var1 = 0;
		System.out.println(var1);
	}

	{
		int var2 = 0;
		System.out.println(var2);
	}

	public int var3;
	
	public void foo() {
		int var4;
	}
	
	public Object bar() {
		return new Object() {
			public void foo2() {
				int var5;
			}
		};
	}
	
	public int bar2() {
		class C {
			int var6;
			
			public void foo3() {
				int var7;
			}
		};
		return new C().var6;
	}
	
	public X() {
		int var8;
	}
	
	public void bar3(int var9) {
		for (int var10 = 0; var10 < 10; var10++) {
		}
	}

	public X(Object var11) {
	}
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.