A. Written Test - Java : Duration – 30 minutes : 30 Questions • 29 Questions Core java & 1 question from JDBC. B. Project Round : Duration – 30 minutes : 1. How will you sort the array? 2. How will you retrieve the second highest element in array? 3. What will you get if you retrieve intArray.length element? 4. What do you know about OOPs? 5. How data hiding should be done in java Explain with an example? 6. How the data should be hidden in java? 7. What is the Exception Hierarchy in your project? 8. How you are handling Exceptions in your project? 9. What is the need to go for multiple catch blocks? 10. How will handle Customized exceptions? 11. How will you test the string using junit? 12. How the code will be moved to the UAT from QA? 13. How you will deploy the application in web logic server? 14. Is there any separate team is there for deployment? 15. Are those team contains Java Developers or not? C. Technical Round : Duration-85 min. 16. Can you brief about your current project? 17. What kind of architecture that you are following? N-tier. 18. Tell me the flow of your project? 19. Do you know about PMD tool? 20. How you will ensure code quality? I said with an example. Student stud = new Student(); // in this code you need to make “stud” variable as final otherwise it will raise the bug. Write the above code below Student stud = null; stud = new Student(); so, that you will not get any bug. 21. Suppose I’m writing two hundred lines of code & if i use “Find Bugs”[PMD] for code then what kind of bug it will raise? 22. In presentation layer what kind of technologies you are using? 23. Tell me about Action Class? 24. Tell me which framework that you are using in your project? 25. Take any controller write down all the possible methods to override with parameters and return types? 26. What is difference b/w request.setAttribute(--) & mav.addObject(-)? 27. If both are same then why you are using ModelAndView Object? 28. What are the design pattern that are used by spring? 29. Tell me about the Decorator design pattern? 30. Give me an another example for Decorator design Pattern ? 31. What are the disadvantages of Decorator Design Pattern? 32. What kind of design pattern that you are worked on? 33. Do you worked on Singleton? 34. What is Eager initialization & Lazy Initialization in Singleton? 1. Public class Test{ 2. private static Test test; 3. static{ 4. test = new Test(); 5. } 6. public static Test getInstance(){ 7. return test; 8. } 9. } 35. In multithreaded environment above code fails or not? 36. Take the above code like below. 1. Public class Test{ 2. private static Test test; 3. public static Test getInstance(){ 4. if(test == null){ 5. test = new Test(); 6. //insert code 7. } 8. return test; 9. } 10) } 37. What about now? If we put Thread.sleep() at line 6 i said, it fails? 38. How you will ensure above code from concurrent access? 39. How you will ensure singleton is not to clone? 40. What is fill ratio in HashMap? 41. I want to insert an object at specified index say 8, which Collection should I use? 42. What is difference b/w ArrayList & LinkedList. 43. I want to sort the employees names according to the second character in their name, how should I go? 44. What are class diagrams & sequence diagrams? Explain how you can develop the code from those diagrams. 45. What is the difference b/w Comparator & Comparable. 46. Difference b/w checked Exception & unchecked Exceptions? 47. In your project how you will handle runtime exceptions? 48. If StackOverFlowError is raised how you will resolve? 49. If OutOfMemoryError is raised how you will handle? 50. Tell me about static control flow? 51. How a servlet can handle the multiple requests? D. HR Round : Duration : 30 minutes 52. Tell me about your organization? 53. Tell me about the nature of your company? 54. Where it is located? Tell me the address? 55. What kind of technologies you worked on? 56. What is your expected CTC? 57. Why you are looking for a change? E. Online-Written Test : Duration : 40 min : 40 Questions • 25 Question from Core Java. • 05 Questions from DBMS. • 05 Questions from Struts. • 03 Questions from Spring. • 02 Questions from Web-Services. I remember each and every questions these questions might help you.