Program 1 WAP to find greatest of three numbers. class ABC { void biggest(int x , int y , int z) { if((x>y)&&(x>z)) System.out.println(x+"is greatest of…