Both //1 & //2 call test(int ,long) ,why not test(short,int).The values are within the range of short and int,right. Pl.help.
Corey McGlone
Ranch Hand
Joined: Dec 20, 2001
Posts: 3271
posted
0
Originally posted by geetha nagarajan: The values are within the range of short and int,right. Pl.help.
That's true, the values are within the range of a short, but literal integers in your application are automatically considered ints. Check out the JLS, §3.10.1 Integer Literals. Corey