Blog

p namespace and c namespace in spring

P namespace and C namespace in spring

p namespace and c namespace help us to reduce the configuration size of XML bean in both of the injection setter as well as Constructor Injection. These are configured as below:p:propertyName="  " and  c:constructorName="  " .Example:p:department-ref="department" p:name="John" p:age="26"deparment,name and age are propertyNamec:deptName="LA"deptName is constructorNameSimple XML configuration  for class beans Employee and

Read More
HashMap in java example

HashMap in java example

HashMap in java exampleHashMap class in java is implements on the Map interface by using Hashtable. It implements Map interface and inherits AbstractMap class.The important feature of HashMap class are:HashMap contains value based on key. It contains only unique elements as key and value pair. It may contains one

Read More
HashSet in java example

HashSet in java example

Java HashSet class is used to create a collection that uses a hash table for storage. It implements Set interface and inherits the AbstractSet class.The important points about Java HashSet class are:1) HashSet stores the values by using the hashing mechanism.2) HashSet contains an only unique value. Difference between List and

Read More
Spring Autowired

Spring Autowired with Example

Spring Autowired feature of spring framework enables you to inject the object dependency implicitly. It internally uses setter or constructor injection.Spring Autowire can't be used to inject primitive and string values. It works with reference only.Spring Autowired modes: There are many autowiring modes:No. Mode Description1) no It is the default autowiring mode. It means no

Read More
RPM Commands Examples in Linux

RPM Commands Examples in Linux

RPM is free and released under GPL (General Public License).by using RPM commands gets the information of all the installed packages under /var/lib/rpm database.RPM deals with .rpm files, which gives the information about the packages such as version , dependecies etc.There are five basic modes for RPM commandInstall :used to install any RPM package. Remove :used

Read More