Java Lead Interview Questions

12,708 java lead interview questions shared by candidates

1. Write an algorithm to sort an array into two part so the average of always come same. e.g array = {0,2,1,5,7,9} to [0,5,7] and [2,1,9] for both it is -4... This is the first question which itself is confusing. i asked not clear explain it then they have given new 3,19,7,4,6,40,25,8 but not explained what to do... 2. Write a sql query to find out the 3rd hiegst salary from a table Later one Guy came and changed the question and said that A dont use any inbuild function B If we ask 10th salary then your query should not change 3. we have a class which we will give third party but this class should not allow to create 100 object in JVM?
avatar

JAVA Developer

Interviewed at Bharti Airtel

3.8
Apr 11, 2015

1. Write an algorithm to sort an array into two part so the average of always come same. e.g array = {0,2,1,5,7,9} to [0,5,7] and [2,1,9] for both it is -4... This is the first question which itself is confusing. i asked not clear explain it then they have given new 3,19,7,4,6,40,25,8 but not explained what to do... 2. Write a sql query to find out the 3rd hiegst salary from a table Later one Guy came and changed the question and said that A dont use any inbuild function B If we ask 10th salary then your query should not change 3. we have a class which we will give third party but this class should not allow to create 100 object in JVM?

Viewing 531 - 540 interview questions

Glassdoor has 12,708 interview questions and reports from Java lead interviews. Prepare for your interview. Get hired. Love your job.