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 test0409;

import java.io.*;
import java.lang.Object;

class Super extends java.lang.Object {
	int k;
	
	int foo2() {
		return 0;
	}
}
/**
 *
 */
public class A extends Super implements Cloneable, Serializable {

	private static final long serialVersionUID = 1L;
	public static final int i = 0;

	{
		int j;
	}
	
	int[] foo(float f) throws Exception {
		assert f > 0 : "it works";
		{
		}
		test: for (int i = 0; i < 10; i++) {
			if (f > 0) {
				break test;
			} else {
				continue test;
			}
		}
		Object o = new Object();
		int k = 0;
		do {
			o = new Object();
			k++;
			if (k < 10) {
				o = null;
				break;
			}
		} while (o != null);
		;
		if (o == null) {
			throw new Exception();
		}
		int j = 9;
		switch(j) {
			case 4 :
				break;
			default : 
				return null;
		}
		synchronized(o) {
		}
		try {
			System.out.println();
		} catch(Exception e) {
			System.out.println();
		} finally {
			j = (int) 'c';
		}
		while (j > 0) {
			--j;
		}
		int[] tab = { 1, 2, 3, 4};
		j = tab[3];
		boolean b = (true && false);
		
		j = o instanceof Object ? 4 : 5 + 9;
		
		j = k;
		
		j = foo2();
		
		o = this.bar();
		
		o = A.class;
		
		return new int[] {};
	}

	Object bar() {
		class C {
		}
		return new C() {};
	}
		
	A() {
		this(0);
	}
	
	A(int i) {
		super();
	}
	
	class B {
	}
}	
... 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.