public class Tester { static void call(Long x, Long y) { System.out.print("Long x, Long y"); } static void call(int... x) { System.out.print("int... x"); } public static void main(String[] args) { int val = 3; call(val, val); } }
static void call(Long x, Long y) {
System.out.print("Long x, Long y");
}
static void call(int... x) {
System.out.print("int... x");
public static void main(String[] args) {
int val = 3;
call(val, val);
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.