public class Print_in_method
{
	private int n;
	private boolean b;
	private String s;
	private static char c;	//static variable

	public Print_in_method()  	//we do not have to type default constructor --
	{				 //it will be automatically created by Java
	}


	public static void main(String ag[])
	{
		//create new instance (new object) of the Print_in_method class
		//and hold it in the variable temp. The type of 'temp' must be
		//the same as a class name (Print_in_method)

		Print_in_method temp = new Print_in_method();

		temp.display();
	}


	public void display()
	{
		System.out.println("Default num is "     +n);
		System.out.println("Default boolean is " +b);
		System.out.println("Default string is "  +s);
		System.out.println("Default char is '"   +c+ "'");


		System.exit(0);
	}
}