1)Java 8 features, Predicate and some basics on Stream API 2)Multithreading concepts. Thread pool, how do we create it? Based on what thread pool size is taken? 3)Countdownlatch, Cyclicbarrier, Semaphore 4)Given an integer array, write code to know if it is sorted or not 5)@Component,@Qualifier,@Autowired 6)Binary Search and its time complexity 7)In one of the applications design, automatic word search is required. How do we make use of all the words in our dictionary?Are we going to store in a database? In memory? 8)BlockingQueue 9)Array and ArrayList differences 10)Given a sorted array in ascending order with no duplicates. Find pairs of elements which will sum up to a given number?Write the optimal code 11)HibernateTemplate 12)ClassLoader and its types 13)CrudRepository and it's usage
Senior Java Developer Interview Questions
5,535 senior java developer interview questions shared by candidates
what book I was reading now?
Give me a flow of how your Angular frontend communicates with backend system?
Tell me about a time you disagreed with a team member and how did you handle it?
Experience, technical questions on design patterns, performance, data, APIs. Then a coding challenge about writing code to handle stocks trading.
Code: Q1. Design and implement a distributed cache system in Java, capable of handling high-throughput read and write requests across multiple nodes. The goal is to ensure data consistency and fault tolerance in case of node failures. Implement the following features: 1. Data Partitioning: Use consistent hashing to distribute data across multiple cache nodes. 2. Fault Tolerance: When a node fails, ensure that its data is redistributed to other nodes without losing information. 3. Read and Write Operations: Provide efficient APIs for put(key, value) and get(key) operations. 4. Concurrency: Ensure thread-safe operations for the cache. 5. Scalability: Allow dynamic addition and removal of nodes without affecting system performance. Constraints: • Implement the solution in a single Java class for simplicity. • Do not use third-party libraries for consistent hashing. Deliverables: • A working Java implementation of the distributed cache. • Explanation of your design decisions, including trade-offs.
I didn't do the screening part properly I think. If you are not used to pair programming or cannot grasp the concept in an hour then you are out. They give you a small problem and you have to fix the failing unit tests. Mine was around the concept of event listeners, events, event managers etc. I think I was a bit stressed with the fact that they were watching me code and I have a limited time.
1. Implement Load balancer with a maximum 10 instances at a time, also implement using Round robind algorithm.
Questions about Spring Framework, Hibernate, Struts, JavaScript, etc.
Interview with HR manager was mostly about life in Australia and benefits of working in Australia. I was asked about my current situation with family and ability of moving to Australia.
Viewing 4201 - 4210 interview questions