The following declaration appears in another class.SomeClass obj = new SomeClass ( );Which of the following code segments will compile without error?
A. int x = obj.getA ( );
B. int x;obj.getA (x);
C. int x = obj.myA;
D .int x = SomeClass.getA ( );
E. int x = getA(obj);