Junior Java Engineer Interview Questions

3,953 junior java engineer 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.

In the online test, there were six questions based on Java topics. Two questions were related to arrays, involving sorting arrays in ascending and descending order. Two questions were on regular expressions, concerning validating phone numbers and emails. Two questions focused on strings, including splitting the string and counting the words and finding vowels in a string.
avatar

Junior Java Developer

Interviewed at Arteria Technologies

3
May 16, 2024

In the online test, there were six questions based on Java topics. Two questions were related to arrays, involving sorting arrays in ascending and descending order. Two questions were on regular expressions, concerning validating phone numbers and emails. Two questions focused on strings, including splitting the string and counting the words and finding vowels in a string.

Viewing 2681 - 2690 interview questions

Glassdoor has 3,953 interview questions and reports from Junior java engineer interviews. Prepare for your interview. Get hired. Love your job.