Software Engineer Java Developer Interview Questions

4,188 software engineer java developer interview questions shared by candidates

Introduce yourself What have you prepared for interview What do you learn in python Encapsulation Inheritance Write a program in python (he asked to replace all the A's in my name with black spaces) SQL based questions - how to copy data from one table to another table
avatar

Software Engineer - Java Developer

Interviewed at Cognizant

3.9
Jul 31, 2024

Introduce yourself What have you prepared for interview What do you learn in python Encapsulation Inheritance Write a program in python (he asked to replace all the A's in my name with black spaces) SQL based questions - how to copy data from one table to another table

1. OOps concepts with examples. 2. Write a java program to find the first duplicate in an array. 3. Write a java program to print the occurrences of each character. 4. Explain the approach to print middle element in a linked list. 5. Given a string str = "hfjsk6485lop", sort the string and print the characters first and print digits last. 6. Find a missing a element in an array. 7. Collection framework hierarchy. 8. Difference between abstract class and interface. 9. What is association and aggregation . 10. some code snippets to answer. 11. Internal working of a hash map, what is the case if two elements hash code is same. 12. What are the challenges that you faced in your projects how you have handled them. 13. Difference between string, stringBuffer, String builder. 14. Difference between final, finally, finalize. 15. Difference between Exception and Error. 16. Can you throw custom exception with Error Object. 17. Exception handling hierarchy.
avatar

Software Engineer - Java Developer

Interviewed at Siemens

4.1
Jul 9, 2021

1. OOps concepts with examples. 2. Write a java program to find the first duplicate in an array. 3. Write a java program to print the occurrences of each character. 4. Explain the approach to print middle element in a linked list. 5. Given a string str = "hfjsk6485lop", sort the string and print the characters first and print digits last. 6. Find a missing a element in an array. 7. Collection framework hierarchy. 8. Difference between abstract class and interface. 9. What is association and aggregation . 10. some code snippets to answer. 11. Internal working of a hash map, what is the case if two elements hash code is same. 12. What are the challenges that you faced in your projects how you have handled them. 13. Difference between string, stringBuffer, String builder. 14. Difference between final, finally, finalize. 15. Difference between Exception and Error. 16. Can you throw custom exception with Error Object. 17. Exception handling hierarchy.

Aptitude questions: (1)A number of friends decided to go on a picnic and planned to spend Rs. 96 on eatables. Four of them, however, did not turn up. As a consequence, the remaining ones had to contribute Rs. 4 each extra. The number of those who attended the picnic was (2)Suresh started a business with Rs.20,000. Kiran joined him after 4 months with Rs.30,000. After 2 months, Suresh withdrew Rs.5,000 of his capital and 2 more months later, Kiran brought in Rs.20,000 more. What should be the ratio in which they should share their profits at the end of the year? (3)A man borrows Rs. 20,000 at 10% compound interest. At the end of every year he pays Rs. 2000 as part repayment. How much does he still owe after three such installments? (4)Three taps A, B and C can fill a tank in 12, 15 and 20 hours respectively. If A is open all the time and B and C are open for one hour each alternately, the tank will be full in (5)2 hours after a freight train leaves Delhi a passenger train leaves the same station traveling in the same direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was? (6)coding-decoding reasoning (7)blood relations Technical Interview: They are asking in deep not only just basic questions so thoroughly prepare well for the basic concepts (1)String (2)Garbage collection
avatar

Java Software Engineer

Interviewed at CRMIT Solutions

3.5
Sep 7, 2017

Aptitude questions: (1)A number of friends decided to go on a picnic and planned to spend Rs. 96 on eatables. Four of them, however, did not turn up. As a consequence, the remaining ones had to contribute Rs. 4 each extra. The number of those who attended the picnic was (2)Suresh started a business with Rs.20,000. Kiran joined him after 4 months with Rs.30,000. After 2 months, Suresh withdrew Rs.5,000 of his capital and 2 more months later, Kiran brought in Rs.20,000 more. What should be the ratio in which they should share their profits at the end of the year? (3)A man borrows Rs. 20,000 at 10% compound interest. At the end of every year he pays Rs. 2000 as part repayment. How much does he still owe after three such installments? (4)Three taps A, B and C can fill a tank in 12, 15 and 20 hours respectively. If A is open all the time and B and C are open for one hour each alternately, the tank will be full in (5)2 hours after a freight train leaves Delhi a passenger train leaves the same station traveling in the same direction at an average speed of 16 km/hr. After traveling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was? (6)coding-decoding reasoning (7)blood relations Technical Interview: They are asking in deep not only just basic questions so thoroughly prepare well for the basic concepts (1)String (2)Garbage collection

Viewing 141 - 150 interview questions

Glassdoor has 4,188 interview questions and reports from Software engineer java developer interviews. Prepare for your interview. Get hired. Love your job.