after executing that I was expected all rgb values but the output is rgb values with negative sign and containg each value more than 6 digits
please help me soon

int w=bufferedimage.getWidth();
int h=bufferedimage.getHeight();

    int [] rgb=new int[w*h];

    bufferedimage.getRGB(0,0, w, h,rgb,0,w);

    for(int i=0;i<rgb.length;i++)
        System.out.print(rgb[i]+"          ");

Each RGB value is a 32 bit int containing 8 bytes each for R, G, B (and 1 byte for Alpha where appropriate).
You need to extract each of the bytes from each int (use bit shifting & masking).