Java Software Developer Interview Questions

4,195 java software developer interview questions shared by candidates

They asked In-depth java concepts and Micro services . if(null==null){ do }else{ do } this was one of the question and one more how can we use @Transactional in microservices which are inter conntected to each other how will you roll back the changes if exception occurs
avatar

Software Engineer - Java Developer

Interviewed at Inspire Brands

3.1
Jun 26, 2024

They asked In-depth java concepts and Micro services . if(null==null){ do }else{ do } this was one of the question and one more how can we use @Transactional in microservices which are inter conntected to each other how will you roll back the changes if exception occurs

1. I have a java program in which there are a lot of HashMap/HashTable being used for mapping key-value pairs. Now I want to profile or rather count how many times the get() and put() methods have been called in my program. 2. Given a stream of integers and asked to store N uniques numbers performing insert, search, retrieve in O(1) complexity. If the maximum space reached remove the old data and insert the new data. Perform the above using a data structure. 3. Given a number N. write a program to find the number of prime numbers in the range of 1 to N.
avatar

Java Software Engineer Test

Interviewed at Coupang

3.2
Aug 26, 2016

1. I have a java program in which there are a lot of HashMap/HashTable being used for mapping key-value pairs. Now I want to profile or rather count how many times the get() and put() methods have been called in my program. 2. Given a stream of integers and asked to store N uniques numbers performing insert, search, retrieve in O(1) complexity. If the maximum space reached remove the old data and insert the new data. Perform the above using a data structure. 3. Given a number N. write a program to find the number of prime numbers in the range of 1 to N.

Viewing 3171 - 3180 interview questions

Glassdoor has 4,195 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.