Difference between session and sessionfactory hibernate?

Difference between session and sessionfactory hibernate? Basically session will be created from the sessionfactory instances. I have listed down the few differences between the session and sessionfactory in hibernate. Sessionfactory: It is one instance per datasource/database. It is thread safe. It is a heavy weight object, because it maintains datasources, mappings, hibernate configuration information’s etc. Sessionfactory will create and manage

» Read more

7 Performance Tuning Tips in Java

7 Performance Tuning Tips in Java: Before start doing performance tuning/optimizations, first use any profiler to identify the areas for optimizations using profilers   Few Java Profilers: yourkit jProfiler Java Flight Recorder Eclipse Test & Performance Tools Platform Project   1. Use available data structures or algorithms: If you want to convert list to set or vice versa, instead of

» Read more

EMI Calculator using JSP, Servlet and Bootstrap

EMI Calculator using JSP, Servlet and Bootstrap: Designing a responsive website reduces the startups to invest separately on android and ios apps. Here we are writting a very simple web application for emi calculator using JSP, Servlet and bootstrap. We used bootstrap in this to integrate responsiveness with JSP pages.     Requirement: Download bootstrap CSS and JS files from

» Read more

Clone Shallow copy vs Deep Copy in Java With Examples

Clone Shallow copy vs Deep Copy in Java With Examples: Clone() method in java used for object duplication. We do not have any method/way other than clone() to make object duplication. Assignment operator(=) will assign the same reference, but it will not duplicate the objects. In java clone() is divided into two types namely shallow copy and deep copy.  

» Read more

Analyse your site SEO with OnPage.org Focus

Analyse your site SEO with onpage.org

Analyse¬†your site SEO with OnPage.org Focus: Recently I came across a tool/site named onPage.org Focus for best SEO practises and techniques. They will provide a lot of information’s about your site and important factors need to be considered for best SEO practices.   What is OnPage.org ? OnPage.org is a site/tool which provides a complete details about website’s SEO/optimization and

» Read more

All Types of Variables in Java

All Types of Variables in Java: In Java we have different names for variable types such as class variable, static variable, member variable, block variable, instance variable & local variable. Sometimes we will get the confusion between these variables.   All Types of Variables in Java:   Member Variable Class Variable Static Variable Instance Variable Block Variable Local Variable  

» Read more
1 2 3 44