find an element in the aray and if it is not found , return the element just greater than the element we are trying to search.
Java Technical Lead Interview Questions
6,678 java technical lead interview questions shared by candidates
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.
3rd Question was from Java Collections. Given a List of Object, which can contain Integers and also contain List which internally can again contain List to nth Level. Write a utility method which would return a flat List.
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.
Design patterns you used and scenario?
runtime polymorphism
Explain about your projects and work experience. What are the mistakes you have done in past at work? SOLID design principals
Coding challenge - writing a function
1. Solid principles 2. Singleton pattern, in case if we pass hashmap- map can be altered and it will destroy singleton, how to handle that 3. How to create threads 4. How to execute 10 threads at a time 5. How to create global exception class 6. When to use arraylist and linkedlist 7. Completable in java 8 8. What's changed in hashmap in java 8 9. Deep copying and shallow copying 10. Use of volatile keyword in java 11. Programming a. String ="I love programming" -we need to count the length and arrange it in desc but that should be return as string using stream api b. List in = Arrays.asList(1,3,7,0,6,7,8,0); need to sort this and put only 0 at first and let the remaining stay as it is using stream API
very basic java question
Viewing 6651 - 6660 interview questions