Q:

What is the unit of selenium's Dimension(1200,600)?

I am automating an application where it is necessary to for the application to have 1200x600 pixel size of the browser. I am using a code like below to maximize(I don't want to use dirver.manage().maximize() code it has some problem with application).
Here the below is my code
Dimension d = new Dimension(1200,600);
//Resize the current window to the given dimension
driver.manage().window().setSize(d);

But still, the application is not compatible with this size. So can somebody tell what is the unit used int this 1200 and 600 in Dimention() constructor?
It is fine if some gives the equivalency value 1200x600 pixel value in Dimenstion(xxx,xxx).
Note: using google-chrome 65.x,windows 10.

A:

The main question here seems to be what is the unit used int this 1200 and 600 in Dimension() constructor?.
Class Dimension
As per the docs Dimension Class is defined as :
public class Dimension
extends java.lang.Object
Similar to Point - implement locally to avoid depending on GWT.

Class Point
As per the docs Point is defined as :
A copy of java.awt.Point, to remove dependency on awt.

java.awt.Point
As per the docs java.awt.Point is defined as :
public class Point
extends Point2D
implements Serializable

A point representing a location in (x,y) coordinate space, specified in integer precision.

Point2D Class
As per the docs Point2D Class is defined as :
The Point2D class defines a point representing a location in (x,y) coordinate space.
This class is only the abstract superclass for all objects that store a 2D coordinate. 
The actual storage representation of the coordinates is left to the subclass.

Digging out a bit more, this documentation says :

A point is a specification of a particular location in space.  It has neither height, nor width, nor depth.  Therefore, it cannot be rendered on your computer screen, although it might be possible to render a pixel on your screen that occupies a space generally specified by the point.  Hence, a point in our 2D space represents a location in that space commonly specified by a pair of coordinate values, horizontal (x) and vertical (y).
This is similar to the notion of performing graphic operations in Cartesian coordinates the only difference is, in Cartesian coordinates the positive direction of y-displacement is normally up, while in our current frame of reference, the direction of positive y-displacement is down.  As in typical Cartesian coordinates, the direction of positive x-displacement is to the right.

