DEV Community

Cover image for Which are the frequently asked interview questions for Java Engineers ?
narendra8989
narendra8989

Posted on

Which are the frequently asked interview questions for Java Engineers ?

  1. What is JVM ?Role of JVM?
  2. What is meant by pass by reference and pass by value in Java?
  3. What are the differences between == and .equals() ?
  4. What is final?
  5. What is finally?
  6. What is finalize()?
  7. Can I have multiple main methods in the same class?
  8. What is different between method overloading and overriding?
  9. Can I Create an object Of final class?
  10. What is an abstract class?
  11. What is the difference between an Interface and an Abstract class?
  12. How can you force garbage collection?
  13. What is the purpose of garbage collection in Java, and when is it used?
  14. Explain different way of using thread?
  15. What is Polymorphism?
  16. What is the use of 'super'?
  17. Describe the wrapper classes in Java.
  18. Type of Stream in Java.
  19. What is synchronization?
  20. What is deadlock?
  21. Write syntax of synchronize block.
  22. How border layout work?
  23. What is boxlayout?
  24. What is diffenrce between Vector and ArrayList?
  25. What is Difference between StringBuilder and StringBuffer?
  26. What is Map?
  27. What are checked and unchecked Exception?
  28. What is Collection API?
  29. What is difference between java.util.List and java.util.Set ?
  30. What is throw and throws?
  31. Do I need to import java.lang package any time? Why?
  32. What are the different types of Statements?(In jdbc).
  33. What is servlet?
  34. What is Servlet chaining?
  35. Why do understand by a container?
  36. Which are scripting element in JSP?
  37. Types of Comment in JSP?
  38. Difference between Directives and Declaration?
  39. What are the life-cycle methods of JSP?
  40. What is Deployment Descriptor?
  41. Which are the element of struts.xml file?
  42. What is result in struts 2?
  43. What are the most common methods of Hibernate configuration?
  44. What is Struts 2 framework?
  45. What are the components of Struts?
  46. What are the core classes of the Struts Framework?
  47. What is FilterDispathcer?
  48. What is role of OGNL?
  49. What is the Action?
  50. What is ValueStack?
  51. Describe validate() and reset() methods ?
  52. What is Package in struts 2?
  53. what is interceptor-stack?
  54. What is ActionSupport?
  55. How many types of Tag Available in Struts 2?
  56. What design patterns are used in Struts?
  57. What configuration files are used in Struts?
  58. How will you configure Hibernate?
  59. What is a SessionFactory? Is it a thread-safe object?
  60. What is a Session? Can you share a session object between different theads?
  61. What are the benefits of detached objects?
  62. What are the pros and cons of detached objects?
  63. How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects?
  64. What is the difference between the session.get() method and the session.load() method?
  65. What is the difference between the session.update() method and the session.lock() method?
  66. How would you reatach detached objects to a session when the same object has already been loaded into the session?
  67. What are the general considerations or best practices for defining your Hibernate persistent classes?
  68. What is the need for Hibernate xml mapping file?
  69. What are the most common methods of Hibernate configuration?
  70. What are the important tags of hibernate.cfg.xml?
  71. What are the Core interfaces are of Hibernate framework?
  72. What is the general flow of Hibernate communication with RDBMS?
  73. What is Hibernate Query Language (HQL)?
  74. How do you map Java Objects with Database tables?
  75. What are the types of Hibernate instance states ?
  76. What is the use of dynamic-insert and dynamic-update attributes in a class mapping?
  77. How can you map a whole class as immutable?
  78. What are the steps involved in establishing a JDBC connection?
  79. How can you load the drivers?
  80. What will Class.forName do while loading drivers?
  81. How can you make the connection?
  82. How can you create JDBC statements and what are they?
  83. How can you retrieve data from the ResultSet?
  84. What are the different types of Statements?
  85. How can you use PreparedStatement?
  86. What does setAutoCommit do?
  87. How do you call a stored procedure from JDBC?
  88. How do I retrieve warnings?
  89. How to Make Updates to Updatable Result Sets?
  90. What is normalization? Explain different levels of normalization?
  91. What is de-normalization and when would you go for it?
  92. How do you implement one-to-one, one-to-many and many-to-many relationships while designing tables?
  93. What's the difference between a primary key and a unique key?
  94. What are user defined data types and when you should go for them?
  95. What is bit data type and what's the information that can be stored inside a bit column?
  96. Define candidate key, alternate key, composite key.
  97. What is a transaction and what are ACID properties?
  98. What type of Index will get created after executing the above statement?
  99. What is the maximum size of a row?
  100. Explain Active/Active and Active/Passive cluster configurations
  101. What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
  102. JDBC driver types?
  103. How many types of joins in sql ?
  104. Difference between left join and right join?
  105. What is Trigger?
  106. What is index.
  107. What is use of view

Meet The Experts for Better Guidence : https://nareshit.com/core-java-online-training/

Top comments (0)