Java Software Developer Interview Questions

4,205 java software developer interview questions shared by candidates

Store the elements in a stack and have a function that returns the minimum value without iterating again over it. Design an auto-complete mechanism similar to google's autocomplete mechanism. What are default methods in Interfaces in Java 8 , why are they needed? If a class extends two interfaces having the same default method , what will happen then How will you make an Employee class as your HashMap key.
avatar

Java Software Engineer

Interviewed at Accenture

3.7
Apr 7, 2021

Store the elements in a stack and have a function that returns the minimum value without iterating again over it. Design an auto-complete mechanism similar to google's autocomplete mechanism. What are default methods in Interfaces in Java 8 , why are they needed? If a class extends two interfaces having the same default method , what will happen then How will you make an Employee class as your HashMap key.

1. You will be given two end points with two API's a. response: [ { "product_uid": "6447344", "unit_price": 15.63, "unit_price_measure": "kg", "unit_price_measure_amount": 1 }, b. response from another API: [ { "product_uid": "6447344", "product_type": "BASIC", "name": "Sainsbury's Skin on ASC Scottish Salmon Fillets x2 240g", "full_url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-responsibly-sourced-scottish-salmon-fillet-x2-240g" }, Task is: now you will have to get the response from these API's and map the response which is present in their requirement section. There is may be some calculations involved in it. 10 test cases pre generated, all must be passed. Important: you will need to write your own test cases ( which i failed due to lack of time because of terrible IDE from hackajob platform ) Overall the task was alright but writing in their IDE without auto formatting tools and behaviour of IDE is not similar to regular IDE's, I would say i would have done better if its in my local IDE. - Disappointed
avatar

Software Engineer - Java Developer

Interviewed at Sainsbury’s

3.6
Dec 22, 2024

1. You will be given two end points with two API's a. response: [ { "product_uid": "6447344", "unit_price": 15.63, "unit_price_measure": "kg", "unit_price_measure_amount": 1 }, b. response from another API: [ { "product_uid": "6447344", "product_type": "BASIC", "name": "Sainsbury's Skin on ASC Scottish Salmon Fillets x2 240g", "full_url": "https://www.sainsburys.co.uk/gol-ui/product/sainsburys-responsibly-sourced-scottish-salmon-fillet-x2-240g" }, Task is: now you will have to get the response from these API's and map the response which is present in their requirement section. There is may be some calculations involved in it. 10 test cases pre generated, all must be passed. Important: you will need to write your own test cases ( which i failed due to lack of time because of terrible IDE from hackajob platform ) Overall the task was alright but writing in their IDE without auto formatting tools and behaviour of IDE is not similar to regular IDE's, I would say i would have done better if its in my local IDE. - Disappointed

Viewing 261 - 270 interview questions

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