1) What is a singleshort ton sieve?How do you writer it? Tell examples? A straighten out which must create only genius determination (ie. One instance) irrespective of any number of design creations found on that class. Steps to develop single ton class:- 1. Create a Private construcor, so that extraneous class can not access this constructor. And declare a reclusive unruffled reference of same class 2. salve a open Factory method which creates an reject. Assign this object to clannish passive Reference and return the object sample distribution Code:- class SingleTon { tete-a-tete unruffled SingleTon st=null; private SingleTon() { System.out.println(In constructor); } public static SingleTon stfactory() { if(st==null) st=new SingleTon();\ return st; } } 2) What is the end between u sing hypertext transfer protocolSeassion & a Stateful Session noodle? Why cant HttpSessionn be use rather of of Session dome? HttpSession is apply to nurture the state of a client in webservers which are based on Http protocol.
Where as Stateful Session bean is a type of bean which can also maintain the state of the client in Application servers based on RMI-IIOP 3)Question on Seggregation in UML? 4) What is impermanent Servlet? When we sent a orison to access a JSP, servlet container internally creates a servlet & finishs it. This servlet is called as Temporary servlet. In general this servlet will be deleted immedi ately to create & execute a servlet base on ! a JSP we can used following command. Java weblogic.jspckeep drived *.jsp 5) chiefly Servlets are used for complete HTML generation. If you pauperism to generate partial HTMLs that take on some static text (this should not be firmly legislationd in servlets) as well as some propelling text, what method do you use? employ RequestDispather.include(xx.html) in the servlet code we can mix the partial static HTDirectoryML page. Ex:-...If you want to get a full essay, wander it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.