Interview Question

Entry Level Java Developer Interview

-

RedMane Technology

Technical Questions: 1. Three pillars of OOP with explanation of each 2. Final Keyword in Java 3. Abstract Class & Interface difference 4. JSP & Servlets difference 5. What is meant by immutability in Java? 6. Multi-threading - Sleep vs Yield? 7. What is a design pattern and name some. Explain Singleton Design Pattern? 8. protected keyword in access modifiers 9. Continue vs break statement 10. Describe MVC? 11. StringBuffer vs StringBuilder? 12. One logic/algo question: Inserting an element at proper position in a sorted array. They will focus on the very basic logic design like loops, function and their arguments.

AnswerAdd Tags

Interview Answers

3 Answers

3

Algo Approach: Use Binary Search to find the location where the element is to be inserted and store in a variable index. Call a function insert(a,index,newVal) where a is the sorted array. Run a for loop until index and copy elements into a new array. newArray[index] = newVal and continue copying elements from the given array into the new Array.

Anonymous on

0

You said that every one who is interviewed by CEO gets offer then how come you haven't received offer?!!

Anonymous on

0

I got the offer.

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.