
public void test(int a) public void test(long a) public void test(object a) i will call some x.test(1258448); which method is called if it is called first one why it not call the third one?

First method is called. As in third method an object is there, and if you will call a method with only number, then it will not call the third method. If you want to call the third method, you have to call the test method as follows:
x.text(new Integer(1258448));
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.