There are 5 method declarations have been given below.
Identify the combination of methods that can be defined in a single Java class without any compilation errors.
Select the most suitable option.

i.void doTask(Integer x, int y){}
ii.void doTask(int x, Integer y){}
iii.void doTask(int x, int y){}
iv.void doTask(Integer x, Integer y){}
v.void doTask(Integer x, Integer y, int z){}

i, ii, iii, iv and v together

Only i and iii together

Only ii and iv together

Only i and v together

Verified Answer
Correct Option - a

To get all Infosys Certified Java SE8 Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in