XPath is a language for finding information in an XML file. XPath provides syntax to define part of an XML document. XPath Expression is a query language to select part of the XML document based on the query String. You can say that XPath is SQL for XML files. XPath is used to navigate through […]
Day: January 7, 2016
What is difference between BeanFactory and ApplicationContext in Spring?
BeanFactory Does not support the Annotation based dependency Injection. ApplicationContext Support Annotation based dependency Injection.-@Autowired, @PreDestroy BeanFactory Does not Support ApplicationContext Application contexts can publish events to beans that are registered as listeners BeanFactory Does not support way to access Message Bundle(internationalization (I18N) ApplicationContext Support internationalization (I18N) messages. BeanFactory Doesn’t support such JNDI access, EJB integration, […]
One of the IT company Interview Questions
Hi viewers, here I am sharing list of interview questions. Why are using Java? Explain java OOPs concepts with one real time example? What is String? What is difference between Stringbuffer and Stringbuilder? What are the precautions/ Steps to create user defined immutable class? Can we use user defined immutable object as hashkey? Yes or […]
What is difference between Vector and ArrayList in Java?
Here is list of my favorite, frequently asked Questions from Java collection framework. Almost all of these questions have appeared in Java interview at various level ranging from Junior to Senior software engineer level. ArrayList and Vector are two of most used class on java collection package What is difference between Vector and ArrayList in Java? […]
What is difference between List, Set and Map
1. What is difference between List, Set and Map? List List is an ordered collection. List allows duplicate elements. List allows null elements and also store many null elements because it allows duplicate elements. The following most useful classes implementing List interface 1. ArrayList 2. LinkedList 3. Vector Set Set is unordered collection. Set does not […]
How To Generate a Self Signed Certificate Using Java Keytool
How To Generate a Self Signed Certificate Using Java Keytool A self signed certificate is a certificate that is signed by itself rather than a trusted authority. Since any attacker can create a self signed certificate and launch a man-in-the-middle attack, a user can’t know whether they are sending their encrypted information to the server […]
Java Reflection API
Java Reflection API Java Reflection API is a process of modifying or retrieve metadata of a class at run time. The java.lang.Class class provides methods that can be used to get metadata and change the run time behavior of a class. The java.lang and java.lang.reflect packages are providing classes for java reflection. The Java Reflection API is […]