Junior Java Interview Questions

4,079 junior java 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 2761 - 2770 interview questions

Glassdoor has 4,079 interview questions and reports from Junior java interviews. Prepare for your interview. Get hired. Love your job.