import java.awt.*;


public class DefaultScreenSize {

	public static void main(String[] s){

		Dimension screenSize=new Dimension(800,600);// set default
		try{
		
			GraphicsEnvironment graphicsEnvironment =GraphicsEnvironment.getLocalGraphicsEnvironment();
			GraphicsDevice graphicsDevice =graphicsEnvironment.getDefaultScreenDevice();
			Rectangle rect=graphicsDevice.getDefaultConfiguration().getBounds();
			screenSize=rect.getSize();
		}
		catch(Exception ex){
			ex.printStackTrace();
		}
		
		System.out.println(screenSize);
		
	}
}

