Thank you Ove . !!
the foremost mistake i did was .. i put the static variable Beta b1 inside the
Object Alpha.. i realized this after seeing your diagram.
Static variable cannot be an instance variable .. its a
class variable .
Now i get the answer 1