Java Senior Interview Questions

6,015 java senior interview questions shared by candidates

Programming Assignment: Given two numbers, M and N, write a program to determine if M & N are amicable pairs. An amicable pair (m,n) consists of two integers m,n for which the sum of proper divisors (the divisors excluding the number itself) of one number equals the other. Amicable pairs are occasionally called friendly pairs (Hoffman 1998, p. 45), although this nomenclature is to be discouraged since the numbers more commonly known as friendly pairs are defined by a different, albeit related, criterion. Not, a number cannot be amicable with itself.
avatar

Senior Java Engineer

Interviewed at Dynata

3
Sep 27, 2015

Programming Assignment: Given two numbers, M and N, write a program to determine if M & N are amicable pairs. An amicable pair (m,n) consists of two integers m,n for which the sum of proper divisors (the divisors excluding the number itself) of one number equals the other. Amicable pairs are occasionally called friendly pairs (Hoffman 1998, p. 45), although this nomenclature is to be discouraged since the numbers more commonly known as friendly pairs are defined by a different, albeit related, criterion. Not, a number cannot be amicable with itself.

1) Data structure used in java like ArrayLIst,LinkedList,Set,Map 2) internal working of hashmap-> interviewer is not aware hashmap improvements, he is like why hashmap is converting in Tree, this is not possible. 3) Diff between ArrayList and LinkedList 4) Diff between Controller and RestController 6) If You are not aware of completablefuture that means you are week in threading. according to interviewer. 7) Interview Asked if sudden in your microservice load is increase how you handle it 8) scenario based Question from project.
avatar

Senior Java Developer

Interviewed at FCI CCM

4.6
Oct 29, 2024

1) Data structure used in java like ArrayLIst,LinkedList,Set,Map 2) internal working of hashmap-> interviewer is not aware hashmap improvements, he is like why hashmap is converting in Tree, this is not possible. 3) Diff between ArrayList and LinkedList 4) Diff between Controller and RestController 6) If You are not aware of completablefuture that means you are week in threading. according to interviewer. 7) Interview Asked if sudden in your microservice load is increase how you handle it 8) scenario based Question from project.

Viewing 741 - 750 interview questions

Glassdoor has 6,015 interview questions and reports from Java senior interviews. Prepare for your interview. Get hired. Love your job.