Monthly Archives: October 2013
What are object states in hibernate?
Hibernate defines and supports the following object states:
1. Transient
2. Persistent
3. Detached
What is sessionfactory in hibernate?
org.hibernate Interface SessionFactory
public interface SessionFactory
extends Referenceable, Serializable
The main contract here is the creation of Session
instances.
The internal state of a SessionFactory
is immutable.
An application has a single SessionFactory
instance
1. Session openSession()throws HibernateException
Handler mappings of Spring MVC
1. BeanNameUrlHandlerMapping
2. SimpleUrlHandlerMapping
3. ControllerClassNameHandlerMapping
4. CommansPathMapHandlerMapping
5. DefaultAnnotationHandlerMapping
6. RequestMappingHandlerMapping
7. AbstractControllerUrlHandlerMapping
8. AbstractDetectingUrlHandlerMapping
9. AbstractHandlerMapping
10. AbstractHandlerMethodMapping
11. AbstractUrlHandlerMapping
12. ControllerBeanNameHandlerMapping
13. RequestMappingInfoHandlerMapping
What are the jsp implicit objects?
JSP supports 9 Implicit Objects which are listed below:
1. request
2. response
3. out
4. session
5. application
6. config
7. pageContext
8. page
9. Exception
How many ways to create a thread in java?
We can define a Thread in the following two ways:
1. by extending java.lang.Thread class
2. by implementing java.lang.Runnable interface
jdk 1.5 features
Generics
Enhanced for Loop
Autoboxing/Unboxing
Typesafe Enums
Varargs
Static Import
Annotations
Queue