import java.util.*;
import java.lang.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println("Start the test!");
		System.setErr(System.out);
		try
		{ new Test(); } catch (Exception e) { e.printStackTrace(); }

		try
		{ new Test2(); } catch (Exception e) { e.printStackTrace(); }

		try
		{ new Test3(); } catch (Exception e) { e.printStackTrace(); }

		
	}

	static class Test
	{
		Object obj = getObject();
		Object getObject()
		{ throw new RuntimeException("getObject"); }
	}

	static class Test2
	{
		Test2()
		{
			throw new RuntimeException("constructor");
		}
	}

	static class Test3
	{
		Object obj1 = null;
		String str = obj1.toString();
	}
}