Core Java Examples
Basic
1. How to sort an array in reverse order using Collections.reverseOrder().
2. How to convert an ascii value to char in Java.
3. How to convert a char to ascii value in Java.
4. How to write a Copy Constructor using Deep copy.
5. How to write a Copy Constructor using Copy Constructor.
6. How to read input from keyboard in Java.
Collections
Basic
1. How to sort an array in reverse order using Collections.reverseOrder().
2. How to convert an ascii value to char in Java.
3. How to convert a char to ascii value in Java.
4. How to write a Copy Constructor using Deep copy.
5. How to write a Copy Constructor using Copy Constructor.
6. How to read input from keyboard in Java.
Collections
1. How to use HashSet(Non-Generic)
2. How to use Hashset (Generic)
3. In how many ways Set elements can be traversed.(Non-Generic).
4. In how many ways Set elements can be traversed.(Generic).
5. How to sort HashSet using TreeSet.
6. How to sort HashSet using Arrays.sort()
7. How to sort a Set using Collections.sort()
Spring Examples
1. Setter-Method based Dependency Injection Example.
2. Constructor based Dependency Injection Example.
3. Injection of values into ‘Collection’ and 'array' type properties.
4. Injection of values into ‘Map’ and ‘java.util.Properties’ type properties.
Writing aspects as Pure-POJO (using Spring’s aop configuration namespace)
Following examples show how to declare aspects declaratively. All AOP related info lies in XML configuration file and aspect is just a pure POJO ( with no aop info in it).
1. How to declare Before and After Advice.
2. How to declare After, After-Returning and After-Throwing advice.
3. How to declare Around advice.
Writing aspects using @AspectJ feature.
@AspectJ feature is introduced in AspectJ 5. With this feature we use annotations in a java class to make it an aspect. Much less AOP info is needed to be defined in XML file.
1. How to declare Before and After Advice using @AspectJ.
2. How to declare After, After-Returning and After-Throwing advice using @AspectJ.
3. How to declare Around advice using @AspectJ.
2. How to use Hashset (Generic)
3. In how many ways Set elements can be traversed.(Non-Generic).
4. In how many ways Set elements can be traversed.(Generic).
5. How to sort HashSet using TreeSet.
6. How to sort HashSet using Arrays.sort()
7. How to sort a Set using Collections.sort()
Spring Examples
Spring Core
Spring Basics
Dependency Injection
1. Setter-Method based Dependency Injection Example.
2. Constructor based Dependency Injection Example.
3. Injection of values into ‘Collection’ and 'array' type properties.
4. Injection of values into ‘Map’ and ‘java.util.Properties’ type properties.
Spring AOP
Writing aspects as Pure-POJO (using Spring’s aop configuration namespace)
Following examples show how to declare aspects declaratively. All AOP related info lies in XML configuration file and aspect is just a pure POJO ( with no aop info in it).
1. How to declare Before and After Advice.
2. How to declare After, After-Returning and After-Throwing advice.
3. How to declare Around advice.
Writing aspects using @AspectJ feature.
@AspectJ feature is introduced in AspectJ 5. With this feature we use annotations in a java class to make it an aspect. Much less AOP info is needed to be defined in XML file.
1. How to declare Before and After Advice using @AspectJ.
2. How to declare After, After-Returning and After-Throwing advice using @AspectJ.
3. How to declare Around advice using @AspectJ.
Spring JDBC Integration
Spring ORM
Spring Hibernate Integration
Spring Hibernate integration using ‘HibernateTemplate’s (without callbacks).
Spring Hibernate integration using ‘HibernateTemplate’s (with callbacks).
Spring Hibernate integration example using ‘HibernateDaoSupport’ classes.
Spring Hibernate integration example using ‘Hibernate 3 Contextual Sessions’.
Spring Hibernate integration example using hibernate xml mapping files.
Spring Hibernate integration example using Annotations.
Spring Hibernate integration using ‘HibernateTemplate’s (with callbacks).
Spring Hibernate integration example using ‘HibernateDaoSupport’ classes.
Spring Hibernate integration example using ‘Hibernate 3 Contextual Sessions’.
Spring Hibernate integration example using hibernate xml mapping files.
Spring Hibernate integration example using Annotations.
Transactions
Spring-Hibernate
Spring Declarative Transaction Management with transaction semantics defined in Xml files.
Spring Declarative Transaction Management using Annotations.
Spring Declarative Transaction Management using Annotations.
No comments:
Post a Comment