class Output { public static int sum(int ...x) { return; } static void main(String args[]) { sum(10); sum(10,20); sum(10,20,30); sum(10,20,30,40); } }
a) only sum(10)
b) only sum(10,20)
c) only sum(10) & sum(10,20)
d) all of the mentioned
In the following Java code, which call to sum() method is appropriate?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In the following Java code, which call to sum() method is appropriate?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!