Java Lead Interview Questions

601 java lead interview questions shared by candidates

Ques : Write a pgm for prime numbers , and find a dupplicate numbers in a sorted list. Ques : Write a immutable object with date object . Ques : What is reentrant lock? Ques :Coding question asked to do in second round: Below are the given coordinates of points on graph .{1,0},{2,0},{3,0},{-1,0},{0,2},{-2,0} Find all the points that are at second farthest distance from center i.e. {0,0} ? Answer for above input {0,2},{2,0},{-2,0} Formula to get distance from center is d2=x2+y2
avatar

Lead Consultant Java

Interviewed at Bounteous x Accolite

3.4
Aug 1, 2022

Ques : Write a pgm for prime numbers , and find a dupplicate numbers in a sorted list. Ques : Write a immutable object with date object . Ques : What is reentrant lock? Ques :Coding question asked to do in second round: Below are the given coordinates of points on graph .{1,0},{2,0},{3,0},{-1,0},{0,2},{-2,0} Find all the points that are at second farthest distance from center i.e. {0,0} ? Answer for above input {0,2},{2,0},{-2,0} Formula to get distance from center is d2=x2+y2

1st Technical consist of question like:- 1.) Design pattern- GOF, Singleton, Builder, Factory ect. 2.) A simple java program used for sorting. 3.) Aggregation vs Composition 4.) Core java questions-- String pool, prepared statement, heap, Maps, Hashing. etc. Both Client Round was scenario based and only Multi Threading was asked:- It was tough for me as i had never worked on multi threading. Was of same level.
avatar

Java Lead

Interviewed at Genpact

3.7
Aug 21, 2019

1st Technical consist of question like:- 1.) Design pattern- GOF, Singleton, Builder, Factory ect. 2.) A simple java program used for sorting. 3.) Aggregation vs Composition 4.) Core java questions-- String pool, prepared statement, heap, Maps, Hashing. etc. Both Client Round was scenario based and only Multi Threading was asked:- It was tough for me as i had never worked on multi threading. Was of same level.

Phone Interview: What needs to be overriden to make an object a key in hashmap? Give me some examples of Lists? Give me some examples of Sets. Explain how a Map works Tell me some access modifiers. What is needed to make an object a Key apart from overriding equals and hashcode. What is a property of a primitive Tell me some properties of a String Explain how an Arraylist works Abstract vs Inheritance What does a class need to let it be run as a thread How do you create a thread When is finally used / what is it? What is a synchronised block What are checked and unchecked exceptions. Why is an ArrayList faster than a Linked List First round in person Maths: Worked out general rule based on given paramaters Code: Simple Java problems (palindrome, output value when number is a multiple, etc. look in a java interview book, cracking the coding interview is good) Riddle: Worst part, again will be something in the cracking the coding interview book. Second round. Much like the first + HR bit.
avatar

Java Developer Team Leader

Interviewed at Scott Logic

2.5
Sep 26, 2015

Phone Interview: What needs to be overriden to make an object a key in hashmap? Give me some examples of Lists? Give me some examples of Sets. Explain how a Map works Tell me some access modifiers. What is needed to make an object a Key apart from overriding equals and hashcode. What is a property of a primitive Tell me some properties of a String Explain how an Arraylist works Abstract vs Inheritance What does a class need to let it be run as a thread How do you create a thread When is finally used / what is it? What is a synchronised block What are checked and unchecked exceptions. Why is an ArrayList faster than a Linked List First round in person Maths: Worked out general rule based on given paramaters Code: Simple Java problems (palindrome, output value when number is a multiple, etc. look in a java interview book, cracking the coding interview is good) Riddle: Worst part, again will be something in the cracking the coding interview book. Second round. Much like the first + HR bit.

Viewing 571 - 580 interview questions

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