Nirmala,
When you make call printArray() with integer argument, It will look for printArray(int[]) which is not defined. Look at the following code :
You make call using long[] or You overload printArray method for int[] argument.
import java.awt.*;
class Gd {
public void printArray(long a[]) {
for(int i=0;i < a.length;i++)
System.out.println(a[i]);
}
public static void main(
String args[]){
long b[]={1,2,3,4};
Gd x = new Gd();
x.printArray(b); //passing long argument
}
}