Sunday, 27 January 2013
Design related interview questions
- Object oriented design principles
- Software design interview questions
- When to use interface
- Java enum is class or interface
- Java67 design pattern questions and answers
- Java revisited programming interview questions
- How to analyze the thread dump
- Understanding various design patterns
- UML class diagram understanding & creation
- Points to consider while implementing Observer design pattern
- Difference between dependency injection and dependency lookup
- How to program multithreading communication
- Managing code maintainability
- Maintaining code robustness
- Implementing extensible code
- Optimistic concurrency control concept
- Optimistic vs Pessimistic locking in Hibernate
- What is time complexity
- What is big O notation
- How to calculate the complexity of algorithm
- Sorting Algorithms -
- Searching Algorithms -
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
- Can we assign the reference of prototype bean to singleton bean & vise versa ?
- Is spring singleton , singleton to class-loader or not ?
- Difference in life cycle of singleton and prototype bean ? (hint - destroy-method execution)
- Spring annotations and their purpose
- Difference between <context:annotation-config> and <context:component-scan>
- Register singleton bean to spring factory using registerSingleton
Tuesday, 22 January 2013
Core java fundamental interview questions
- 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
- Equals , comparable and comparator - http://leepoint.net/notes-java/data/expressions/22compareobjects.html
- Common Question - http://bateru.com/news/2011/
03/484/ - Common question - http://www.fromdev.com/2010/08/10-jdbc-questions-for-java-beginners.html
- Good questions - http://javarevisited.blogspot.in/2011/04/top-20-core-java-interview-questions.html
- Multithreading - http://www.fromdev.com/2008/05/java-threading-questions.html
- Collection - http://www.fromdev.com/2008/05/java-collections-questions.html
- Classpath - http://www.fromdev.com/2012/09/Java-Path-Classpath-Questions-Answers.html
- Jdbc - http://www.fromdev.com/2010/08/10-jdbc-questions-for-java-beginners.html
- Why static method override is not allowed
- Starting thread more than once - http://stackoverflow.com/questions/1215548/is-it-legal-to-call-the-start-method-twice-on-the-same-thread
- Wait notify- notify all - http://javarevisited.blogspot.sg/2011/05/wait-notify-and-notifyall-in-java.html
- Volatile vs synchronization - http://javarevisited.blogspot.in/2011/06/volatile-keyword-java-example-tutorial.html
- HashTable vs Concurrent HashMap vs SyncronizedMap - http://javarevisited.blogspot.sg/2011/04/difference-between-concurrenthashmap.html
- HashSet Vs TreeSet -http://java67.blogspot.sg/2012/08/difference-between-hashset-and-treeset-java.html
- http://javarevisited.blogspot.sg/2011/08/what-is-polymorphism-in-java-example.html
- http://java67.blogspot.sg/2012/08/difference-between-string-and-stringbuffer-in-java.html
- http://javarevisited.blogspot.sg/2012/01/how-to-reverse-string-in-java-using.html
- http://java67.blogspot.sg/2012/09/java-collection-interview-questions.html
- http://java67.blogspot.sg/2012/09/what-is-new-in-java-7-top-5-jdk-7.html
- http://java67.blogspot.sg/2012/08/10-java-coding-interview-questions-and.html
- http://java67.blogspot.sg/2012/08/5-thread-interview-questions-answers-in.html
- http://java67.blogspot.sg/2012/09/top-10-tough-core-java-interview-questions-answers.html
- http://javarevisited.blogspot.in/2011/11/collection-interview-questions-answers.html
- http://javarevisited.blogspot.in/2011/02/how-hashmap-works-in-java.html
- http://javarevisited.blogspot.in/2011/04/top-20-core-java-interview-questions.html
- http://javarevisited.blogspot.in/2012/12/difference-between-equals-method-and-equality-operator-java.html
- http://javarevisited.blogspot.sg/2011/04/difference-between-concurrenthashmap.html
- http://java67.blogspot.in/2012/09/java-collection-interview-questions.html
Other important questions -
- What are advantages and disadvantages of singleton
- Fail safe and fail fast iterator & internal working on fail fast iterator
- The way to synchronize hash map-
- By passing it to the constructor of HashMap
- By passing it to the constructor of HashTable
- By calling synchronizedMap method of collections class
- By providing custom synchronized implementation
- ClassNotFoundException Vs NoClassDefFoundError
- What is stackOverFlow Error and can it be caught
- New features in Java7
- Caching on wrapper classes
Serialization interview questions -
Monday, 21 January 2013
TDD implementation based interview questions
code structure while using mock -
http://www.coderanch.com/t/603031/Testing/mock-return-method
Other important concepts -
http://www.coderanch.com/t/603031/Testing/mock-return-method
Other important concepts -
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 -
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 -
- What is inverse
- Cascade in Hibernate
- Hibernate fetching strategy change at run-time
- Hibernate query generation mechanism selection
- Hibernate inheritance mapping strategy concept
- Hibernate inheritance mapping strategy code
- Hibernate implicit inheritance mapping
- Hibernate collection and it's usage
- Hibernate session flushing
- Hibernate flushing strategy
- Hibernate commit vs flush
- Drawbacks of second level cache
- Hibernate filters and their usage
- Issues with primitive type mapping in Hibernate
- Fetching strategy and their impact in sql query generation
- Mapping java enum to database column
Database interview questions
- Trigger types
- Transaction handling in oracle pl/sql
- Clustered and Non-Clustered index
- SQL Query related interview question
- Oracle general interview question - 1
- Oracle general interview question - 2
- Max number existing in any of the tables
- Identifying left outer and right outer join
- Difference between DBA and SYSDBA
- What is table partitioning and when it should be done
- Queries for table partitioning
- Partitioning existing table using exchange partition
- Partitioning existing table using dbms_redifinition
- Getting table partition related information using all_tab_partition
- SQL interview question series
Analytic Interview Questions -
- Handling table's heirarchical data in query
- Analytical function query
- Analytical function based query
Core Java implementation based questions
Race Condition scenarios-
Other good questions & Scenarios -
- i++ not being an atomic operation
- Join causes only the calling thread to wait for operation completion not to another thread calling join method on the same parent thread
Other good questions & Scenarios -
- Develop a horse racing program
- Scenario of identifying right monitor in thread and importance of Yield method
- Controlling the sequence of execution in multithread scenario using wait-notify
- Javarevisited multithreading interview questions
- Dead lock Scenario in Money transfer module
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
http://www.coderanch.com/t/
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
- Cascade and lack on inverse causing duplicate in many to many
- Implicit inverse in one to many relationship
- Implementing optimistic locking in Hibernate
- Optimistic and pessimistic locking implementation in Hibernate
- Using c3p0 connection pool in Hibernate
- Using projection and distinct in detached Criteria query
Subscribe to:
Posts (Atom)