Jr Java Developer Interview Questions

3,800 jr java developer interview questions shared by candidates

2.Given an array of integers, you have to find all pairs of elements in this array such that whose sum must be equal to a given number. For example, if {4, 5, 7, 11, 9, 13, 8, 12} is an array and 20 is the given number, then you have to find all pairs of elements in this array whose sum must be 20. In this example, (9, 11), (7, 13) and (8, 12) are such pairs whose sum is 20.
avatar

Junior Java Developer

Interviewed at Synergy Technology Services

3.6
Sep 9, 2019

2.Given an array of integers, you have to find all pairs of elements in this array such that whose sum must be equal to a given number. For example, if {4, 5, 7, 11, 9, 13, 8, 12} is an array and 20 is the given number, then you have to find all pairs of elements in this array whose sum must be 20. In this example, (9, 11), (7, 13) and (8, 12) are such pairs whose sum is 20.

Viewing 2571 - 2580 interview questions

Glassdoor has 3,800 interview questions and reports from Jr java developer interviews. Prepare for your interview. Get hired. Love your job.