1. What is runtime polymorphism? Can you explain by writing and example ? 2. Developer d = new Employee(); Here employee is a super class and Developer is a subclass. If we can d.work(); which method will be executed? 3. Can we overload static methods ? 4. In the below array, move all the 0 to left and don't sort the remaining values: 3, 23,0,4,6,0,33,0,34 5. Reverse each string in the word and don't move the punctuations: "Hello, This is a String!" 6. What does a collision happen in Hashmap ? 7. What are different ways to create Thread ?? 8. What is the difference between synchronized block and synchronised method ?? Which is better with respect to performance? 9. If we have static block, a constructer and main method. What is the order of execution? 10. What are the design patterns that you have used in your project? 11. Can you write a program to display singleton design patterns? 12. What are the solid principles?
Java Senior Interview Questions
6,033 java senior interview questions shared by candidates
Serialization, cloning, producer consumer problem, questions on linkedList, Java8, collections
Possui experiencia em sistema bancários? Se sim, fale sobre sua experiência. Trabalhou com o modelo ágil? Se sim, fale sobre sua experiencia. Tem experiência com Kotlin e AWS?
Stream programs, Java 8 (most questions were from here), multithreading(important), executor service, spring boot annotations, microservices: service registry, pom.xml dependencies, difference between post and put, collections: concurrent hashmap and hashmap difference and internal functioning. Stream program to find index of largest element, find the occurance of each number using stream.
Difference between JPA Repository and CRUD Repository.
Difference between @Component and @Service.
Executor Service Future Interface Stream API programs
I do not remember now
Why do you want to join our company?
Questions were around microservices, exception handling , core java , design patterns and system design
Viewing 1771 - 1780 interview questions