Interview questions

JAVA interview questions – page 77

2,804 questions. Tap “Show answer” to check yourself.

  1. What do you know about java language?

  2. How java is more secure language than other?

  3. What is socket programming in java?

  4. How to write a Junit test case?

  5. What is the syntax for assert statement in Junit?

  6. What are the advantages of using java?

  7. What is java collections?

  8. What will the code in the finally block be called and run after a return statement is executed?

  9. Whats the point of having a private constructor?

  10. Why OOPS concept?

  11. What is access specifier?

  12. Which thread implementation you prefer and why?

  13. What is the method in Iterator to get an individual element? Write the sample logic to display elements in a list Interface using Iterator.

  14. Why you use struts framework in your project? What design pattern you followed?

  15. Can you describe the life cylce management of JSP?

  16. Write the program for method overriding

  17. Comment the parent overmethod

  18. Write the program to read the text from textfile in java

  19. Objective programing

  20. What is jaxb?

  21. Explain spring ioc?

  22. Difference b/w jaxrs and jaxws?

  23. InputStreamReader vs FileReader in java

  24. Int x=0; Now which is better and why, if(x==0) or if(0==x)

  25. Implementation of Thread and what if we directly call run() method instead of start() method.

  26. What is Garbage collector? How Garbage collector invokes and how we again reallocate memory to dereferenced objects?

  27. One to Many Mapping in Hibernate

  28. Details of memory structure(inner heap)

  29. Without synchronized keyword, vector, Collection.synchronzed methode how will you do an array list as thread safe

  30. Ways to create thread

Companies that ask JAVA questions