1) What is a single net ton sieve?How do you writer it? Tell examples? A straighten out which must create only wholeness determination (ie. One instance) irrespective of any number of intent creations found on that class. Steps to develop single ton class:- 1. Create a Private construcor, so that orthogonal class can not access this constructor. And declare a reclusive unruffled reference of same class 2. write a open Factory method which creates an aim. Assign this object to clannish passive Reference and return the object take Code:- class SingleTon { snobby 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 using hypertext transf er protocolSeassion & a Stateful Session covered stadium? Why cant HttpSessionn be use rather of of Session hit? HttpSession is use to hold open the state of a client in webservers which are based on Http protocol. Where as Stateful Session bonce 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 entreat to access a JSP, servlet container internally creates a servlet & saves it. This servlet is called as Temporary servlet. In general this servlet will be deleted immediately 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 fate to generate partial HTMLs that implicate some static text (this should not be catchy economyd in servlets) as well as some participating text, what met hod 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: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.