I was asked to describe a way to log messages without changing the code of an application.
Java Software Developer Interview Questions
4,195 java software developer interview questions shared by candidates
No real interview questions. Just initial getting to know me, going over my qualifications and my background.
Ask about red-black tree. Similar questions to B+Tree
1. Questions on java collections and algorithms complexity 2. Based on certain requirements propose design strategy of the problem. They wanted to see if i could find design pattern that I could propose for the given task(the pattern in question was decorator pattern)
2 to 3 rounds 1. Java based questions Basics on OOPs, multithreading, exceptions and design patterns 2. Problem solving and system design based on role Difficulty level is not too much, but preparation is required
They asked questions on Java cocepts like : OOPS, Multithreading, Collections. They will show you code snippet, you have to tell the output and with that you will have to discuss the above topic in depth with interviewer. They will usually ask edge cases. Ex: What if we implement 2 interfaces having same name and same signature for a default method. How to solve this problem. Ex2: Why we can create constructor in abstract class but we cannot initialize it. Why java introduced this? Ex:3 What if we override equals method and hashcode method. What if we are returning same value from hashcode method and always returning false from equals method. Ex: 4 If in a class having two different methods with two synchronized blocks and two threads are accessing different methods, What will happen? who will wait?
Some general java basic questions.
If somebody critic about your company code, what will you do?
Coding questions: 1. Create a password from a string based on Prime indices. 2. Sum of digits of a number & throw a custom exception if it's a even number. 3. Sort employee objects based on employee ID. Other questions on basic java
2. Arraylist and Linked list. When to use which.
Viewing 1561 - 1570 interview questions