Difference between load and get method?

Answer

load() can’t find the object from cache or database, an exception is thrown and the load() method never returns null.

get() method returns null if the object can’t be found. The load() method may return a proxy instead of a real persistent instance get() never returns a proxy.

There are no structural differences between the files; they are all archived using zip-jar compression. However, they are intended for different purposes.

*Jar files are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.
*War files are intended to contain complete Web applications.
*Ear files are intended to contain complete enterprise applications.

Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc - See more at: http://inheritingjava.blogspot.in/2011/04/j2ee-interview-questions.html#sthash.BTqD58j2.dpuf
There are no structural differences between the files; they are all archived using zip-jar compression. However, they are intended for different purposes.

*Jar files are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.
*War files are intended to contain complete Web applications.
*Ear files are intended to contain complete enterprise applications.

Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc. - See more at: http://inheritingjava.blogspot.in/2011/04/j2ee-interview-questions.html#sthash.BTqD58j2.dpuf
There are no structural differences between the files; they are all archived using zip-jar compression. However, they are intended for different purposes.

*Jar files are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.
*War files are intended to contain complete Web applications.
*Ear files are intended to contain complete enterprise applications.

Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc. - See more at: http://inheritingjava.blogspot.in/2011/04/j2ee-interview-questions.html#sthash.BTqD58j2.dpuf
There are no structural differences between the files; they are all archived using zip-jar compression. However, they are intended for different purposes.

*Jar files are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.
*War files are intended to contain complete Web applications.
*Ear files are intended to contain complete enterprise applications.

Each type of file (.jar, .war, .ear) is processed uniquely by application servers, servlet containers, EJB containers, etc. - See more at: http://inheritingjava.blogspot.in/2011/04/j2ee-interview-questions.html#sthash.BTqD58j2.dpuf

All j2ee Questions

Ask your interview questions on j2ee

Write Your comment or Questions if you want the answers on j2ee from j2ee Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---