ok ,here is my doubt,may be its a very silly question but i want to know the explanation.
Which one of the following is a correct way to call methodA? Assume data is a non-empty reference to an array object, and lbl is a non-empty reference to a JLabel object. There are 4 options. 1)methodA(data, lbl); 2)methodA( data, lbl); 3)methodA( data, lbl); 4)methodA( int  data, lbl);
According to me the answer may be 2,but the answer is 3 can anyone explain me why the answer is 3 . Thanks in advance.
That was a good point. But i did tell in a general way and context. In that case, the answer 3 seems to be right but not answer 2. Because the question was just having the plain options and not in detail.
In your case, answer 3 is wrong as it would be of sending the address of 2D array data. But since the answer 3 was right, i think it might have been asked in the same assumption as that of mine.