Wednesday 23 January 2013

Spring-Core interview questions

Implementation Based - 
Auto wiring -
http://www.coderanch.com/t/603029/Spring/Autowired-properies
Common Questions - http://javarevisited.blogspot.in/2011/09/spring-interview-questions-answers-j2ee.html






Fundamental - 
http://java67.blogspot.sg/2012/08/spring-interview-questions-answers.html 
  1. Can we assign the reference of prototype bean to singleton bean & vise versa ?
  2. Is spring singleton , singleton to class-loader or not ?
  3. Difference in life cycle of singleton and prototype bean ? (hint - destroy-method execution)
Link - http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/beans.html#beans-factory-scopes
  1. Spring annotations and their purpose
  2. Difference between <context:annotation-config> and <context:component-scan>
  3. Register singleton bean to spring factory using registerSingleton

Jsp interview questions

Tuesday 22 January 2013

Core java fundamental interview questions

  1. In the non-static method, the reference to the instance of the enclosing context is passed implicitly in the constructor call of the non-static local class
  2.  Equals , comparable and comparator - http://leepoint.net/notes-java/data/expressions/22compareobjects.html
  3. Common Question - http://bateru.com/news/2011/03/484/
  4.  Common question - http://www.fromdev.com/2010/08/10-jdbc-questions-for-java-beginners.html
  5. Good questions - http://javarevisited.blogspot.in/2011/04/top-20-core-java-interview-questions.html
  6. Multithreading  - http://www.fromdev.com/2008/05/java-threading-questions.html
  7. Collection - http://www.fromdev.com/2008/05/java-collections-questions.html
  8. Classpath - http://www.fromdev.com/2012/09/Java-Path-Classpath-Questions-Answers.html
  9. Jdbc - http://www.fromdev.com/2010/08/10-jdbc-questions-for-java-beginners.html
  10.  Why static method override is not allowed
  11. Starting thread more than once - http://stackoverflow.com/questions/1215548/is-it-legal-to-call-the-start-method-twice-on-the-same-thread
  12. Wait notify- notify all - http://javarevisited.blogspot.sg/2011/05/wait-notify-and-notifyall-in-java.html 
  13. Volatile vs synchronization - http://javarevisited.blogspot.in/2011/06/volatile-keyword-java-example-tutorial.html
  14. HashTable vs Concurrent HashMap vs SyncronizedMap - http://javarevisited.blogspot.sg/2011/04/difference-between-concurrenthashmap.html
  15. HashSet Vs TreeSet -http://java67.blogspot.sg/2012/08/difference-between-hashset-and-treeset-java.html
  16.  http://javarevisited.blogspot.sg/2011/08/what-is-polymorphism-in-java-example.html
  17. http://java67.blogspot.sg/2012/08/difference-between-string-and-stringbuffer-in-java.html
  18. http://javarevisited.blogspot.sg/2012/01/how-to-reverse-string-in-java-using.html
  19. http://java67.blogspot.sg/2012/09/java-collection-interview-questions.html
  20. http://java67.blogspot.sg/2012/09/what-is-new-in-java-7-top-5-jdk-7.html
  21. http://java67.blogspot.sg/2012/08/10-java-coding-interview-questions-and.html
  22. http://java67.blogspot.sg/2012/08/5-thread-interview-questions-answers-in.html
  23. http://java67.blogspot.sg/2012/09/top-10-tough-core-java-interview-questions-answers.html
  24. http://javarevisited.blogspot.in/2011/11/collection-interview-questions-answers.html
  25. http://javarevisited.blogspot.in/2011/02/how-hashmap-works-in-java.html
  26. http://javarevisited.blogspot.in/2011/04/top-20-core-java-interview-questions.html
  27. http://javarevisited.blogspot.in/2012/12/difference-between-equals-method-and-equality-operator-java.html
  28. http://javarevisited.blogspot.sg/2011/04/difference-between-concurrenthashmap.html
  29. http://java67.blogspot.in/2012/09/java-collection-interview-questions.html
Other important questions - 


Sunday 20 January 2013

Hibernate fundamental interview questions

Query cache vs second level cache -
http://www.coderanch.com/t/602070/ORM/databases/Query-Level-Cache
http://www.javalobby.org/java/forums/t48846.html
http://www.coderanch.com/t/526101/ORM/databases/Relation-Hibernate-Query-Cache-Level

Foreign key relationship managing (inverse)-
http://www.coderanch.com/t/479189/ORM/databases/inverse-hibernate
http://www.coderanch.com/t/218391/ORM/databases/Inverse

Other useful information -
  1. What is inverse
  2. Cascade in Hibernate
  3. Hibernate fetching strategy change at run-time 
  4. Hibernate query generation mechanism selection
  5. Hibernate inheritance mapping strategy concept
  6. Hibernate inheritance mapping strategy code
  7. Hibernate implicit inheritance mapping
  8. Hibernate collection and it's usage
  9. Hibernate session flushing
  10. Hibernate flushing strategy
  11. Hibernate commit vs flush
  12. Drawbacks of second level cache
  13. Hibernate filters and their usage
  14. Issues with primitive type mapping in Hibernate
  15. Fetching strategy and their impact in sql query generation
  16. Mapping  java enum to database column

Database interview questions

Core Java implementation based questions

Spring-orm implementation based question

Designing -
http://www.coderanch.com/t/602653/ORM/databases/dynamicall-decide-database-referred

Q- How to perform operations in transaction while using HibernateTemplate or JDBCTemplate?
Ans- a) transaction across multiple JDBCTemplate or HibernateTemplate
b) Declarative (aop or annotation base) & programmatic transaction management configuration

Q- Possible isolation levels  & propagation of a transaction and way to use it in Spring - 
http://en.wikipedia.org/wiki/Isolation_%28database_systems%29
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/transaction.html#transaction-declarative-annotations
 http://static.springsource.org/spring/docs/1.2.9/api/org/springframework/transaction/annotation/Isolation.html 

Ques-Spring's @Transactional on class level applies to what methods?
Ans-http://stackoverflow.com/questions/28170851/springs-transactional-on-class-level-applies-to-what-methods#

Hibernate implementation based interview questions