{"id":511,"date":"2008-07-25T00:00:00","date_gmt":"2008-07-24T16:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=511"},"modified":"2011-07-15T09:24:32","modified_gmt":"2011-07-15T01:24:32","slug":"unique-skill","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=511","title":{"rendered":"Unique Skill"},"content":{"rendered":"<p><P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>What is transient variable?<?xml:namespace prefix = o ns = \"urn:schemas-microsoft-com:office:office\" \/><o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Transient variable can&#8217;t be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can&#8217;t be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Name the containers which uses Border Layout as their default layout?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Containers which use Border Layout as their default ones are, window, Frame and Dialog classes.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>What do you understand by Synchronization?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object&#8217;s value. Synchronization prevents such type of data corruption.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">E.g. Synchronizing a function:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>public synchronized void Method1 () {<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>\/\/ Appropriate method-related code. <\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>}<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">E.g. Synchronizing a block of code inside a function:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>public myFunction (){<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>synchronized (this) { <\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>\/\/ Synchronized code here.<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>}<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>What is Collection API?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Collection<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;-Set<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;&#8212;&#8211;HashSet<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;&#8212;&#8211;TreeSet<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;&#8212;&#8211;LinkedList<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;-List<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;&#8212;&#8211;ArrayList<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;&#8212;&#8211;Vector<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Map<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;-Hashtable<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&#8212;-HashMap<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Is Iterator a Class or Interface? What is its use?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Iterator is an interface which is used to step through the elements of a Collection.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>What is similarities\/difference between an Abstract class and Interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Similarities<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.1.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>They can be used to implement the polymorphism.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.1.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Both of them can not be instantiated.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Differences<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.2.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Interface can be used to implement the multiple inheritances while the abstract can not. Because the Java only provides the single inheritance.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.2.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>There is no implementation in the interfaces. But in abstract class, you can implement some common logic.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.2.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>In interface, there can be only public methods and public static fields.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>6.2.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>The efficiency with interface is lower than abstract class. (If it refer to the<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>overrode function)<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>7<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>How to define an Interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">7<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US>In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.<\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Emaple of Interface:<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>public interface sampleInterface {<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>public void functionOne();<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>public static long CONSTANT_ONE = 1000; <\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>}<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>8<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain the user defined Exceptions?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">8<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US>User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught in the same way as normal exceptions. <\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">Example:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>class myCustomException extends Exception {<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>\/\/ The class simply has to exist to be an exception <\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>}<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain the new Features of JDBC 2.0 Core API?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>The JDBC 2.0 API includes the complete JDBC API, which includes both core and Optional Package API, and provides inductrial-strength database computing capabilities. <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">New Features in JDBC 2.0 Core API:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Scrollable result sets &#8211; using new methods in the ResultSet interface allows programmatically move the to particular row or to a position relative to its current position. The methods is ResultSet.relative(\u2026).<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>JDBC 2.0 Core API provides the Batch Updates functionality to the java applications. <\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Java applications can now use the ResultSet.updateXXX methods. <\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>New data types &#8211; interfaces mapping the SQL3 data types <\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9.5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Custom<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>mapping of user-defined types (UTDs) <\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>9.6<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Miscellaneous features, including performance hints, the use of character streams, full precision for java.math.BigDecimal values, additional security, and support for time zones in date, time, and timestamp values.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>10<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain garbage collection?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables\/objects (value is null) from the memory. User program cann&#8217;t directly free the object from memory, instead it is the job of the garbage collector to automatically free the objects that are no longer referenced by a program. Every class inherits finalize() method from java.lang.Object, the finalize() method is called by garbage collector when it determines no more references to the object exists. In Java, it is good idea to explicitly assign null into a variable when no more in use. I Java on calling System.gc() and Runtime.gc(),<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>11<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>How you can force the garbage collection?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">Garbage collection automatic process and can&#8217;t be forced.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>12<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>What is OOPS?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">OOP is the common abbreviation for Object-Oriented Programming.<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>13<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Describe the principles of OOPS.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>14<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain the Encapsulation principle.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">14<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US>Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code and data from being arbitrarily accessed by other code defined outside the wrapper.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>15<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain the Inheritance principle.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">15<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US>Inheritance is the process by which one object acquires the properties of another object.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>16<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain the Polymorphism principle.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>16.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>One name many forms.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>16.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>One interface multiple implementations.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism can be explained as &#8220;one interface, multiple methods&#8221;.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>17<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Explain the different forms of Polymorphism.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>From a practical programming viewpoint, polymorphism exists in three distinct forms in <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">Java: <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 31.5pt; mso-para-margin-left: 3.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Method overloading <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 31.5pt; mso-para-margin-left: 3.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Method overriding through inheritance <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 31.5pt; mso-para-margin-left: 3.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Method overriding through the Java interface<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>18<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Access specifiers are keywords that determine the type of access to the member of a class. <o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Public <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Protected <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Defaults(Package)<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Private <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>19<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Describe the wrapper classes in Java.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Following table lists the primitive types and the corresponding wrapper classes:<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<TABLE class=MsoNormalTable style=\"BACKGROUND: #ffffcc; MARGIN: auto auto auto 94.5pt; WIDTH: 43%; mso-cellspacing: 0cm; mso-padding-alt: 2.25pt 2.25pt 2.25pt 2.25pt\" cellSpacing=0 cellPadding=0 width=\"43%\" border=1><br \/>\n<TBODY><br \/>\n<TR style=\"mso-yfti-irow: 0; mso-yfti-firstrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; BACKGROUND: #ffff99; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Primitive<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; BACKGROUND: #ffff99; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Wrapper<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 1\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">boolean<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Boolean<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 2\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">byte<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Byte<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 3\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">char<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Character<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 4\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">double<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Double<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 5\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">float<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Float<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 6\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">int<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Integer<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 7\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">long<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Long<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 8\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">short<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Short<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 9; mso-yfti-lastrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 36.14%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"36%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">void<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 2.25pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #d4d0c8; WIDTH: 63.86%; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=\"63%\"><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">&nbsp;&nbsp;java.lang.Void<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><\/SPAN>&nbsp;<\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>20<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>Read the following program:<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>public class test {<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>public static void main(String [] args) {<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>int x = 3;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>int y = 1;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>if (x = y)<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Not equal&#8221;);<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>else<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Equal&#8221;);<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN>}<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>}<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>What is the result?<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>A. The output is \u201cEqual\u201d<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>B. The output in \u201cNot Equal\u201d<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>C. An error at &#8221; if (x = y)&#8221; causes compilation to fall.<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>D. The program executes but no output is show on console.<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Answer: C<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>21<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>what is the class variables ?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\">When we create a number of objects of the same class, then each object will share a common copy of variables. That means that there is only one copy per class, no matter how many objects are created from it. Class variables or static variables are declared with the static keyword in a class, but mind it that it should be declared outside outside a class. These variables are stored in static memory. Class variables are mostly used for constants, variable that never change its initial value. Static variables are always called by the class name. This variable is created when the program starts i.e. it is created before the instance is created of class by using new operator and gets destroyed when the programs stops. The scope of the class variable is same a instance variable. The class variable can be defined anywhere at class level with the keyword static. It initial value is same as instance variable. When the class variable is defined as int then it&#8217;s initial value is by default zero, when declared boolean its default value is false and null for object references. Class variables are associated with the class, rather than with any object.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>22<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>What is the difference between the instanceof and getclass, these two are same or not ?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Instanceof is a operator, not a function while getClass is a method of java.lang.Object class. Consider a condition where we use <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>if(o.getClass().getName().equals(&#8220;java.lang.Math&#8221;)){ }<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>This method only checks if the classname we have passed is equal to java.lang.Math. The class java.lang.Math is loaded by the bootstrap ClassLoader. This class is an abstract class.This class loader is responsible for loading classes. Every Class object contains a reference to the ClassLoader that defines. getClass() method returns the runtime class of an object. It fetches the java instance of the given fully qualified type name. The code we have written is not necessary, because we should not compare getClass.getName(). The reason behind it is that if the two different class loaders load the same class but for the JVM, it will consider both classes as different classes so, we can&#8217;t compare their names. It can only gives the implementing class but can&#8217;t compare a interface, but instanceof operator can. <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>The instanceof operator compares an object to a specified type. We can use it to test if an object is an instance of a class, an instance of a subclass, or an instance of a class that implements a particular interface. We should try to use instanceof operator in place of getClass() method. Remember instanceof opeator and getClass are not same. Try this example, it will help you to better understand the difference between the two. <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>Interface one{<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>}<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>Class Two implements one {<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>}<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>Class Three implements one {<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>}<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>public class Test {<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 31.5pt; mso-para-margin-left: 3.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>public static void main(String args[]) {<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>One test1 = new Two();<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>One test2 = new Three();<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>System.out.println(test1 instanceof one); \/\/true<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>System.out.println(test2 instanceof one); \/\/true<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>System.out.println(Test.getClass().equals(test2.getClass())); \/\/false<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 31.5pt; mso-para-margin-left: 3.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>}<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>} <\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>23<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US>Is \u201cabc\u201d a primitive value?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 20.6pt; mso-char-indent-count: 1.96\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The String literal \u201cabc\u201d is not a primitive value. It is a String object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 20.6pt; mso-char-indent-count: 1.96\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>24<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What restrictions are placed on the values of each case of a switch statement? <o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">During compilation, the values of each case of a switch statement must evaluate to a value <SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp; <\/SPAN>that can be promoted to an int value. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>25<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What modifiers may be used with an interface declaration? \u2013<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An interface may be declared as public or abstract. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>26<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between a while statement and a do statement?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>27<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What modifiers can be used with a local inner class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A local inner class may be final or abstract. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>28<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the File class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The File class is used to create objects that provide access to the files and directories of a local file system. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>29<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can an exception be rethrown? <o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes, an exception can be rethrown. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>30<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>When does the compiler supply a default constructor for a class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The compiler supplies a default constructor for a class if no other constructors are provided. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>31<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If a method is declared as protected, where may the method be accessed?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>32<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which non-Unicode letter characters may be used as the first character of an identifier?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The non-Unicode letter characters $ and _ may appear as the first character of an identifier <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>33<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What restrictions are placed on method overloading?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Two methods may not have the same name and argument list but different return types. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>34<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is casting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>35<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the return type of a program\u2019s main() method?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A program\u2019s main() method has a void return type. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>36<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What class of exceptions are generated by the Java run-time system?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Java runtime system generates RuntimeException and Error exceptions. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>37<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What class allows you to read objects directly from a stream?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The ObjectInputStream class supports the reading of objects from input streams. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>38<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the difference between a field variable and a local variable?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A field variable is a variable that is declared as a member of a class. A local variable is a variable that is declared local to a method. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>39<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How are this() and super() used with constructors?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>40<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the relationship between a method\u2019s throws clause and the exceptions that can be thrown during the method\u2019s execution?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A method\u2019s throws clause must declare any checked exceptions that are not caught within the body of the method. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>41<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Why are the methods of the Math class static?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">So they can be invoked as if they are a mathematical code library. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>42<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the legal operands of the instanceof operator?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The left operand is an object reference or null value and the right operand is a class, interface, or array type. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>43<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are E and PI?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">E is the base of the natural logarithm and PI is mathematical value pi. They are defined in the Math class.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>44<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Are true and false keywords?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The values true and false are not keywords. Both are the constant values like 0, 1, 2.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>45<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the difference between the File and RandomAccessFile classes?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>46<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What happens when you add a double value to a String?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The result is a String object. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>47<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is your platform\u2019s default character encoding?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>48<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Which package is always imported by default?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The java.lang package is always imported by default. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>49<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What interface must an object implement before it can be written to a stream as an object?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>50<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">How can my application get to know when a HttpSession is removed?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Define a Class HttpSessionNotifier which implements HttpSessionBindingListener and implement the functionality what you need in valueUnbound() method. Create an instance of that class and put that instance in HttpSession. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>51<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What\u2019s the difference between notify() and notifyAll()?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">notify() is used to unblock one waiting thread; notifyAll() is used to unblock all of them. Using notify() is preferable (for efficiency) when only one blocked thread can benefit from the change (for example, when freeing a buffer back into a pool). notifyAll() is necessary (for correctness) if multiple threads should resume (for example, when releasing a \u201cwriter\u201d lock on a file might permit all \u201creaders\u201d to resume). <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>52<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why can\u2019t I say just abs() or sin() instead of Math.abs() and Math.sin()?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT size=3><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\">The import statement does not bring methods into your local name space. It lets you abbreviate class names, but not get rid of them altogether. That\u2019s just the way it works, you<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u2019<\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\">ll get used to it. It\u2019s really a lot safer this way. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">However, there is actually a little trick you can use in some cases that gets you what you want. If your top-level class doesn\u2019t need to inherit from anything else, make it inherit from java.lang.Math. That *does* bring all the methods into your local name space. But you can\u2019t use this trick in an applet, because you have to inherit from java.awt.Applet. And actually, you can\u2019t use it on java.lang.Math at all, because Math is a \u201cfinal\u201d class which means it can\u2019t be extended. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>53<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Why are there no global variables in Java?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Global variables are considered bad form for a variety of reasons: Adding state variables breaks referential transparency (you no longer can understand a statement or expression on its own: you need to understand it in the context of the settings of the global variables), State variables lessen the cohesion of a program: you need to know more to understand how something works. A major point of Object-Oriented programming is to break up global state into more easily understood collections of local state, When you add one variable, you limit the use of your program to one instance. What you thought was global, someone else might think of as local: they may want to run two copies of your program at once. For these reasons, Java decided to ban global variables. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>54<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What does it mean that a class or member is final?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A final class can no longer be subclassed. Mostly this is done for security reasons with basic classes like String and Integer. It also allows the compiler to make some optimizations, and makes thread safety a little easier to achieve. Methods may be declared final as well. This means they may not be overridden in a subclass. Fields can be declared final, too. However, this has a completely different meaning. A final field cannot be changed after it\u2019s initialized, and it must include an initializer statement where it\u2019s declared. For example, public final double c = 2.998; It\u2019s also possible to make a static field final to get the effect of C++\u2019s const statement or some uses of C\u2019s #define, e.g. public static final double c = 2.998; <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>55<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What does it mean that a method or class is abstract?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An abstract class cannot be instantiated. Only its subclasses can be instantiated. You indicate that a class is abstract with the abstract keyword like this: <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>public abstract class Container extends Component {<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Abstract classes may contain abstract methods. A method declared abstract is not actually implemented in the current class. It exists only to be overridden in subclasses. It has no body. For example, <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>public abstract float price();<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Abstract methods may only be included in abstract classes. However, an abstract class is not required to have any abstract methods, though most of them do. Each subclass of an abstract class must override the abstract methods of its superclasses or itself be declared abstract. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>56<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is a transient variable?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Transient variable is a variable that may not be serialized. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>57<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">How are Observer and Observable used?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>58<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Can a lock be acquired on a class?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes, a lock can be acquired on a class. This lock is acquired on the class\u2019s Class object. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>59<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What state does a thread enter when it terminates its processing?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When a thread terminates its processing, it enters the dead state. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>60<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the difference between the &gt;&gt; and &gt;&gt;&gt; operators?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The &gt;&gt; operator carries the sign bit when shifting right. The &gt;&gt;&gt; zero-fills bits that have been shifted out. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>61<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Is sizeof a keyword?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The sizeof operator is not a keyword. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>62<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Does garbage collection guarantee that a program will not run out of memory?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>63<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can an object\u2019s finalize() method be invoked while it is reachable?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An object\u2019s finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object\u2019s finalize() method may be invoked by other objects. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3><\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>64<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What value does readLine() return when it has reached the end of a file?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The readLine() method returns null when it has reached the end of a file. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>65<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Can a for statement loop indefinitely?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes, a for statement can loop indefinitely. For example, consider the following: for($$) ; <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>66<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">To what value is a variable of the String type automatically initialized?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The default value of an String type is null. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>67<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is a task\u2019s priority and how is it used in scheduling?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A task\u2019s priority is an integer value that identifies the relative order in which it should be executed with respect to other tasks. The scheduler attempts to schedule higher priority tasks before lower priority tasks. Please see the method public final void setPriority(int newPriority) in class Thread.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>68<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the range of the short type?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The range of the short type is -(2^15) to 2^15 &#8211; 1. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>69<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the purpose of garbage collection?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>70<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What do you understand by private, protected and public?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, However the protected keyword allows visibility to a derived class in a different package. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>71<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is Downcasting?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>72<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Can a method be overloaded based on different return type but same argument type ?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">No, because the methods can be called without using their return type in which case there is ambiquity for the compiler <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>73<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What happens to a static var that is defined within a method of a class ?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Can\u2019t do it. You\u2019ll get a compilation error <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>74<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">How many static init can you have ?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">As many as you want, but the static initializers and class variable initializers are executed in textual order and may not refer to class variables declared in the class whose declarations appear textually after the use, even though these class variables are in scope. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>75<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the difference amongst JVM Spec, JVM Implementation, JVM Runtime ?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> <o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The JVM spec is the blueprint for the JVM generated and owned by Sun. The JVM implementation is the actual implementation of the spec by a vendor and the JVM runtime is the actual running instance of a JVM implementation <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>76<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Describe what happens when an object is created in Java?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Several things happen in a particular order to ensure the object is constructed properly: Memory is allocated from heap to hold all instance variables and implementation-specific data of the object and its superclasses. Implemenation-specific data includes pointers to class and method data. The instance variables of the objects are initialized to their default values. The constructor for the most derived class is invoked. The first thing a constructor does is call the consctructor for its superclasses. This process continues until the constrcutor for java.lang.Object is called, as java.lang.Object is the base class for all objects in java. Before the body of the constructor is executed, all instance variable initializers and initialization blocks are executed. Then the body of the constructor is executed. Thus, the constructor for the base class completes first and constructor for the most derived class completes last. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>77<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why does it take so much time to access an Applet having Swing Components the first time? <o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Because behind every swing component are many Java objects and resources. This takes time to create them in memory. JDK 1.3 from Sun has some improvements which may lead to faster execution of Swing applications. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>78<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Action Class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">78<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">The Action is part of the controller. The purpose of Action Class is to translate the HttpServletRequest to the business logic. To use the Action, we need to<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>Subclass and overwrite the execute()<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>method. The ActionServlet (commad) passes the parameterized class to Action Form using the execute() method. There should be no database interactions in the action. The action should receive the request, call business objects (which then handle database, or interface with J2EE, etc) and then determine where to go next. Even better, the business objects could be handed to the action at runtime (IoC style) thus removing any dependencies on the model.<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>The return type of the execute method is ActionForward which is used by the Struts Framework to forward the request to the file as per the value of the returned ActionForward object.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>79<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Write code of any Action Class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">79<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> Here is the code of Action Class that returns the ActionForward object.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 26.05pt; mso-char-indent-count: 2.48\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">TestAction.java<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 29.75pt; mso-char-indent-count: 2.48\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<TABLE class=MsoNormalTable style=\"BACKGROUND: #ffff99; WIDTH: 415.5pt; mso-cellspacing: .7pt\" cellSpacing=1 cellPadding=0 width=554 border=1><br \/>\n<TBODY><br \/>\n<TR style=\"mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0.75pt; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0.75pt; BORDER-LEFT: #d4d0c8; WIDTH: 408pt; PADDING-TOP: 0.75pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" width=544><br \/>\n<TABLE class=MsoNormalTable style=\"BACKGROUND: #ffff99; WIDTH: 408pt; mso-cellspacing: 0cm; mso-padding-alt: 2.25pt 2.25pt 2.25pt 2.25pt\" cellSpacing=0 cellPadding=0 width=544 border=0><br \/>\n<TBODY><br \/>\n<TR style=\"mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: #ffffff; PADDING-RIGHT: 2.25pt; BORDER-TOP: #ffffff; PADDING-LEFT: 2.25pt; PADDING-BOTTOM: 2.25pt; BORDER-LEFT: #ffffff; PADDING-TOP: 2.25pt; BORDER-BOTTOM: #ffffff; BACKGROUND-COLOR: transparent\" vAlign=top noWrap><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 10.5pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-para-margin-left: 1.0gd\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">package&nbsp;<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">roseindia.net;<BR><BR><B>import&nbsp;<\/B>javax.servlet.http.HttpServletRequest;<BR><B>import&nbsp;<\/B>javax.servlet.http.HttpServletResponse;<BR><BR><B>import&nbsp;<\/B>org.apache.struts.action.Action;<BR><B>import&nbsp;<\/B>org.apache.struts.action.ActionForm;<BR><B>import&nbsp;<\/B>org.apache.struts.action.ActionForward;<BR><B>import&nbsp;<\/B>org.apache.struts.action.ActionMapping;<BR><BR><B>public&nbsp;class&nbsp;<\/B>TestAction&nbsp;<B>extends&nbsp;<\/B>Action<BR>{<BR>&nbsp;&nbsp;<B>public&nbsp;<\/B>ActionForward&nbsp;execute(<BR>&nbsp;&nbsp;&nbsp;&nbsp;ActionMapping&nbsp;mapping,<BR>&nbsp;&nbsp;&nbsp;&nbsp;ActionForm&nbsp;form,<BR>&nbsp;&nbsp;&nbsp;&nbsp;HttpServletRequest&nbsp;request,<BR>&nbsp;&nbsp;&nbsp;&nbsp;HttpServletResponse&nbsp;response)&nbsp;<B>throws&nbsp;<\/B>Exception{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>return&nbsp;<\/B>mapping.findForward(&#8220;testAction&#8221;);<BR>&nbsp;&nbsp;}<BR>} <o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 26.15pt; mso-char-indent-count: 2.48\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>80<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is ActionForm?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">80<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm. ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>81<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Struts Validator Framework?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">81<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Struts Framework provides the functionality to validate the form data. It can be use to validate the data on the users browser as well as on the server side. Struts Framework emits the java scripts and it can be used validate the form data on the client browser. Server side validation of form can be accomplished by sub classing your From Bean with DynaValidatorForm class.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Validator framework was developed by David Winterfeldt as third-party add-on to Struts. Now the Validator framework is a part of Jakarta Commons project and it can be used with or without Struts. The Validator framework comes integrated with the Struts Framework and can be used without doing any extra settings.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>82<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Give the Details of XML files used in Validator Framework?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Validator Framework uses two XML configuration files validator-rules.xml and validation.xml. The validator-rules.xml defines the standard validation routines, these are reusable and used in validation.xml. to define the form specific validations. The validation.xml defines the validations applied to a form bean.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>83<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How you will display validation fail errors on jsp page?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">83<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Following tag displays all the errors:<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;html:errors\/&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>84<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How you will enable front-end validation based on the xml in validation.xml?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">84<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">The &lt;html:javascript&gt; tag to allow front-end validation based on the xml in validation.xml. For<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>example the code: &lt;html:javascript formName=&#8221;logonForm&#8221; dynamicJavascript=&#8221;true&#8221; staticJavascript=&#8221;true&#8221; \/&gt; generates the client side java script for the form &#8220;logonForm&#8221; as defined in the validation.xml file. The &lt;html:javascript&gt; when added in the jsp file generates the client site validation script.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>85<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is RequestProcessor and RequestDispatcher?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>The controller is responsible for intercepting and translating user input into actions to be performed by the model. The controller is responsible for selecting the next view based on user input and the outcome of model operations. The Controller receives the request from the browser, invoke a business operation and coordinating the view to return to the client.<BR><BR>The controller is implemented by a java servlet, this servlet is centralized point of control for the web application. In struts framework the controller responsibilities are implemented by several different components like<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US><BR><FONT size=3><FONT face=\"Times New Roman\"><B>The ActionServlet Class<BR>The RequestProcessor Class<BR>The Action Class<\/B><BR><BR>The ActionServlet extends the<B> javax.servlet.http.httpServlet<\/B> class. The ActionServlet class is not abstract and therefore can be used as a concrete controller by your application.<BR>The controller is implemented by the ActionServlet class. All incoming requests are mapped to the central controller in the deployment descriptor as follows.<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>&lt;servlet&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;servlet-name&gt;action&lt;\/servlet-name&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;servlet-class&gt;org.apache.struts.action.ActionServlet&lt;\/servlet-class&gt;<BR>&lt;\/servlet&gt;<\/FONT><\/SPAN><SPAN lang=EN-US><BR><\/SPAN><\/B><SPAN lang=EN-US><BR><BR><FONT face=\"Times New Roman\" size=3>All request URIs with the pattern *.do are mapped to this servlet in the deployment descriptor as follows.<BR><BR><\/FONT><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>&lt;servlet-mapping&gt;<BR><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;servlet-name&gt;action&lt;\/servlet-name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;*.do&lt;\/url-pattern&gt;<BR>&lt;\/servlet-mapping&gt;<\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>A request URI that matches this pattern will have the following form.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>http:\/\/www.my_site_name.com\/mycontext\/actionName.do<BR><\/FONT><\/SPAN><\/B><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>The preceding mapping is called extension mapping, however, you can also specify path mapping where a pattern ends with \/* as shown below.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>&lt;servlet-mapping&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;action&lt;\/servlet-name&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;\/do\/*&lt;\/url-pattern&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><FONT size=3><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\">&lt;\/servlet-mapping&gt;<\/SPAN><SPAN lang=EN-US><o:p><\/o:p><\/SPAN><\/FONT><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>A request URI that matches this pattern will have the following form.<BR>http:\/\/www.my_site_name.com\/mycontext\/do\/action_Name<BR>The class <B>org.apache.struts.action.requestProcessor<\/B> process the request from the controller. You can sublass the RequestProcessor with your own version and modify how the request is processed.<BR><BR>Once the controller receives a client request, it delegates the handling of the request to a helper class. This helper knows how to execute the business operation associated with the requested action. In the Struts framework this helper class is descended of org.apache.struts.action.Action class. It acts as a bridge between a client-side user action and business operation. The Action class decouples the client request from the business model. This decoupling allows for more than one-to-one mapping between the user request and an action. The Action class also can perform other functions such as authorization, logging before invoking business operation. the Struts Action class contains several methods, but most important method is the execute() method.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>public ActionForward execute(ActionMapping mapping,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ActionForm form, HttpServletRequest request, HttpServletResponse response)&nbsp;&nbsp;&nbsp; throws Exception;&nbsp;<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>The execute() method is called by the controller when a request is received from a client. The controller creates an instance of the Action class if one doesn<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\"><FONT size=3>\u62b0<\/FONT><\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3> already exist. The strut framework will create only a single instance of each Action class in your application.<BR><BR>Action are mapped in the struts configuration file and this configuration is loaded into memory at startup and made available to the framework at runtime. Each Action element is represented in memory by an instance of the org.apache.struts.action.ActionMapping class . The ActionMapping object contains a path attribute that is matched against a portion of the URI of the incoming request.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>&lt;action<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path= &#8220;\/somerequest&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&#8221;com.somepackage.someAction&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scope=&#8221;request&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=&#8221;someForm&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; validate=&#8221;true&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input=&#8221;somejsp.jsp&#8221;&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;forward name=&#8221;Success&#8221; path=&#8221;\/action\/xys&#8221; redirect=&#8221;true&#8221;\/&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;forward name=&#8221;Failure&#8221; path=&#8221;\/somejsp.jsp&#8221; redirect=&#8221;true&#8221;\/&gt;<BR>&lt;\/action&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>Once this is done the controller should determine which view to return to the client. The execute method signature in Action class has a return type org.apache.struts.action.ActionForward class. The ActionForward class represents a destination to which the controller may send control once an action has completed. Instead of specifying an actual JSP page in the code, you can declaratively associate as action forward through out the application. The action forward are specified in the configuration file.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>&lt;action&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path= &#8220;\/somerequest&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&#8221;com.somepackage.someAction&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scope=&#8221;request&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=&#8221;someForm&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; validate=&#8221;true&#8221;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input=&#8221;somejsp.jsp&#8221;<BR>&nbsp;&nbsp;&nbsp; &lt;forward name=&#8221;Success&#8221; path=&#8221;\/action\/xys&#8221; redirect=&#8221;true&#8221;\/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;forward name=&#8221;Failure&#8221; path=&#8221;\/somejsp.jsp&#8221; redirect=&#8221;true&#8221;\/&gt;<BR>&lt;\/action&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>The action forward mappings also can be specified in a global section, independent of any specific action mapping.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><BR><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>&lt;global-forwards&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;forward name=&#8221;Success&#8221; path=&#8221;\/action\/somejsp.jsp&#8221; \/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;forward name=&#8221;Failure&#8221; path=&#8221;\/someotherjsp.jsp&#8221; \/&gt;<BR>&lt;\/global-forwards&gt;<\/FONT><\/SPAN><\/B><SPAN lang=EN-US><BR><BR><FONT face=\"Times New Roman\"><FONT size=3><B>public interface RequestDispatcher<\/B><BR><BR>Defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server. The servlet container creates the RequestDispatcher object, which is used as a wrapper around a server resource located at a particular path or given by a particular name.<BR>This interface is intended to wrap servlets, but a servlet container can create RequestDispatcher objects to wrap any type of resource.<BR><BR><\/FONT><\/FONT><\/SPAN><B><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>getRequestDispatcher<\/FONT><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><BR><BR><FONT size=3>public RequestDispatcher getRequestDispatcher(java.lang.String path)<\/FONT><\/SPAN><SPAN lang=EN-US><BR><\/SPAN><\/B><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static.<BR>The pathname must begin with a &#8220;\/&#8221; and is interpreted as relative to the current context root. Use getContext to obtain a RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a RequestDispatcher.<BR><BR><\/FONT><\/SPAN><B><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>Parameters:<BR>&nbsp;&nbsp;&nbsp; path &#8211; a String specifying the pathname to the resource&nbsp;<BR>Returns:<BR>&nbsp;&nbsp;&nbsp; a RequestDispatcher object that acts as a wrapper for the resource at the specified path&nbsp;<BR>See Also:<BR>&nbsp;&nbsp;&nbsp; RequestDispatcher, getContext(java.lang.String)<\/FONT><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><BR><BR><FONT size=3>getNamedDispatcher<BR><BR>public RequestDispatcher getNamedDispatcher(java.lang.String name)<\/FONT><\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><BR><\/SPAN><SPAN lang=EN-US><BR><FONT face=\"Times New Roman\" size=3>Returns a RequestDispatcher object that acts as a wrapper for the named servlet.<BR>Servlets (and JSP pages also) may be given names via server administration or via a web application deployment descriptor. A servlet instance can determine its name using ServletConfig.getServletName().<BR>This method returns null if the ServletContext cannot return a RequestDispatcher for any reason.<BR><BR><\/FONT><\/SPAN><B><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><FONT size=3>Parameters:<BR>&nbsp;&nbsp;&nbsp; name &#8211; a String specifying the name of a servlet to wrap&nbsp;<BR>Returns:<BR>&nbsp;&nbsp;&nbsp; a RequestDispatcher object that acts as a wrapper for the named servlet&nbsp;<BR>See Also:<BR>&nbsp;&nbsp;&nbsp;RequestDispatcher,getContext(java.lang.String),ServletConfig.getServletName()<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>86<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Is struts threadsafe?Give an example?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">86<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Struts is not only thread-safe but thread-dependant. The response to a request is handled by a light-weight Action object, rather than an individual servlet. Struts instantiates each Action class once, and allows other requests to be threaded through the original object. This core strategy conserves resources and provides the best possible throughput. A properly-designed application will exploit this further by routing related operations through a single Action.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>87<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can we Serialize static variable?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Serialization is the process of converting a set of object instances that contain references to each other into a linear stream of bytes, which can then be sent through a socket, stored to a file, or simply manipulated as a stream of data. Serialization is the mechanism used by RMI to pass objects between JVMs, either as arguments in a method invocation from a client to a server or as return values from a method invocation. In the first section of this book, There are three exceptions in which serialization doesnot necessarily read and write to the stream. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">These are,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">1. Serialization ignores static fields, because they are not part of any particular object&#8217;s state.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">2. Base class fields are only handled if the base class itself is serializable.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">3. Transient fields. There are four basic things you must do when you are making a class serializable. They are,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Implement the Serializable interface. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Make sure that instance-level, locally defined state is serialized properly. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Make sure that superclass state is serialized properly. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Override equals( )and hashCode( ).<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>88<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the uses of tiles-def.xml file, resourcebundle.properties file, validation.xml file?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">tiles-def.xml is is an xml file used to configure tiles with the struts application. You can define the layout \/ header \/ footer \/ body content for your View. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The resourcebundle.properties file is used to configure the message (error\/ other messages) for the struts applications. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The file validation.xml is used to declare sets of validations that should be applied to Form Beans.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>89<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between perform() and execute() methods?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Perform method is the method which was deprecated in the Struts Version 1.1.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>In Struts 1.x, Action.perform() is the method called by the ActionServlet. This is typically where your business logic resides, or at least the flow control to your JavaBeans and EJBs that handle your business logic. As we already mentioned, to support declarative exception handling, the method signature changed in perform. Now execute just throws Exception. Action.perform() is now deprecated; however, the Struts v1.1 ActionServlet is smart enough to know whether or not it should call perform or execute in the Action, depending on which one is available.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>90<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the various Struts tag libraries?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Struts is very rich framework and it provides very good and user friendly way to develop web application forms. Struts provide many tag libraries to ease the development of web applications. These tag libraries are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l10 level2 lfo2\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Bean tag library &#8211; Tags for accessing JavaBeans and their properties.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l10 level2 lfo2\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>HTML tag library &#8211; Tags to output standard HTML, including forms, text boxes, checkboxes, radio buttons etc..<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l10 level2 lfo2\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Logic tag library &#8211; Tags for generating conditional output, iteration capabilities and flow management<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l10 level2 lfo2\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Tiles or Template tag library &#8211; For the application using tiles<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l10 level2 lfo2\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Nested tag library &#8211; For using the nested beans in the application<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>91<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can I setup Apache Struts to use multiple configuration files?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes Struts can use multiple configuration files. Here is the configuration example:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;servlet&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;servlet-name&gt;banking&lt;\/servlet-name&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;servlet-class&gt;org.apache.struts.action.ActionServlet<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;\/servlet-class&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;init-param&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;param-name&gt;config&lt;\/param-name&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;param-value&gt;\/WEB-INF\/struts-config.xml,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>\/WEB-INF\/struts-authentication.xml,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>\/WEB-INF\/struts-help.xml<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;\/param-value&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;\/init-param&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;\/servlet&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>92<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the disadvantages of Struts?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">92<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Struts is very robust framework and is being used extensively in the industry. But there are some disadvantages of the Struts:<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">High Learning Curve<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Struts requires lot of efforts to learn and master it. For any small project less experience developers could spend more time on learning the Struts.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Harder to learn<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>Struts are harder to learn, benchmark and optimize.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The name of class is not proper.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Action should not be a class.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The ActionForm is redundant.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>93<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the difference between &lt;bean:message&gt; and &lt;bean:write&gt;?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;bean:message&gt;, This tag is used to output locale-specific text (from the properties files) from a MessageResources bundle.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;bean:write&gt;, This tag is used to output property values from a bean. &lt;bean:write&gt; is a commonly used tag which enables the programmers to easily present the data.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>94<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is LookupDispatchAction?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">94<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">An abstract Action that dispatches to the subclass mapped execute method. This is useful in cases where an HTML form has multiple submit buttons with the same name. The button name is specified by the parameter property of the corresponding ActionMapping.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>95<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the components of Struts?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Struts is based on the MVC design pattern. Struts components can be categoried into <B style=\"mso-bidi-font-weight: normal\">Model, View <\/B>and<B style=\"mso-bidi-font-weight: normal\"> Controller<\/B>.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Model<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">: Components like business logic \/ business processes and data are the part of Model.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">View<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">: JSP, HTML etc. are part of View<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Controller<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">: Action Servlet of Struts is part of Controller components which works as front controller to handle all the requests.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>96<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by JSP Actions?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of &#8220;jsp&#8221; followed by a colon, followed by the action name followed by one or more attribute parameters.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are six JSP Actions: <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;jsp:include\/&gt; <o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;jsp:forward\/&gt; <o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;jsp:plugin\/&gt; <o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;jsp:usebean\/&gt; <o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;jsp:setProperty\/&gt; <o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;jsp:getProperty\/&gt;<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>97<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between &lt;jsp:include page = &#8230; &gt; and &lt;%@ include file = &#8230; &gt;?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Both the tag includes the information from one page in another. The differences are as follows:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;jsp:include page = &#8230; &gt;: This is like a function call from one jsp to another jsp. It is executed ( the included page is executed<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>and the generated html content is included in the content of calling jsp) each time the client page is accessed by the client. This approach is useful to for modularizing the web application. If the included file changed then the new content will be included in the output.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;%@ include file = &#8230; &gt;: In this case the content of the included file is textually embedded in the page that have &lt;%@ include file=&#8221;..&#8221;&gt; directive. In this case in the included file changes, the changed content will not included in the output. This approach is used when the code from one jsp file required to include in multiple jsp files.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>98<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between &lt;jsp:forward page = &#8230; &gt; and <SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>response.sendRedirect(url)?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The &lt;jsp:forward&gt; element forwards the request object containing the client request information from one JSP file to another file. The target file can be an HTML file, another JSP file, or a servlet, as long as it is in the same application context as the forwarding JSP file. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">sendRedirect sends HTTP temporary redirect response to the browser, and browser creates a new request to go the redirected page. The<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>response.sendRedirect kills the session variables.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>99<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Identify the advantages of JSP over Servlet<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">a) Embedding of Java code in HTML pages<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">b) Platform independence<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">c) Creation of database-driven Web applications<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">d) Server-side programming capabilities<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Answer:<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>a)<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>100<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Write the following code for a JSP page:<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;%@ page language = &#8220;java&#8221; %&gt; <o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;HTML&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;HEAD&gt;&lt;TITLE&gt;RESULT PAGE&lt;\/TITLE&gt;&lt;\/HEAD&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;BODY&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;%<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>PrintWriter print = request.getWriter();<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>print.println(&#8220;Welcome&#8221;);<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>%&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;\/BODY&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;\/HTML&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Suppose you access this JSP file, Find out your answer.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">a) A blank page will be displayed.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">b) A page with the text Welcome is displayed<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">c) An exception will be thrown because the implicit out object is not used<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">d) An exception will be thrown because PrintWriter can be used in servlets only<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Answer, b)<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>101<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are implicit Objects available to the JSP Page?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Implicit objects are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or application. The JSP implicit objects are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<TABLE class=MsoNormalTable style=\"BORDER-RIGHT: maroon 1pt outset; BORDER-TOP: maroon 1pt outset; BACKGROUND: #ffffcc; BORDER-LEFT: maroon 1pt outset; WIDTH: 490.5pt; BORDER-BOTTOM: maroon 1pt outset; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-border-alt: outset maroon .75pt\" cellSpacing=0 cellPadding=0 width=654 border=1><br \/>\n<TBODY><br \/>\n<TR style=\"mso-yfti-irow: 0; mso-yfti-firstrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; BACKGROUND: yellow; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><FONT face=\"Times New Roman\"><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Variable<\/SPAN><\/B><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/B><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; BACKGROUND: yellow; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><FONT face=\"Times New Roman\"><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Class<\/SPAN><\/B><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/B><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; BACKGROUND: yellow; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center; mso-pagination: widow-orphan\" align=center><FONT face=\"Times New Roman\"><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Description<\/SPAN><\/B><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/B><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 1\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">application<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">javax.servlet.ServletContext<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The context for the JSP page&#8217;s servlet and any Web components contained in the same application.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 2\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">config<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">javax.servlet.ServletConfig<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Initialization information for the JSP page&#8217;s servlet.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 3\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">exception<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">java.lang.Throwable<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Accessible only from an error page.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 4\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">out<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">javax.servlet.jsp.JspWriter<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The output stream.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 5\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">page<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">java.lang.Object<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The instance of the JSP page&#8217;s servlet processing the current request. Not typically used by JSP page authors.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 6\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">pageContext<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">javax.servlet.jsp.PageContext<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The context for the JSP page. Provides a single API to manage the various scoped attributes.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 7\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">request<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Subtype of javax.servlet.ServletRequest<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The request triggering the execution of the JSP page.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 8\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">response<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">Subtype of javax.servlet.ServletResponse<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The response to be returned to the client. Not typically used by JSP page authors.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 9; mso-yfti-lastrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 58.5pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=78><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">session<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 140.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=187><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">javax.servlet.http.HttpSession<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 285.75pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=381><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: black; mso-font-kerning: 0pt\">The session object for the client.<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT face=\"Times New Roman\"><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-fareast-language: EN-US\">&nbsp;<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>102<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are all the different scope values for the &lt;jsp:useBean&gt; tag?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;jsp:useBean&gt; tag is used to use any java object in the jsp page. Here are the scope values for &lt;jsp:useBean&gt; tag:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">page, request, session and application<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>103<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is JSP Output Comments?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US\"><FONT face=\"Times New Roman\" size=3>JSP Output Comments are the comments that can be viewed in the HTML source file.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US\"><BR><FONT face=\"Times New Roman\" size=3>Example<\/FONT><\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3> (Will be outputted into the html source code)<\/FONT><\/SPAN><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US\"><FONT face=\"Times New Roman\" size=3>:&nbsp;<BR><\/FONT><\/SPAN><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US\"><FONT size=3>&lt;!&#8211; This file displays the user login screen &#8211;&gt;<BR><\/FONT><\/SPAN><FONT size=3><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US\"><FONT face=\"Times New Roman\">and&nbsp;<BR>&lt;!&#8211; This page was loaded on<BR><\/FONT><\/SPAN><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US\">&lt;%= (new java.util.Date()).toLocaleString() %&gt; &#8211;&gt;<\/SPAN><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The following comments can not be viewed in html, so the servlet container ignores it.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 2.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt; mso-bidi-font-weight: bold\">&lt;%&#8211;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 2.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 4.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt; mso-bidi-font-weight: bold\">&lt;jsp:setProperty name=&#8221;user&#8221; property=&#8221;*&#8221; \/&gt;<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 4.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt; mso-bidi-font-weight: bold\">&lt;jsp:setProperty name=&#8221;user&#8221; property=&#8221;modDate&#8221; <\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 4.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt; mso-bidi-font-weight: bold\"><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>value=&#8221;&lt;%= new java.util.Date(<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>) %&gt;&#8221; \/&gt;<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 4.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt; mso-bidi-font-weight: bold\">&lt;% boolean isValid = user.isValid(<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>); %&gt;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; mso-para-margin-left: 2.0gd\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt; mso-bidi-font-weight: bold\">&#8211;%&gt;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>104<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What types of comments are available in the JSP?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">104<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">There are two types of comments are allowed in the JSP. These are hidden and output comments. A hidden comments does not appear in the generated output in the html, while output comments appear in the generated output.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><FONT size=3><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\">Example of hidden comment<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c<\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;%&#8211; This is hidden comment &#8211;%&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><FONT size=3><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\">Example of output comment<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\uff0c<\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;!&#8211; This is output comment &#8211;&gt;<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>105<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is expression in JSP?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Expression tag is used to insert Java values directly into the output. Syntax for the Expression tag is: <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;%= expression %&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An expression tag contains a scripting language expression that is evaluated, converted to a String, and inserted where the expression appears in the JSP file. The following expression tag displays time on the output:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt\"><FONT size=3>&lt;%=new java.util.Date()%&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>106<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is JSP declaration?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">106<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">JSP declarations are the JSP tags used to declare variables. Declaratives are enclosed in the &lt;%! %&gt; tag and ends in semi-colon. You declare variables and functions in the declaration tag and can use anywhere in the JSP. Here is the example of declaratives:<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;%@page contentType=&#8221;text\/html&#8221; %&gt; <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">\/\/JSP directive<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;html&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;body&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;%!<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 63pt; mso-para-margin-left: 6.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">int cnt=0;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 63pt; mso-para-margin-left: 6.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">private int getCount(){<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 63pt; mso-para-margin-left: 6.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">\/\/increment cnt and return the value<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 63pt; mso-para-margin-left: 6.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">cnt++;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 63pt; mso-para-margin-left: 6.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">return cnt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">%&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">\/\/JSP declaration<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;p&gt;Values of Cnt are:&lt;\/p&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;p&gt;&lt;%=getCount()%&gt;&lt;\/p&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">\/\/JSP expression<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;\/body&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;\/html&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; mso-para-margin-left: 2.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>107<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is JSP Scriptlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">JSP Scriptlet is jsp tag which is used to enclose java code in the JSP pages. Scriptlets begins with &lt;% tag and ends with %&gt; tag. Java code written inside scriptlet executes every time the JSP is invoked. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Example:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>&lt;%<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>\/\/java codes<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>String userName = null;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>userName = request.getParameter(&#8220;userName&#8221;);<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>%&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>108<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the life-cycle methods of JSP?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Life-cycle methods of the JSP are,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l25 level2 lfo24\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>jspInit(), The container calls the jspInit() to initialize the servlet instance. It is called before any other method, and is called only once for a servlet instance.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l25 level2 lfo24\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>jspService(), The container calls the _jspservice() for each request and it passes the request and the response objects. _jspService() method cann&#8217;t be overridden. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l25 level2 lfo24\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>1.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>jspDestroy(), The container calls this when its instance is about to destroyed. The jspInit() and jspDestroy() methods can be overridden within a JSP page.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>109<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are JSP Custom tags?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">JSP Custom tags are user defined JSP language element. JSP custom tags are user defined tags that can encapsulate common functionality. For example you can write your own tag to access the database and performing database operations. You can also write custom tag for encapsulate both simple and complex behaviors in an easy to use syntax and greatly simplify the readability of JSP pages.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>110<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is JSP?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">110<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way. The JavaServer Pages specification extends the Java Servlet API to provide web application developers.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>111<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the role of JSP in MVC Model?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">111<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">JSP is mostly used to develop the user interface, It plays are role of View in the MVC Model.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>112<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by context initialization parameters?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The context-param element contains the declaration of a web application&#8217;s servlet context initialization parameters. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;context-param&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;param-name&gt;name&lt;\/param-name&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;param-value&gt;value&lt;\/param-value&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;\/context-param&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Context Parameters page lets you manage parameters that are accessed through the ServletContext.getInitParameterNames and ServletContext.getInitParameter methods.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>113<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can you extend JSP technology?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">113<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">JSP technology lets the programmer to extend the jsp to make the programming more easier. JSP can be extended and custom actions and tag libraries can be developed.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>114<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by JSP translation?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">JSP translators generate standard Java code for a JSP page implementation class. This class is essentially a servlet class wrapped with features for JSP functionality.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>115<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What you can stop the browser to cash your page?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Instead of deleting a cache, you can force the browser not to catch the page.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;% <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">response.setHeader(&#8220;pragma&#8221;,&#8221;no-cache&#8221;);\/\/HTTP 1.1 <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">response.setHeader(&#8220;Cache-Control&#8221;,&#8221;no-cache&#8221;); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">response.setHeader(&#8220;Cache-Control&#8221;,&#8221;no-store&#8221;); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">response.addDateHeader(&#8220;Expires&#8221;, -1); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">response.setDateHeader(&#8220;max-age&#8221;, 0); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">\/\/response.setIntHeader (&#8220;Expires&#8221;, -1); \/\/prevents caching at the proxy server <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">response.addHeader(&#8220;cache-Control&#8221;, &#8220;private&#8221;); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">%&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">put the above code in your page.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>116<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What will you handle the runtime exception in your jsp page?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The errorPage attribute of the page directive can be used to catch run-time exceptions automatically and then forwarded to an error processing page. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">For example,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&lt;%@ page errorPage=&#8221;customerror.jsp&#8221; %&gt; <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">above code forwards the request to &#8220;customerror.jsp&#8221; page if an uncaught exception is encountered during request processing. Within &#8220;customerror.jsp&#8221;, you must indicate that it is an error-processing page, via the directive: &lt;%@ page isErrorPage=&#8221;true&#8221; %&gt;.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>117<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is J2EE?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">J2EE Stands for Java 2 <?xml:namespace prefix = st1 ns = \"urn:schemas-microsoft-com:office:smarttags\" \/><st1:place w:st=\"on\"><st1:City w:st=\"on\">Enterprise<\/st1:City><\/st1:place> Edition. J2EE is an environment for developing and deploying enterprise applications. J2EE specification is defined by Sun Microsystems Inc. The J2EE platform is one of the best platform for the development and deployment of enterprise applications. The J2EE platform is consists of a set of services, application programming interfaces (APIs), and protocols, which provides the functionality necessary for developing multi-tiered, web-based applications. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>118<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by a J2EE module?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A J2EE module is a software unit that consists of one or more J2EE components of the same container type along with one deployment descriptor of that type. J2EE specification defines four types of modules:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">a) EJB<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">b) Web<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">c) Application client and<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">d) Resource adapter<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In the J2EE applications modules can be deployed as stand-alone units. Modules can also be assembled into J2EE applications.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>119<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Tell me something about J2EE component?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P style=\"MARGIN-LEFT: 18pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>J2EE component is a self-contained functional software unit supported by a <B style=\"mso-bidi-font-weight: normal\"><A href=\"http:\/\/java.sun.com\/j2ee\/1.4\/docs\/glossary.html#88608\" target=_blank><SPAN style=\"COLOR: windowtext; TEXT-DECORATION: none; text-underline: none\">container<\/SPAN><\/A><\/B> and configurable at deployment time. The J2EE specification defines the following J2EE components,<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><A name=114209><\/A><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>119.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><A href=\"http:\/\/java.sun.com\/j2ee\/1.4\/docs\/glossary.html#108715\" target=_blank><SPAN style=\"COLOR: windowtext; TEXT-DECORATION: none; text-underline: none\"><FONT size=3>Application clients<\/FONT><\/SPAN><\/A><\/SPAN><\/B><SPAN lang=EN-US><FONT size=3> and <B style=\"mso-bidi-font-weight: normal\"><A href=\"http:\/\/java.sun.com\/j2ee\/1.4\/docs\/glossary.html#88499\" target=_blank><SPAN style=\"COLOR: windowtext; TEXT-DECORATION: none; text-underline: none\">applets<\/SPAN><\/A><\/B> are components that run on the client.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>119.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Java servlet and JavaServer Pages (JSP) technology components are <B style=\"mso-bidi-font-weight: normal\"><A href=\"http:\/\/java.sun.com\/j2ee\/1.4\/docs\/glossary.html#89333\" target=_blank><SPAN style=\"COLOR: windowtext; TEXT-DECORATION: none; text-underline: none\">Web components<\/SPAN><\/A><\/B> that run on the server.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>119.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>Enterprise JavaBeans (EJB) components (<B style=\"mso-bidi-font-weight: normal\"><A href=\"http:\/\/java.sun.com\/j2ee\/1.4\/docs\/glossary.html#109200\" target=_blank><SPAN style=\"COLOR: windowtext; TEXT-DECORATION: none; text-underline: none\">enterprise beans<\/SPAN><\/A><\/B>) are business components that run on the server. J2EE components are written in the Java programming language and are compiled in the same way as any program in the language. The difference between J2EE components and &#8220;standard&#8221; Java classes is that J2EE components are assembled into a J2EE application, verified to be well formed and in compliance with the J2EE specification, and deployed to production, where they are run and managed by the J2EE server or client container. <\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>120<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the contents of web module?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">120<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">A web module may contain:<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>120.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>JSP files<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>120.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Java classes<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>120.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>gif and html files and <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>120.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>web component deployment descriptors<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>121<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Differentiate between .ear,<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>.jar and .war files.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">These files are simply zipped file using java jar tool. These files are created for different purposes. Here is the description of these files:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">.jar files: These files are with the .jar extenstion. The .jar files contains the libraries, resources and accessories files like property files.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">.war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet\/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">.ear files: The .ear file contains the EJB modules of the application.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>122<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between Session Bean and Entity Bean?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Session is one of the EJBs and it represents a single client inside the Application Server. Stateless session is easy to develop and its efficient. As compare to entity beans session beans require few server resources.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A session bean is similar to an interactive session and is not shared; it can have only one client, in the same way that an interactive session can have only one user. A session bean is not persistent and it is destroyed once the session terminates.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An entity bean represents persistent global data from the database. Entity beans data are stored into database.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>123<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why J2EE is suitable for the development distributed multi-tiered enterprise applications?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The J2EE platform consists of multi-tiered distributed application model. J2EE applications allows the developers to design and implement the business logic into components according to business requirement. J2EE architecture allows the development of multi-tired applications and the developed applications can be installed on different machines depending on the tier in the multi-tiered J2EE environment . The J2EE application parts are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>123.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Client-tier components run on the client machine.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>123.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Web-tier components run on the J2EE server.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>123.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Business-tier components run on the J2EE server and the<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>123.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><FONT size=3><st1:place w:st=\"on\"><st1:City w:st=\"on\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Enterprise<\/SPAN><\/st1:City><\/st1:place><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> information system (EIS)-tier software runs on the EIS servers<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>124<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why do understand by a container?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Normally, thin-client multi-tiered applications are hard to write because they involve many lines of intricate code to handle transaction and state management, multithreading, resource pooling, and other complex low-level details. The component-based and platform-independent J2EE architecture makes J2EE applications easy to write because business logic is organized into reusable components. In addition, the J2EE server provides underlying services in the form of a container for every component type. Because you do not have to develop these services yourself, you are free to concentrate on solving the business problem at hand.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In short containers are the interface between a component and the low-level platform specific functionality that supports the component. The application like Web, enterprise bean, or application client component must be assembled and deployed on the J2EE container before executing.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the services provided by a container?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The services provided by container are as follows:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Transaction management for the bean<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Security for the bean<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Persistence of the bean<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Remote access to the bean<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Lifecycle management of the bean<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.6<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Database-connection pooling<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>125.7<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Instance pooling for the bean <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>126<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are types of J2EE clients?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">J2EE clients are the software that accesses the services components installed on the J2EE container. Following are the J2EE clients:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">a) Applets<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">b) Java-Web Start clients<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">c) Wireless clients<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">d) Web applications<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>127<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Deployment Descriptor?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A deployment descriptor is simply an XML(Extensible Markup Language) file with the extension of .xml. Deployment descriptor describes the component deployment settings. Application servers reads the deployment descriptor to deploy the components contained in the deployment unit. For example ejb-jar.xml file is used to describe the setting of the EJBs.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>128<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by JTA and JTS?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">JTA stands for Java Transaction API and JTS stands for Java Transaction Service. JTA provides a standard interface which allows the developers to demarcate transactions in a manner that is independent of the transaction manager implementation. The J2EE SDK uses the JTA transaction manager to implement the transaction. The code developed by developers does not call the JTS methods directly, but only invokes the JTA methods. Then JTA internally invokes the JTS routines. JTA is a high level transaction interface used by the application code to control the transaction.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>129<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between JTS and JTA?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In any J2EE application transaction management is one of the most crucial requirements of the application. Given the complexity of today&#8217;s business requirements, transaction processing occupies one of the most complex segments of enterprise level distributed applications to build, deploy and maintain.<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>JTS specifies the implementation of a Java transaction manager. JTS specifies the implementation of a Transaction Manager which supports the Java Transaction API (JTA) 1.0 This transaction manager supports the JTA, using which application servers can be built to support transactional Java applications. Internally the JTS implements the Java mapping of the OMG OTS 1.1 specifications. The Java mapping is specified in two packages: org.omg.CosTransactions and org.omg.CosTSPortability. The JTS thus provides a new architecture for transactional application servers and applications, while complying to the OMG OTS 1.1 interfaces internally. This allows the JTA compliant applications to interoperate with other OTS 1.1 complaint applications through the standard IIOP. Java-based applications and Java-based application servers access transaction management functionality via the JTA interfaces. The JTA interacts with a transaction management implementation via JTS. Similarly, the JTS can access resources via the JTA XA interfaces or can access OTS-enabled non-XA resources. JTS implementations can interoperate via CORBA OTS interfaces.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The JTA specifies an architecture for building transactional application servers and defines a set of interfaces for various components of this architecture. The components are: the application, resource managers, and the application server. The JTA specifies standard interfaces for Java-based applications and application servers to interact with transactions, transaction managers, and resource managers JTA transaction management provides a set of interfaces utilized by an application server to manage the beginning and completion of transactions. Transaction synchronization and propagation services are also provided under the domain of transaction management.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In the Java transaction model, the Java application components can conduct transactional operations on JTA compliant resources via the JTS. The JTS acts as a layer over the OTS. The applications can therefore initiate global transactions to include other OTS transaction managers, or participate in global transactions initiated by other OTS compliant transaction managers.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>130<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is JAXP?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Java API for XML Processing (JAXP) enables applications to parse and transform XML documents independent of a particular XML processing implementation. JAXP or Java API for XML Parsing is an optional API provided by Javasoft. It provides basic functionality for reading, manipulating, and generating XML documents through pure Java APIs. It is a thin and lightweight API that provides a standard way to seamlessly integrate any XML-compliant parser with a Java application.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>131<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is J2EE Connector architecture?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">131<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">J2EE Connector Architecture (JCA) is a Java-based technology solution for connecting application servers and enterprise information systems (EIS) as part of enterprise application integration (EAI) solutions. While JDBC is specifically used to connect Java EE applications to databases, JCA is a more generic architecture for connection to legacy systems (including databases). JCA was developed under the Java Community Process as JSR 16 (JCA 1.0) and JSR 112 (JCA 1.5). As of 2006, the current version of JCA is version 1.5. The J2EE Connector API is used by J2EE tools developers and system integrators to create resource adapters.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>132<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is difference between Java Bean and <st1:place w:st=\"on\"><st1:City w:st=\"on\">Enterprise<\/st1:City><\/st1:place> Java Bean?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Bean as is a plain java class with member variables and getter setter methods. Java Beans are defined under JavaBeans specification as Java-Based software component model which includes the features like introspection, customization, events, properties and<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>persistence. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Enterprise JavaBeans or EJBs for short are Java-based software components that comply with Java&#8217;s EJB specification. EJBs are delpoyed on the EJB container and executes in the EJB container. EJB is not that simple, it is used for building distributed applications. Examples of EJB are Session Bean, Entity Bean and Message Driven Bean. EJB is used for server side programming whereas java bean is a client side. Bean is only development but the EJB is developed and then deploy on EJB Container.<B style=\"mso-bidi-font-weight: normal\"><o:p><\/o:p><\/B><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>133<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can Entity Beans have no create() methods?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Entity Beans can have no create() methods. Entity Beans have no create() method, when entity bean is not used to store the data in the database. In this case entity bean is used to retrieve the data from database.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>134<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the call back methods in Session bean?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Callback methods are called by the container to notify the important events to the beans in its life cycle. The callback methods are defined in the javax.ejb.EntityBean interface. The callback methods example are ejbCreate(), ejbPassivate() and ejbActivate().<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>135<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is bean managed transaction?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT size=3><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\">In EJB transactions can be maintained by the container or developer can write own code to maintain the transaction. If a developer doesn<\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-bidi-font-size: 10.5pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u62b0<\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\"> want a Container to manage transactions, developer can write own code to maintain the database transaction.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>136<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are transaction isolation levels in EJB?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are four levels of transaction isolation are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">* Uncommitted Read<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">* Committed Read<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">* Repeatable Read<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">* Serializable<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The four transaction isolation levels and the corresponding behaviors are described below,<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<TABLE class=MsoNormalTable style=\"MARGIN: auto auto auto 21pt; WIDTH: 402.75pt; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm\" cellSpacing=0 cellPadding=0 width=537 border=1><br \/>\n<TBODY><br \/>\n<TR style=\"mso-yfti-irow: 0; mso-yfti-firstrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 112.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=150><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Isolation Level<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 67.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=90><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Dirty Read<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 136.8pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=182><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Non-Repeatable Read<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 86.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=115><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Phantom Read<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 1\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 112.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=150><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Read Uncommitted<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 67.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=90><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 136.8pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=182><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 86.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=115><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Possible<o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 2\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 112.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=150><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Read Committed<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 67.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=90><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Not possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 136.8pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=182><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 86.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=115><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Possible<o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 3\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 112.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=150><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Repeatable Read<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 67.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=90><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Not possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 136.8pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=182><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Not possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 86.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=115><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Possible<o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><br \/>\n<TR style=\"mso-yfti-irow: 4; mso-yfti-lastrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 112.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=150><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Serializable<\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\"><o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 67.25pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=90><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Not possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 136.8pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=182><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Not possible<o:p><\/o:p><\/SPAN><\/P><\/TD><br \/>\n<TD style=\"BORDER-RIGHT: #d4d0c8; PADDING-RIGHT: 0cm; BORDER-TOP: #d4d0c8; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: #d4d0c8; WIDTH: 86.35pt; PADDING-TOP: 0cm; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent\" vAlign=top width=115><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-bidi-font-family: \u5b8b\u4f53\">Not possible<o:p><\/o:p><\/SPAN><\/P><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>137<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can a private method of a superclass be declared within a subclass?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Sure. A private field or method or inner class belongs to its declared class and hides from its subclasses. There is no way for private stuff to have a runtime overloading or overriding (polymorphism) features.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>138<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why Java does not support multiple inheritence ?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java does support multiple inheritance via interface implementation.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>139<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between final, finally and finalize?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>139.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>final &#8211; declare constant<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>139.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>finally &#8211; handles exception<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>139.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>finalize &#8211; helps in garbage collection<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>140<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Where and how can you use a private constructor.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Private constructor can be used if you do not want any other class to instanstiate the object , the instantiation is done from a static public method, this method is used when dealing with the factory method pattern when the designer wants only one controller (fatory method ) to create the object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>141<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>In System.out.println(),what is System,out and println,pls explain?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">System is a predefined final class,out is a PrintStream object and println is a built-in overloaded method in the out object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>142<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is meant by &#8220;Abstract Interface&#8221;?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">First, an interface is abstract. That means you cannot have any implementation in an interface. All the methods declared in an interface are abstract methods or signatures of the methods.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>143<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can you make an instance of an abstract class? For example &#8211; java.util.Calender is an abstract class with a method getInstance() which returns an instance of the Calender class.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">No! You cannot make an instance of an abstract class. An abstract class has to be sub-classed. If you have an abstract class and you want to use a method which has been implemented, you may need to subclass that abstract class, instantiate your subclass and then call that method.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>144<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the output of x&lt;y? a:b = p*q when x=1,y=2,p=3,q=4?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When this kind of question has been asked, find the problems you think is necessary to ask before you give an answer. Ask if variables a and b have been declared or initialized. If the answer is yes. You can say that the syntax is wrong. If the statement is rewritten as: x&lt;y? a:(b=p*q); the return value would be variable a because the x is 1 and less than y = 2; the x &lt; y statement return true and variable a is returned.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>145<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between Swing and AWT components?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">AWT components are heavy-weight, whereas Swing components are lightweight. Heavy weight components depend on the local windowing toolkit. For example, java.awt.Button is a heavy weight component, when it is running on the Java platform for Unix platform, it maps to a real Motif button.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>146<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why does Java not support pointers?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Because pointers are unsafe. Java uses reference types to hide pointers and programmers feel easier to deal with reference types without pointers. This is why Java and C# shine.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>147<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Parsers? DOM vs SAX parser<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Parsers are fundamental xml components, a bridge between XML documents and applications that process that XML. The parser is responsible for handling xml syntax, checking the contents of the document against constraints established in a DTD or Schema.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>148<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a platform?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A platform is the hardware or software environment in which a program runs. Most platforms can be described as a combination of the operating system and hardware, like Windows 2000\/XP, Linux, Solaris, and MacOS.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>149<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the main difference between Java platform and other platforms?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Java platform differs from most other platforms in that it&#8217;s a software-only platform that runs on top of other hardware-based platforms. The Java platform has two components:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>149.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>The Java Virtual Machine (Java VM) <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>149.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>The Java Application Programming Interface (Java API)<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>150<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Java Virtual Machine?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Java Virtual Machine is a software that can be ported onto various hardware-based platforms.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It is used to explain the java class codes and run in the OS.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>151<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Java API?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Java API is a large collection of ready-made software components that provide many useful capabilities, such as graphical user interface (GUI) widgets.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>152<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the package?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The package is a Java namespace or part of Java libraries. The Java API is grouped into libraries of related classes and interfaces; these libraries are known as packages.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>153<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is native code?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The native code is code that after you compile it, the compiled code runs on a specific hardware platform.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>154<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Is Java code slower than native code?<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Not really. As a platform-independent environment, the Java platform can be a bit slower than native code. However, smart compilers, well-tuned interpreters, and just-in-time bytecode compilers can bring performance close to that of native code without threatening portability.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>155<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the serialization?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The serialization is a kind of mechanism that makes a class or a bean persistence by having its properties or fields and state information saved and restored to and from storage.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>156<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How to make a class or a bean serializable?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">By implementing either the java.io.Serializable interface, or the java.io.Externalizable interface. As long as one class in a class&#8217;s inheritance hierarchy implements Serializable or Externalizable, that class is serializable.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>157<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How many methods in the Serializable interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There is no method in the Serializable interface. The Serializable interface acts as a marker, telling the object serialization tools that your class is serializable.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>158<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How many methods in the Externalizable interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are two methods in the Externalizable interface. You have to implement these two methods in order to make your class externalizable. These two methods are readExternal() and writeExternal().<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>159<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between Serializable and Externalizable interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When you use Serializable interface, your class is serialized automatically by default. But you can override writeObject() and readObject() two methods to control more complex object serailization process. When you use Externalizable interface, you have a complete control over your class&#8217;s serialization process.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>160<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a transient variable?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A transient variable is a variable that may not be serialized. If you don&#8217;t want some field to be serialized, you can mark that field transient or static.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>161<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which containers use a border layout as their default layout?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Window, Frame and Dialog classes use a border layout as their default layout.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>162<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How are Observer and Observable used?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>163<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is synchronization and why is it important?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object&#8217;s value. This often causes dirty data and leads to significant errors.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>164<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are synchronized methods and synchronized statements?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method&#8217;s object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>165<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How are Observer and Observable used?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>166<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are three ways in which a thread can enter the waiting state?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A thread can enter the waiting state by invoking its sleep() method, by blocking on I\/O, by unsuccessfully attempting to acquire an object&#8217;s lock, or by invoking an object&#8217;s wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>167<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can a lock be acquired on a class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes, a lock can be acquired on a class. This lock is acquired on the class&#8217;s Class object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>168<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What&#8217;s new with the stop(), suspend() and resume() methods in JDK 1.2?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>169<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the preferred size of a component?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The preferred size of a component is the minimum component size that will allow the component to display normally.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>170<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which containers use a FlowLayout as their default layout?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Panel and Applet classes use the FlowLayout as their default layout.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>171<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is thread?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\">171<\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">A thread is an independent path of execution in a system.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>172<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is multithreading?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Multithreading means various threads that run in a system.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>173<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How does multithreading take place on a computer with a single CPU?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The operating system&#8217;s task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>174<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How to create multithread in a program?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">You have two ways to do so. First, making your class &#8220;extends&#8221; Thread class. Second, making your class &#8220;implements&#8221; Runnable interface. Put jobs in a run() method and call start() method to start the thread.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>175<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can Java object be locked down for exclusive use by a given thread?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes. You can lock an object by putting it in a &#8220;synchronized&#8221; block. The locked object is inaccessible to any thread other than the one that explicitly claimed it.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>176<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can each Java object keep track of all the threads that want to exclusively access to it?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes, the methods in Object wait and notify are used to access the synchronized objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>177<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What state does a thread enter when it terminates its processing?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When a thread terminates its processing, it enters the dead state.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>178<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What invokes a thread&#8217;s run() method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">After a thread is started, via its start() method of the Thread class, the JVM invokes the thread&#8217;s run() method when the thread is initially executed. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>179<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the wait(), notify(), and notifyAll() methods?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The wait(), notify(), and notifyAll() methods are used to provide an efficient way for threads to communicate each other.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>180<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the high-level thread states?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The high-level thread states are ready, running, waiting, and dead.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>181<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Collections API?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Collections API is a set of classes and interfaces that support operations on collections of objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>182<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the List interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The List interface provides support for ordered collections of objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>183<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Vector class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Vector class provides the capability to implement a growable array of objects<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>184<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What modifiers may be used with an inner class that is a member of an outer class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>185<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If a method is declared as protected, where may the method be accessed?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>186<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is an Iterator interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Iterator interface is used to step through the elements of a Collection.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>187<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>188<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between yielding and sleeping?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>189<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Is sizeof a keyword?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The sizeof operator is not a keyword. It is a just operator.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>190<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are wrapped classes?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Wrapped classes are classes that allow primitive types to be accessed as objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>191<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Does garbage collection guarantee that a program will not run out of memory?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">No, it doesn&#8217;t. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>192<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between preemptive scheduling and time slicing?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>193<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Name Component subclasses that support painting.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Canvas, Frame, Panel, and Applet classes support painting.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>194<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a native method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A native method is a method that is implemented in a language other than Java.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>195<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How can you write a loop indefinitely?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">for($$)&#8211;for loop; while(true)&#8211;always true, etc.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT face=\"Times New Roman\"><FONT size=3>196<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/FONT><\/SPAN><\/SPAN><\/B><FONT size=3><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">Can an anonymous class be declared as implementing an interface and extending a class?<BR><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.<o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>197<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of finalization?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>198<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which class is the superclass for every class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>199<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between the Boolean &amp; operator and the &amp;&amp; operator?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If an expression involving the Boolean &amp; operator is evaluated, both operands are evaluated. Then the &amp; operator is applied to the operand. When an expression involving the &amp;&amp; operator is evaluated, the first operand is evaluated. If the first operand returns a value of true then the second operand is evaluated. The &amp;&amp; operator is then applied to the first and second operands. If the first operand evaluates to false, the evaluation of the second operand is skipped.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Operator &amp; has no chance to skip both sides evaluation and &amp;&amp; operator does. If asked why, give details as above. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>200<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the GregorianCalendar class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The GregorianCalendar provides support for traditional Western calendars.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>201<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the SimpleTimeZone class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The SimpleTimeZone class provides support for a Gregorian calendar.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>202<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which Container method is used to cause a container to be laid out and redisplayed?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">invalidate();<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>203<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Properties class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The properties class is a subclass of Hashtable that can be read from or written to a stream. It also provides the capability to specify a set of default values to be used.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>204<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the Runtime class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The purpose of the Runtime class is to provide access to the Java runtime system.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>205<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the System class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The purpose of the System class is to provide access to system resources.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>206<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which package has light weight components?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">javax.Swing package. All components in Swing, except JApplet, JDialog, JFrame and JWindow are lightweight components.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>207<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are peerless components?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The peerless components are called light weight components.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>208<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between the Font and FontMetrics classes?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>209<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What happens when a thread cannot acquire a lock on an object?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object&#8217;s lock, it enters the waiting state until the lock becomes available.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>210<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between the Reader\/Writer class hierarchy and the InputStream\/OutputStream class hierarchy?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Reader\/Writer class hierarchy is character-oriented, and the InputStream\/OutputStream class hierarchy is byte-oriented.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>211<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What classes of exceptions may be caught by a catch clause?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A catch clause can catch any exception that may be assigned to the Throwable type. This includes the Error and Exception types<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>212<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between throw and throws keywords?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The throw keyword denotes a statement that causes an exception to be initiated. It takes the Exception object to be thrown as argument. The exception will be caught by an immediately encompassing try-catch construction or propagated further up the calling hierarchy. The throws keyword is a modifier of a method that designates that exceptions may come out of the mehtod, either by virtue of the method throwing the exception itself or because it fails to catch such exceptions that a method it calls may throw.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3><\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>213<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If a class is declared without any access modifiers, where may the class be accessed?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A class that is declared without any access modifiers is said to have package or friendly access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>214<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Map interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>215<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Does a class inherit the constructors of its superclass?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A class does not inherit constructors from any of its superclasses.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>216<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Name primitive Java types.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The primitive types are byte, char, short, int, long, float, double, and boolean.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>217<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the finally clause of a try-catch-finally statement?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>218<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Locale class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>219<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What must a class do to implement an interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It must provide all of the methods in the interface and identify the interface in its implements clause.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>220<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is an abstract method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An abstract method is a method whose implementation is deferred to a subclass. Or, a method that has no implementation (an interface of a method).<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>221<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a static method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A static method is a method that belongs to the class rather than any object of the class and doesn&#8217;t apply to an object or even require that any objects of the class have been instantiated.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>222<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a protected method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A protected method is a method that can be accessed by any method in its package and inherited by any subclass of its class.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>223<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between a static and a non-static inner class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A non-static inner class may have object instances that are associated with instances of the class&#8217;s outer class. A static inner class does not have any object instances. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>224<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is an object&#8217;s lock and which object&#8217;s have locks?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An object&#8217;s lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the object&#8217;s lock. All objects and classes have locks. A class&#8217;s lock is acquired on the class&#8217;s Class object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>225<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>When can an object reference be cast to an interface reference?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An object reference be cast to an interface reference when the object implements the referenced interface.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>226<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between a Window and a Frame?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Frame class extends Window to define a main application window that can have a menu bar.<BR style=\"mso-special-character: line-break\"><BR style=\"mso-special-character: line-break\"><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>227<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do heavy weight components mean?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Heavy weight components like Abstract Window Toolkit (AWT), depend on the local windowing toolkit. For example, java.awt.Button is a heavy weight component, when it is running on the Java platform for Unix platform, it maps to a real Motif button. In this relationship, the Motif button is called the peer to the java.awt.Button. If you create two Buttons, two peers and hence two Motif Buttons are also created. The Java platform communicates with the Motif Buttons using the Java Native Interface. For each and every component added to the application, there is an additional overhead tied to the local windowing system, which is why these components are called heavy weight.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>228<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Which class should you use to obtain design information about an object?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Class class is used to obtain information about an object&#8217;s design.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>229<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How can a GUI component handle its own events?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>230<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How are the elements of a GridBagLayout organized?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>231<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What advantage do Java&#8217;s layout managers provide over traditional windowing systems?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java uses layout managers to lay out components in a consistent manner across all windowing platforms. Since Java&#8217;s layout managers aren&#8217;t tied to absolute sizing and positioning, they are able to accommodate platform-specific differences among windowing systems.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>232<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the problems faced by Java programmers who don&#8217;t use layout managers?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Without layout managers, Java programmers are faced with determining how their GUI will be displayed across multiple windowing systems and finding a common sizing and positioning that will work within the constraints imposed by each windowing system.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>233<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between static and non-static variables?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>234<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between the paint() and repaint() methods?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>235<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the File class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The File class is used to create objects that provide access to the files and directories of a local file system.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>236<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What restrictions are placed on method overloading?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Two methods may not have the same name and argument list but different return types.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>237<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What restrictions are placed on method overriding?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The overridden methods can decrease the visibility of the methods. The overridden methods can increase the thrown exceptions. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>238<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is casting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>239<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Name Container classes.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>240<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What class allows you to read objects directly from a stream?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The ObjectInputStream class supports the reading of objects from input streams.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>241<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How are this() and super() used with constructors?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>242<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How is it possible for two String objects with identical values not to be equal under the == operator?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>243<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the Set interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>244<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the List interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The List interface provides support for ordered collections of objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>245<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the purpose of the enableEvents() method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The method enableEvents() is in the Component class in AWT.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>246<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between the File and RandomAccessFile classes?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>247<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What interface must an object implement before it can be written to a stream as an object?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>248<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the ResourceBundle class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program&#8217;s appearance to the particular locale in which it is being run.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>249<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between a Scrollbar and a ScrollPane?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>250<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a Java package and how is it used?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>251<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the Object and Class classes used for?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>252<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Serialization and deserialization?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Serialization is the process of writing the state of an object to a byte stream. Deserialization is the process of restoring these objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>253<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Does the code in finally block get executed if there is an exception and a return statement in a catch block?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If an exception occurs and there is a return statement in catch block, the finally block is still executed. The finally block will not be executed when the System.exit(1) statement is executed earlier or the system shut down earlier or the memory is used up earlier before the thread goes to finally block.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>254<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How you restrict a user to cut and paste from the html page?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Using javaScript to lock keyboard keys. It is one of solutions.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>255<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Is Java a super set of JavaScript?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">No. They are completely different. Some syntax may be similar.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>256<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a Container in a GUI?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A Container contains and arranges other components (including other containers) through the use of layout managers, which use specific layout policies to determine where components should go as a function of the size of the container.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>257<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How the object oriented approach helps us keep complexity of software development under control?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">We can discuss such issue from the following aspects (Encapsulation, Inheritance and Porlymorphysm),<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>257.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Objects allow procedures to be encapsulated with their data to reduce potential interference.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>257.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Inheritance allows well-tested procedures to be reused and enables changes to make once and have effect in all relevant places.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>257.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>The well-defined separations of interface and implementation allows constraints to be imposed on inheriting classes while still allowing the flexibility of overriding and overloading. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>258<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is polymorphism?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Polymorphism allows methods to be written that needn&#8217;t be concerned about the specifics of the objects they will be applied to. That is, the method can be specified at a higher level of abstraction and can be counted on to work even on objects of yet unconceived classes.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>259<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is design by contract?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The design by contract specifies the obligations of a method to any other methods that may use its services and also theirs to it. For example, the preconditions specify what the method required to be true when the method is called. Hence making sure that preconditions are. Similarly, postconditions specify what must be true when the method is finished, thus the called method has the responsibility of satisfying the post conditions.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In Java, the exception handling facilities support the use of design by contract, especially in the case of checked exceptions. The assert keyword can be used to make such contracts.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>260<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are use cases?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A use case describes a situation that a program might encounter and what behavior the program should exhibit in that circumstance. It is part of the analysis of a program. The collection of use cases should, ideally, anticipate all the standard circumstances and many of the extraordinary circumstances possible so that the program will be robust.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between interface and abstract class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface contains methods that must be abstract; abstract class may contain concrete methods.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface contains variables that must be static and final; abstract class may contain non-final and final variables.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>members in an interface are public by default, abstract class may contain non-public members.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface is used to &#8220;implements&#8221;; whereas abstract class is used to &#8220;extends&#8221;.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface can be used to achieve multiple inheritance; abstract class can be used as a single inheritance.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.6<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface can &#8220;extends&#8221; another interface, abstract class can &#8220;extends&#8221; another class and &#8220;implements&#8221; multiple interfaces.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.7<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface is absolutely abstract; abstract class can be invoked if a main() exists.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.8<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>interface is more flexible than abstract class because one class can only &#8220;extends&#8221; one super class, but &#8220;implements&#8221; multiple interfaces.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>261.9<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If given a choice, use interface instead of abstract class.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>262<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is HTTPSession Class?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">HttpSession Class provides a way to identify a user across across multiple request. The servlet container uses HttpSession interface to create a session between an HTTP client and an HTTP server. The session lives only for a specified time period, across more than one connection or page request from the user.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>263<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why do u use Session Tracking in HttpServlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In HttpServlet you can use Session Tracking to track the user state. Session is required if you are developing shopping cart application or in any e-commerce application.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>264<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the advantage of Cookies over URL rewriting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Sessions tracking using Cookies are more secure and fast. Session tracking using Cookies can also be used with other mechanism of Session Tracking like url rewriting.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Cookies are stored at client side so some clients may disable cookies so we may not sure that the cookies may work or not. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In url<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>rewriting requites large data transfer from and to the server. So, it leads to network traffic and access may be become slow.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>265<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Session Migration?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Session Migration is a mechanism of moving the session from one server to another in case of server failure. Session Migration can be implemented by:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>265.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Persisting the session into database<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>265.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Storing the session in-memory on multiple servers.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>266<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How to track a user session in Servlets?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The interface HttpSession can be used to track the session in the Servlet. Following code can be used to create session object in the Servlet: HttpSession session = req.getSession(true);<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>267<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How you can destroy the session in Servlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">You can call invalidate() method on the session object to destroy the session. e.g. session.invalidate();<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>268<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>It is said that the code in a finally clause will never fail to execute, Is there any example where it fails to execute?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Here is the example code where the finally clause code will not execute.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<TABLE class=MsoNormalTable style=\"BORDER-RIGHT: maroon 1pt outset; BORDER-TOP: maroon 1pt outset; BACKGROUND: #ffffcc; MARGIN: auto auto auto 12.5pt; BORDER-LEFT: maroon 1pt outset; WIDTH: 405pt; BORDER-BOTTOM: maroon 1pt outset; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-border-alt: outset maroon .75pt\" cellSpacing=0 cellPadding=0 width=540 border=1><br \/>\n<TBODY><br \/>\n<TR style=\"mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes\"><br \/>\n<TD style=\"BORDER-RIGHT: maroon 1pt inset; PADDING-RIGHT: 0cm; BORDER-TOP: maroon 1pt inset; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: maroon 1pt inset; WIDTH: 405pt; PADDING-TOP: 0cm; BORDER-BOTTOM: maroon 1pt inset; BACKGROUND-COLOR: transparent; mso-border-alt: inset maroon .75pt\" width=540><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>public class testFinally{<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><o:p><FONT face=\u5b8b\u4f53>&nbsp;<\/FONT><\/o:p><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>public static void main(String[] args){<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Executing the program&#8221;);<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>try {<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 3\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;In the try block&#8221;);<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53> <SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>System.exit(1);<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>} finally {<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 3\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;In the finally.&#8221;);<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><o:p><FONT face=\u5b8b\u4f53>&nbsp;<\/FONT><\/o:p><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-tab-count: 1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><FONT face=\u5b8b\u4f53><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<\/FONT><\/SPAN><\/PRE><PRE><SPAN lang=EN-US><SPAN style=\"mso-spacerun: yes\"><FONT face=\u5b8b\u4f53>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/FONT><\/SPAN><\/SPAN><\/PRE><\/TD><\/TR><\/TBODY><\/TABLE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>269<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why there are no global variables in Java?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Global variables are globally accessible. Java does not support globally accessible variables due to following reasons: <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>269.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>The global variables breaks the referential transparency<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>269.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Global variables creates collisions in namespace.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>270<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What platforms is the Java-technology software available on?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Sun provides ports of the Java 2 Platform for Windows 95, Windows 98, Windows NT, Windows 2000, Solaris-SPARC, Solaris-Intel, and Linux.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>271<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Where can I download latest version of Java?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT face=\"Times New Roman\" size=3>Latest version of JDK can be downloaded from Sun web site <\/FONT><A href=\"http:\/\/www.java.sun.com\/\"><FONT face=\"Times New Roman\" size=3>http:\/\/www.java.sun.com<\/FONT><\/A><FONT size=3><FONT face=\"Times New Roman\">.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>272<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Do I need to know C++ to learn Java?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">No, you don&#8217;t need to know C or C++ to learn Java. Java is much simpler that C++.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>273<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between Java and Java Script?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In Java and Java Script only the &#8220;Java&#8221; word is common. Java is programming language from Sun. JavaScript is a programming language from Netscape, which runs in their browsers.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>274<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Differentiate between applet and application.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java applications runs as stand-alone application whereas applet runs in web browser. Application is a Java class that has a main() method. Applet class extends java.applet.Applet class.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>275<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How to convert String to Number in java program?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The valueOf() function of Integer class is is used to convert string to Number. Here is the code example:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Arial New'; mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">String strId = &#8220;10&#8221;; <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Arial New'; mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">int id=Integer.valueOf(strId);<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>276<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is interface?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Example of Interface:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">public interface sampleInterface {<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>public void functionOne();<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>public long CONSTANT_ONE = 1000;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>277<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How you can force the garbage collection?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Garbage collection automatic process and can&#8217;t be forced.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>278<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the use of Object and Class Classes?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Object class is the superclass of all other classes and it is highest-level class in the Java class hierarchy. Instances of the class Class represent classes and interfaces in a running Java application. Every array also belongs to a class that is reflected as a Class object that is shared by all arrays with the same element type and number of dimensions. The primitive Java types (boolean, byte, char, short, int, long, float, and double), and the keyword void are also represented as Class objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>279<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by a variable?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The variables plays very important role in computer programming. Variables enable programmers to write flexible programs. It is a memory location that has been named so that it can be easily be referred in the program. The variable is used to hold the data and it can be changed changed during the course of the execution of the program.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>280<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by numeric promotion?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In the numerical promotion process the byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>281<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by casting in java language?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The process of converting one datatype to another in Java language is called Casting.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>282<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the types of casting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are two types of casting in Java, these are Implicit casting and explicit casting.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>283<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Implicit casting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Implicit casting is the process of simply assigning one entity to another without any transformation guidance to the compiler. This type of casting is not permitted in all kinds of transformations and may not workout for all application scenarios.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Example:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">int i = 4000;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">long h = i; \/\/Implicit casting<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>284<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is explicit casting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Explicit casting in the process in which the complier are specifically informed to about transforming the object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">long ln = 700.20;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">t = (int) ln; \/\/Explicit casting<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>285<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by downcasting?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The process of Downcasting refers to the casting from a general to a more specific type, i.e. casting down the hierarchy<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>286<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by final value?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">FINAL for a variable: value is constant. FINAL for a method: cannot be overridden. FINAL for a class: cannot be derived<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>287<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is a Servlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Servlets are server side components that provides a powerful mechanism for developing server side of web application. Earlier CGI was developed to provide server side capabilities to the web applications. Although CGI played a major role in the explosion of the Internet, its performance, scalability and reusability issues make it less than optimal solutions. Java Servlets changes all that. Built from ground up using Sun&#8217;s write once run anywhere technology java servlets provide excellent framework for server side processing.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>288<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the types of Servlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There are two types of servlets, GenericServlet and HttpServlet. GenericServlet defines the generic or protocol independent servlet. HttpServlet is subclass of GenericServlet and provides some http specific functionality linke doGet and doPost methods.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>289<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the differences between HttpServlet and Generic Servlets?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">HttpServlet Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A subclass of HttpServlet must override at least one method, usually one of these:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">doGet, if the servlet supports HTTP GET requests <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">doPost, for HTTP POST requests <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">doPut, for HTTP PUT requests <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">doDelete, for HTTP DELETE requests <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">init and destroy, to manage resources that are held for the life of the servlet <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">getServletInfo, which the servlet uses to provide information about itself <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There&#8217;s almost no reason to override the service method. service handles standard HTTP requests by dispatching them to the handler methods for each HTTP request type (the doXXX methods listed above). Likewise, there&#8217;s almost no reason to override the doOptions and doTrace methods.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>290<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Differentiate between Servlet and Applet.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Servlets are server side components that executes on the server whereas applets are client side components and executes on the web browser. Applets have GUI interface but there is not GUI interface in case of Servlets.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>291<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Differentiate between doGet and doPost method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">doGet is used when there are requirement of sending data appended to a query string in the URL. The doGet models the GET method of Http and it is used to retrieve the info on the client from some server as a request to it. The doGet cannot be used to send too much info appended as a query stream. GET puts the form values into the URL string. GET is limited to about 256 characters (usually a browser limitation) and creates really ugly URLs.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">POST allows you to have extremely dense forms and pass that to the server without clutter or limitation in size. e.g. you obviously can&#8217;t send a file from the client to the server via GET. POST has no limit on the amount of data you can send and because the data does not show up on the URL you can send passwords. But this does not mean that POST is truly secure. For real security you have to look into encryption which is an entirely different topic<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are methods of HttpServlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The methods of HttpServlet class are :<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>doGet() is used to handle the GET, conditional GET, and HEAD requests <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>doPost() is used to handle POST requests<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>doPut() is used to handle PUT requests<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>doDelete() is used to handle DELETE requests<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292.5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>doOptions() is used to handle the OPTIONS requests and <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>292.6<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>doTrace() is used to handle the TRACE requests<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>293<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the advantages of Servlets over CGI programs?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Servlets have a number of advantages over CGI and other API&#8217;s. They are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>293.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Platform <st1:place w:st=\"on\"><st1:City w:st=\"on\">Independence<\/st1:City><\/st1:place><o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Servlets are 100% pure Java, so it is platform independence. It can run on any Servlet enabled web server. For example if you develop an web application in windows machine running Java web server. You can easily run the same on apache web server (if Apache Serve is installed) without modification or compilation of code. Platform independency of servlets provide a great advantages over alternatives of servlets. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>293.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Performance<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Due to interpreted nature of java, programs written in java are slow. But the java servlets runs very fast. These are due to the way servlets run on web server. For any program initialization takes significant amount of time. But in case of servlets initialization takes place very first time it receives a request and remains in memory till times out or server shut downs. After servlet is loaded, to handle a new request it simply creates a new thread and runs service method of servlet. In comparison to traditional CGI scripts which creates a new process to serve the request. This intuitive method of servlets could be use to develop high speed data driven web sites. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>293.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Extensibility<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Servlets are developed in java which is robust, well-designed and object oriented language which can be extended or polymorphed into new objects. So the java servlets takes all these advantages and can be extended from existing class the provide the ideal solutions. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>293.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Safety<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java provides a very good safety features like memory management, exception handling etc. Servlets inherits all these features and emerged as a very powerful web server extension. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>293.5<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Secure<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Servlets are server side components, so it inherits the security provided by the web server. Servlets are also benefited with Java Security Manager.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the lifecycle methods of Servlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The interface javax.servlet.Servlet,<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>defines the three life-cycle methods. These are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">public void init(ServletConfig config) throws ServletException<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">public void service( ServletRequest req, ServletResponse res) throws ServletException, IOException<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">public void destroy()<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The container manages the lifecycle of the Servlet. When a new request come to a Servlet, the container performs the following steps.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If an instance of the servlet does not exist, the web container<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294.1.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Loads the servlet class.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294.1.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Creates an instance of the servlet class.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294.1.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Initializes the servlet instance by calling the init method. Initialization is covered in Initializing a Servlet.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>The container invokes the service method, passing request and response objects.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>294.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>To remove the servlet, container finalizes the servlet by calling the servlet&#8217;s destroy method.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>295<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the type of protocols supported by HttpServlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It extends the GenericServlet base class and provides an framework for handling the HTTP protocol. So, HttpServlet only supports HTTP and HTTPS protocol.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>296<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the directory Structure of Web Application?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Web component follows the standard directory structure defined in the J2EE specification.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Source<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Web Content<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&#8212;-jsp, html, css, images<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&#8212;-WEB-INF<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&#8212;&#8212;&#8212;&#8212;web.xml<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&#8212;&#8212;&#8212;&#8212;lib<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">&#8212;&#8212;&#8212;&#8212;classes<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>297<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is ServletContext?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">ServletContext is an Interface that defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file. There is one context per &#8220;web application&#8221; per Java Virtual Machine. (A &#8220;web application&#8221; is a collection of servlets and content installed under a specific subset of the server&#8217;s URL namespace such as \/catalog and possibly installed via a .war file.)<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>298<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is meant by Pre-initialization of Servlet?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When servlet container is loaded, all the servlets defined in the web.xml file does not initialized by default. But the container receives the request it loads the servlet. But in some cases if you want your servlet to be initialized when context is loaded, you have to use a concept called pre-initialization of Servlet. In case of Pre-initialization, the servlet is loaded when context is loaded. You can specify &lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">in between the &lt;servlet&gt;&lt;\/servlet&gt; tag.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>299<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What mechanisms are used by a Servlet Container to maintain session information?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Servlet Container uses Cookies, URL rewriting, and HTTPS protocol information to maintain the session.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>300<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What do you understand by servlet mapping?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Servlet mapping defines an association between a URL pattern and a servlet. You can use one servlet to process a number of url pattern (request pattern). For example in case of Struts *.do url patterns are processed by Struts Controller Servlet.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>301<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What must be implemented by all Servlets?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Servlet Interface must be implemented by all servlets.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>302<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the uses of Servlets?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>302.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Servlets are used to process the client request.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>302.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>A Servlet can handle multiple requests concurrently and be used to develop high performance system<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>302.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>A Servlet can be used to load balance among several servers, as Servlet can easily forward request.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>303<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the objects that are received when a servlets accepts call from client?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The objects are ServletRequest and ServletResponse . The ServeltRequest encapsulates the communication from the client to the server. While ServletResponse encapsulates the communication from the Servlet back to the client.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>304<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are design patterns?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A pattern is a proven (and recurring) solution to a problem in a context. Each pattern describes a problem which occurs over and over again in our environment, and describes its solution to this problem in such a way that we can use this solution a lots of times. In simple words, there are a lot of common problems which a lot of developers have faced over time. These common problems ideally should have a common solution too. It is this solution when documented and used over and over becomes a design pattern.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>305<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can we always apply the same solution to different problems at hand?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">No. Design patterns would study the different problems at hand. To these problems then it would suggest different design patterns to be used. However, the type of code to be written in that design pattern is solely the discretion of the Project Manager who is handling that project.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>306<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What should be the level of detail\/abstraction which should be provided by a design pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Design patterns should present a higher abstraction level though it might include details of the solution. However, these details are lower abstractions and are called strategies. There may be more than one way to apply these strategies in implementing the patterns.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>307<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are the most common problems which one faces during the application design phase that are solved by design patterns?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>307.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Identifying components, internal structures of the components, and relationships between components. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>307.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Determining component granularity and appropriate interactions <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>307.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Defining component interfaces.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>308<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How does one decide which Design pattern to use in our application?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">We need to follow these steps:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>308.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>We need to understand the problem at hand. Break it down to finer grained problems. Each design pattern is meant to solve certain kinds of problems. This would narrow down our search for design patterns. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>308.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Read the problem statement again along with the solution which the design pattern will provide. This may instigate to change a few patterns that we are to use. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>308.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Now figure out the interrelations between different patterns. Also decide what all patterns will remain stable in the application and what all need to change (with respect to Change Requests received from the clients).<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>309<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Refactoring?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Learning different design patterns is not sufficient to becoming a good designer. We have to understand these patterns and use them where they have more benefits. Using too many patterns (more than required) would be over-engineering and using less design patterns than required would be under-engineering. In both these scenarios we use refactoring. Refactoring is a change made to the internal structure of the software to make it easier to understand and cheaper to modify, without changing its observable behaviour.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>310<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What are Antipatterns?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Though the use of patterns fulfils our objectives in the applications; there are also several instances where several applications did not fulfill their goals. The architects of these applications too need to document these wrong decisions. This helps us in repeating these mistakes in our future applications. Such documented mistakes are called antipatterns. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Thus antipatterns are negative solutions which cause more problems than what they address. For ex. We might use entity beans which have fine-grained interfaces which can directly be accessed from the client side. This would result in considerable RMI and transaction management overhead. It results in poor performance and un-scalable applications.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>311<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>As we do development in tiers, how do we divide patterns in tiers?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The <st1:place w:st=\"on\"><st1:PlaceName w:st=\"on\">Sun<\/st1:PlaceName> <st1:PlaceName w:st=\"on\">Java<\/st1:PlaceName> <st1:PlaceType w:st=\"on\">Center<\/st1:PlaceType><\/st1:place> has classified the patterns in three tiers. These are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Presentation tier patterns for web-component tier, <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Business tier patterns for business logic (EJB) tier, and <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Integration tier patterns for connection to the databases. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The presentation tier patterns are: <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Intercepting filter, Front Controller, View Helper, Composite View, Service-to-Worker, and Dispatcher View.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The business tier patterns are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Business delegate, Value Object, Session Fa\u00e7ade, Composite Entity, Value Object Assembler, Value List Handler, and Service Locator.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Integration tier patterns are:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Data Access Object (DAO) and Service Activator.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>312<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Intercepting Filter pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Provides a solution for pre-processing and post-processing a request. It allows us to declaratively apply filters for intercepting requests and responses. For ex. Servlet filters.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>313<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Front Controller pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It manages and handles requests through a centralized code. This could either be through a servlet or a JSP (through a Java Bean). This Controller takes over the common processing which happens on the presentation tier. The front controller manages content retrieval, security, view management and retrieval.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>314<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is View Helper pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There generally are two parts to any application \u2013 the presentation and the business logics. The \u201cView\u201d is responsible for the output-view formatting whereas \u201cHelper\u201d component is responsible for the business logic. Helper components do content retrieval, validation and adaptation. Helper components generally use Business delegate pattern to access business classes.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>315<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Composite View pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This pattern is used for creating aggregate presentations (views) from atomic sub-components. This architecture enables says piecing together of elementary view components which makes the presentation flexible by allowing personalization and customization.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>316<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Service to Worker pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This is used in larger applications wherein one class is used to process the requests while the other is used to process the view part. This differentiation is done for maintainability.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>317<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Dispatcher View pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This is similar to Service to Worker pattern except that it is used for smaller applications. In this one class is used for both request and view processing.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>318<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Business Delegate pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This pattern is used to reduce the coupling between the presentation and business-logic tier. It provides a proxy to the fa\u00e7ade from where one could call the business classes or DAO class. This pattern can be used with Service Locator pattern for improving performance.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>319<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Value Object (VO) pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Value Object is a serializable object which would contain lot of atomic values. These are normal java classes which may have different constructors (to fill in the value of different data) and getter methods to get access to these data. VOs are used as a course grained call which gets lots of data in one go (this reduces remote overhead). The VO is made serializable for it to be transferred between different tiers within a single remote method invocation.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>320<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Session Fa\u00e7ade pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This pattern hides the complexity of business components and centralizes the workflow. It provides course-grained interfaces to the clients which reduces the remote method overhead. This pattern fits well with declarative transactions and security management.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>321<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Value Object Assembler pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This pattern allows for composing a Value Object from different sources which could be EJBs, DAOs or Java objects.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>322<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Value List Handler pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This pattern provides a sound solution for query execution and results processing.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>323<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Service Locator pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It provides a solution for looking-up, creating and locating services and encapsulating their complexity. It provides a single point of control and it also improves performance.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>324<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Data Access Object pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It provides a flexible and transparent access to the data, abstracts the data sources and hides the complexity of Data persistence layer. This pattern provides for loose coupling between business and data persistence layer.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>325<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is EJB Command pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Session Fa\u00e7ade and EJB Command patterns are competitor patterns. It wraps business logic in command beans, decouples the client and business logic tier, and reduces the number of remote method invocations.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>326<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Version Number pattern?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This pattern is used for transaction and persistence and provides a solution for maintaining consistency and protects against concurrency. Every time a data is fetched from the database, it comes out with a version number which is saved in the database. Once any update is requested on the same row of the database, this version is checked. If the version is same, the update is allowed else not.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>327<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What all patterns are used to improve performance and scalability of the application?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">VO, Session Fa\u00e7ade, Business Delegate and Service Locator.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>328<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What design patterns could be used to manage security?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Single Access Point, Check point and Role patterns.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>329<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How could Java classes direct program messages to the system console, but error messages, say to a file?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This is how the standard output could be re-directed:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Stream st = new FileOutputStream(&#8220;output.txt&#8221;)); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">System.setErr(st); <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">\/\/System.setOut(st);<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>330<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Why would you use a synchronized block vs. synchronized method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Synchronized blocks place locks for shorter periods than synchronized methods.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>331<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Explain the usage of the keyword transient?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>332<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How do you know if an explicit object casting is needed?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If you assign a superclass object to a variable of a subclass&#8217;s data type, you need to do explicit casting. For example:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Object a; Customer b; b = (Customer) a;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When you assign a subclass to a variable having a supeclass type, the casting is performed automatically.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>333<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What&#8217;s the difference between the methods sleep() and wait()<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in the class Object and the method sleep() is defined in the class Thread.The sleep does not release the object lock while wait releases object lock.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>334<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can you write a Java class that could be used both as an applet as well as an application?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Yes. Add a main() method to the applet.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>335<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What&#8217;s the difference between constructors and other methods?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>336<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can you call one constructor from another if a class has multiple constructors?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes. Use this() syntax.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>337<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Explain the usage of Java packages.<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>338<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If a class is located in a package, what do you need to change in the OS environment to be able to use it?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">You need to add a directory or a jar file that contains the package directories to the CLASSPATH environment variable. Let&#8217;s say a class Employee belongs to a package com.xyz.hr; and is located in the file c:\\dev\\com\\xyz\\hr\\Employee.java. In this case, you&#8217;d need to add c:\\dev to the variable CLASSPATH. If this class contains the method main(), you could test it from a command prompt window as follows:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">c:\\&gt;java com.xyz.hr.Employee<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>339<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What order does JVM search the path for the classes?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>339.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>CLASSPATH<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>339.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>\u2013classpath in java command<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>339.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>. the current directory<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">When you use CLASSPATH and \u2013classpath, you must set the . (current directory) manually. Or the . (current director) is not searched.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>340<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What&#8217;s the difference between J2SDK 1.5 and J2SDK 5.0?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">There&#8217;s no difference, Sun Microsystems just re-branded this version.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>341<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What would you use to compare two String variables &#8211; the operator == or the method equals()?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">I&#8217;d use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>342<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Yes, it does. The FileNoFoundException is inherited from the IOException. Exception&#8217;s subclasses have to be caught first.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>343<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Can an inner class declared inside of a method access local variables of this method?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It&#8217;s possible if these variables are final.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Because the instance of the inner class have longer life cycle than the method. In addition, the final variant is special one, which will be stored beyond the method. So final variant inside the method can be access in method inner class.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>344<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What can go wrong if you replace &amp;&amp; with &amp; in the following code:<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">String a=null; if (a!=null &amp;&amp; a.length()&gt;10) {&#8230;}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">A single ampersand here would lead to a NullPointerException.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>345<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What&#8217;s the main difference between a Vector and an ArrayList?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Java Vector class is internally synchronized and ArrayList is not.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>346<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>When should the method invokeLater()be used?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">This method is used to ensure that Swing components are updated through the event-dispatching thread.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>347<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How can a subclass call a method or a constructor defined in a superclass?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass&#8217;s constructor.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>348<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What&#8217;s the difference between a queue and a stack?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>349<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Sometimes. But your class may be a descendent of another class and in this case the interface is your only option.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>350<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What comes to mind when you hear about a young generation in Java?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Garbage collection.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>351<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What comes to mind when someone mentions a shallow copy in Java?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Object cloning.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>352<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If you&#8217;re overriding the method equals() of an object, which other method you might also consider?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">hashCode()<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>353<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use: ArrayList or LinkedList?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">ArrayList<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>354<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How would you make a copy of an entire Java object with its state?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Have this class implement Cloneable interface and call its method clone().<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>355<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How can you minimize the need of garbage collection and make the memory use more effective?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Use object pooling and weak object references.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>356<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How to use the weak object reference?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If there is no strong reference to one object, the object may be reclaim or may not be relaim. Then softReference.get() can be used to get the object again if the object is not claimed.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\">import java.awt.Graphics;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\">import java.awt.Image;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\">import java.applet.Applet;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\">import java.lang.ref.SoftReference;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\">public class DisplayImage extends Applet {<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>SoftReference sr = null;<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>public void init() {<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Initializing&#8221;);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>public void paint(Graphics g) {<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/SPAN>Image im = (<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>sr == null) ? null : (Image)(<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>sr.get());<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>if (im == null) {<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&#8220;Fetching image&#8221;);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>im = getImage(getCodeBase(),<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&#8220;truck1.gif&#8221;);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>sr = new SoftReference(im);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Painting&#8221;);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>g.drawImage(im, 25, 25, this);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>im = null;<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>\/* Clear the strong reference to the image *\/<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>public void start() {<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Starting&#8221;);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>public void stop() {<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Stopping&#8221;);<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\"><o:p>&nbsp;<\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt\">}<o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>357<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>There are two classes: A and B. The class B need to inform a class A when some important event has happened. What Java technique would you use to implement it?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If these classes are threads, I&#8217;d consider notify() or notifyAll(). For regular classes you can use the Observer interface.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>358<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What access level do you need to specify in the class declaration to ensure that only classes from the same directory can access it?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">You do not need to specify any access level, and Java will use a default package access level.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>359<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US>Is a class a subclass of itself? <\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/B><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>A class is a subclass of itself.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>360<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US>What<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> an I\/O filter?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">An I\/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>361<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><FONT size=3>If an object is garbage collected, can it become reachable again?<\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>362<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US>How<\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"> does Java handle integer overflows and underflows?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">It uses those low order bytes of the result that can fit into the size of the type allowed by the operation. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>363<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\">What is the difference between instanceof and isInstance?<\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">instanceof is used to check to see if an object can be cast into a specified type without throwing a cast class exception. isInstance() Determines if the specified Object is assignment-compatible with the object represented by this Class. This method is the dynamic equivalent of the Java language instanceof operator. The method returns true if the specified Object argument is non-null and can be cast to the reference type represented by this Class object without raising a ClassCastException. It returns false otherwise. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>364<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is Struts Flow?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Struts Flow is a <st1:place w:st=\"on\"><st1:PlaceType w:st=\"on\">port<\/st1:PlaceType> of <st1:PlaceName w:st=\"on\">Cocoon<\/st1:PlaceName><\/st1:place>&#8216;s Control Flow to Struts to allow complex workflow, like multi-form wizards, to be easily implemented using continuations-capable JavaScript. It provides the ability to describe the order of Web pages that have to be sent to the client, at any given point in time in an application. The code is based on a proof-of-concept Dave Johnson put together to show how the Control Flow could be extracted from Cocoon.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>365<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is tunnelling?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Tunnelling is a route to somewhere. For example, RMI tunnelling is a way to make RMI application get through firewall. In CS world, tunnelling means a way to transfer data.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/B><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>366<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is session hijacking?<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">If you application is not very secure then it is possible to get the access of system after acquiring or generating the authentication information. Session hijacking refers to the act of taking control of a user session after successfully obtaining or generating an authentication session ID. It involves an attacker using captured, brute forced or reverse-engineered session IDs to get a control of a legitimate user&#8217;s Web application session while that session is still in progress.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>367<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>If a static method is synchronized, what object is used to synchronize?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">The Class Object itself.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>368<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the usage of the parameterized type?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>368.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Validation at compile time.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>368.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Decrease the type cast.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>369<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the output?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">public class Test {<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>public static void main(String[] args) {<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>loopByNum(5);<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>private static void loopByNum(int num) {<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>loop:<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>for<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>(int i = 1; i &lt; 3; i ++) {<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>for (int j = 0; j &lt; 3; j++) {<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>if (num<SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>== 5)<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>break loop;<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>System.out.println(&#8220;Test&#8221;);<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp; <\/SPAN>}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Answer: No output.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>370<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US><FONT size=3>GJ <\/FONT><\/SPAN><\/FONT><FONT size=3><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u7a0b\u5e8f\u7684\u8bed\u6cd5\u5728\u8868\u9762\u4e0a\u4e0e<\/SPAN><SPAN lang=EN-US><FONT face=\"Times New Roman\"> C++ <\/FONT><\/SPAN><SPAN style=\"FONT-FAMILY: \u5b8b\u4f53; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'\">\u4e2d\u7684\u6a21\u677f\u975e\u5e38\u7c7b\u4f3c\uff0c\u4f46\u662f\u4e8c\u8005\u4e4b\u95f4\u6709\u7740\u672c\u8d28\u7684\u533a\u522b<\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/P><br \/>\n<P style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><FONT size=3><FONT face=\u5b8b\u4f53>\u9996\u5148\uff0c<SPAN lang=EN-US>Java <\/SPAN>\u8bed\u8a00\u4e2d\u7684\u6cdb\u578b\u4e0d\u80fd\u63a5\u53d7\u57fa\u672c\u7c7b\u578b\u4f5c\u4e3a\u7c7b\u578b\u53c2\u6570<SPAN lang=EN-US>\u2015\u2015<\/SPAN>\u5b83\u53ea\u80fd\u63a5\u53d7\u5f15\u7528\u7c7b\u578b\u3002\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u5b9a\u4e49<SPAN lang=EN-US> List&lt;Integer&gt;<\/SPAN>\uff0c\u4f46\u662f\u4e0d\u53ef\u4ee5\u5b9a\u4e49<SPAN lang=EN-US> List&lt;int&gt;<\/SPAN>\u3002<SPAN lang=EN-US> <\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><FONT face=\u5b8b\u4f53 size=3>\u5176 \u6b21\uff0c\u5728<SPAN lang=EN-US> C++ <\/SPAN>\u6a21\u677f\u4e2d\uff0c\u7f16\u8bd1\u5668\u4f7f\u7528\u63d0\u4f9b\u7684\u7c7b\u578b\u53c2\u6570\u6765\u6269\u5145\u6a21\u677f\uff0c\u56e0\u6b64\uff0c\u4e3a<SPAN lang=EN-US> List&lt;A&gt; <\/SPAN>\u751f\u6210\u7684<SPAN lang=EN-US> C++ <\/SPAN>\u4ee3\u7801\u4e0d\u540c\u4e8e\u4e3a<SPAN lang=EN-US> List&lt;B&gt; <\/SPAN>\u751f\u6210\u7684\u4ee3\u7801\uff0c<SPAN lang=EN-US>List&lt;A&gt; <\/SPAN>\u548c<SPAN lang=EN-US> List&lt;B&gt; <\/SPAN>\u5b9e\u9645\u4e0a\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u7c7b\u3002\u800c<SPAN lang=EN-US> Java <\/SPAN>\u4e2d\u7684\u6cdb\u578b\u5219\u4ee5\u4e0d\u540c\u7684\u65b9\u5f0f\u5b9e\u73b0\uff0c\u7f16\u8bd1\u5668\u4ec5\u4ec5\u5bf9\u8fd9\u4e9b\u7c7b\u578b\u53c2\u6570\u8fdb\u884c\u64e6\u9664\u548c\u66ff\u6362\u3002\u7c7b\u578b<SPAN lang=EN-US> ArrayList&lt;Integer&gt; <\/SPAN>\u548c<SPAN lang=EN-US> ArrayList&lt;String&gt; <\/SPAN>\u7684\u5bf9\u8c61\u5171\u4eab\u76f8\u540c\u7684\u7c7b\uff0c\u5e76\u4e14\u53ea\u5b58\u5728\u4e00\u4e2a<SPAN lang=EN-US> ArrayList <\/SPAN>\u7c7b\u3002<\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>371<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the name of the configuration file in JSF?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">faces-config.xml<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>372<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><FONT size=3><SPAN lang=EN-US>If you declare the composite keys in hibernate configuration, how many classes do you really need?<\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>One or Two.<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>372.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>The plain properties can be used as the composite keys.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&lt;composite-id&gt;<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;key-property name=&#8221;medicareNumber&#8221;\/&gt;<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;key-property name=&#8221;dependent&#8221;\/&gt;<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&lt;\/composite-id&gt;<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>372.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US><FONT size=3>An encapsulated ID class can be used.<\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&lt;composite-id class=&#8221;MedicareId&#8221; mapped=&#8221;true&#8221;&gt;<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;key-property name=&#8221;medicareNumber&#8221;\/&gt;<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>&lt;key-property name=&#8221;dependent&#8221;\/&gt;<\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 52.5pt; mso-para-margin-left: 5.0gd\"><SPAN lang=EN-US><FONT face=\"Times New Roman\" size=3>&lt;\/composite-id&gt;<\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN lang=EN-US><SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><\/o:p><\/SPAN><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\" align=left><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt\"><SPAN style=\"mso-list: Ignore\">373<SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\">What&nbsp;are new features in JDK 1.5?<o:p><\/o:p><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt\"><SPAN style=\"mso-list: Ignore\"><FONT face=\"Times New Roman\">373.1<SPAN style=\"FONT: 7pt 'Times New Roman'\"> <\/SPAN><\/FONT><\/SPAN><\/SPAN><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: Tahoma\">\u6cdb\u578b<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><FONT face=\"Times New Roman\">(Generic Java)<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt\"><SPAN style=\"mso-list: Ignore\"><FONT face=\"Times New Roman\">373.2<SPAN style=\"FONT: 7pt 'Times New Roman'\"> <\/SPAN><\/FONT><\/SPAN><\/SPAN><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'\">\u679a\u4e3e<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><FONT face=\"Times New Roman\">(Enums)<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt\"><SPAN style=\"mso-list: Ignore\"><FONT face=\"Times New Roman\">373.3<SPAN style=\"FONT: 7pt 'Times New Roman'\"> <\/SPAN><\/FONT><\/SPAN><\/SPAN><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: Tahoma\">\u53ef\u53d8\u53c2\u6570<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><FONT face=\"Times New Roman\">(Varargs)<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\" align=left><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt\"><SPAN style=\"mso-list: Ignore\">373.4<SPAN style=\"FONT: 7pt 'Times New Roman'\"> <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\">For-Each<\/SPAN><\/FONT><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: Tahoma\">\u5faa\u73af<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><o:p><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; TEXT-ALIGN: left; mso-pagination: widow-orphan; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 0pt\"><SPAN style=\"mso-list: Ignore\"><FONT face=\"Times New Roman\">373.5<SPAN style=\"FONT: 7pt 'Times New Roman'\"> <\/SPAN><\/FONT><\/SPAN><\/SPAN><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: Tahoma\">\u81ea\u52a8\u88c5\u5305<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><FONT face=\"Times New Roman\">\/<\/FONT><\/SPAN><SPAN style=\"FONT-SIZE: 12pt; FONT-FAMILY: \u5b8b\u4f53; mso-font-kerning: 0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: Tahoma\">\u62c6\u5305<\/SPAN><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><FONT face=\"Times New Roman\">(Autoboxing\/unboxing)<o:p><\/o:p><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 15pt; TEXT-ALIGN: left; mso-pagination: widow-orphan\" align=left><SPAN lang=EN-US style=\"FONT-SIZE: 12pt; mso-font-kerning: 0pt\"><o:p><FONT face=\"Times New Roman\">&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>374<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What selectors can you use in CSS?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Html Selector: style=\u201dcolor:red\u201d<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Class Selector: tag.Classname {property:value}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Id Selector: #IDname {property:value}<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>375<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What does it mean by $, $$, $F, $A, $H, $W, $R?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$, Return the element with the specific id. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$$, Return the element with the specific CSS id.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$F, Return the value of element with the specific id.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$A, Return an array.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$H, Return an Hash.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$W, Split the string by whitespace.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">$R, Return a range.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>376<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How does Prototype support <st1:place w:st=\"on\"><st1:City w:st=\"on\">Ajax<\/st1:City><\/st1:place>?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>376.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Ajax.Request -&gt; <st1:City w:st=\"on\">Ajax<\/st1:City> Response (<st1:City w:st=\"on\"><st1:place w:st=\"on\">Ajax<\/st1:place><\/st1:City> Responders)<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN class=keywords><SPAN lang=EN style=\"mso-ansi-language: EN\">new<\/SPAN><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\"> Ajax.Request<\/SPAN><\/CODE><SPAN class=brackets><SPAN lang=EN style=\"mso-ansi-language: EN\">(<\/SPAN><\/SPAN><SPAN class=string><SPAN lang=EN style=\"mso-ansi-language: EN\">&#8216;\/your\/url&#8217;<\/SPAN><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">, { <\/SPAN><\/CODE><\/FONT><\/FONT><SPAN lang=EN style=\"mso-ansi-language: EN\"><BR><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">&nbsp;&nbsp;onSuccess: <\/SPAN><\/CODE><FONT size=3><FONT face=\"Times New Roman\"><SPAN class=keywords><SPAN lang=EN style=\"mso-ansi-language: EN\">function<\/SPAN><\/SPAN><SPAN class=brackets><SPAN lang=EN style=\"mso-ansi-language: EN\">(<\/SPAN><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">transport<\/SPAN><\/CODE><SPAN class=brackets><SPAN lang=EN style=\"mso-ansi-language: EN\">)<\/SPAN><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\"> { <\/SPAN><\/CODE><\/FONT><\/FONT><SPAN lang=EN style=\"mso-ansi-language: EN\"><BR><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">&nbsp;&nbsp;&nbsp;&nbsp;transport.headerJSON <\/SPAN><\/CODE><SPAN lang=EN style=\"mso-ansi-language: EN\"><BR><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">&nbsp;&nbsp;} <\/SPAN><\/CODE><SPAN lang=EN style=\"mso-ansi-language: EN\"><BR><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">}<\/SPAN><\/CODE><FONT size=3><FONT face=\"Times New Roman\"><SPAN class=brackets><SPAN lang=EN style=\"mso-ansi-language: EN\">)<\/SPAN><\/SPAN><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">;<o:p><\/o:p><\/SPAN><\/CODE><\/FONT><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\"><o:p>&nbsp;<\/o:p><\/SPAN><\/CODE><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN\"><SPAN style=\"mso-list: Ignore\">376.2<SPAN style=\"FONT: 7pt 'Times New Roman'\"> <\/SPAN><\/SPAN><\/SPAN><\/CODE><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">Ajax.Request -&gt; Ajax.Updater -&gt; Ajax.PeriodicalUpdater<o:p><\/o:p><\/SPAN><\/CODE><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\"><o:p>&nbsp;<\/o:p><\/SPAN><\/CODE><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 28.6pt; TEXT-INDENT: 21pt\"><CODE><SPAN lang=EN style=\"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-ansi-language: EN\">Inherit from the previous one.<o:p><\/o:p><\/SPAN><\/CODE><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>377<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>How does <st1:place w:st=\"on\"><st1:City w:st=\"on\">Ajax<\/st1:City><\/st1:place> work?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>function test(data) {<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3> \/\/ taking care of data<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>}<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>function handler() {<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3> if(this.readyState == 4 &amp;&amp; this.status == 200) {<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>\/\/ so far so good<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>if(this.responseXML != null &amp;&amp; this.responseXML.getElementById(&#8216;test&#8217;).firstChild.data)<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN>\/\/ success!<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>test(this.responseXML.getElementById(&#8216;test&#8217;).firstChild.data);<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>else<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp;&nbsp; <\/SPAN>test(null);<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3> } else if (this.readyState == 4 &amp;&amp; this.status != 200) {<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>\/\/ fetched the wrong page or network error&#8230;<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3><SPAN style=\"mso-spacerun: yes\">&nbsp; <\/SPAN>test(null);<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3> }<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>}<o:p><\/o:p><\/FONT><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>var client = new XMLHttpRequest();<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>client.onreadystatechange = handler;<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><CODE><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\"><FONT size=3>client.open(&#8220;GET&#8221;, &#8220;test.xml&#8221;);<o:p><\/o:p><\/FONT><\/SPAN><\/B><\/CODE><\/PRE><PRE style=\"MARGIN-LEFT: 21pt; mso-para-margin-left: 2.0gd\"><FONT size=3><CODE><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"FONT-FAMILY: 'Times New Roman'\">client.send();<\/SPAN><\/B><\/CODE><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US><o:p><\/o:p><\/SPAN><\/B><\/FONT><\/PRE><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>378<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What does Hibernate handle inheritance?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>378.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Table per class hierarchy &lt;subclass&gt; (descriminator)<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>378.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Table per each class &lt;join-subclass&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>378.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Table per concrete class with unions &lt;union-subclass&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>379<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What states does Hibernate Object have?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">New.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Persistent.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Detached.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>380<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between save and update?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Save: Insert a new record.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Update: Update a detached record.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>381<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between update and saveOrUpdate?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Update: Update a detached record.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">SaveOrUpdate: Save a new record or update a detached record.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>382<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is difference between persist and save?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Persist, the DB operation will be hanging on until the transaction is committed or flush is called. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Save, the DB operation will be executed immediately.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>383<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between saveOrUpdateCopy, merge and saveOrUpdate?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">saveOrUpdateCopy is an old version of merge.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Merge, return the non-persistent object.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">With saveOrUpdate, return the persistent object. <o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\"><SPAN style=\"mso-spacerun: yes\">&nbsp;<\/SPAN><o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>384<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What is the difference between lock and update?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Lock, Make a none-changed Object to persistent.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3><FONT face=\"Times New Roman\">Update, make a changed Object to persistent.<o:p><\/o:p><\/FONT><\/FONT><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>What does Hibernate provide?<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Component Mapping<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.1.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>A contained class which is value type.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Collection Mapping<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.2.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>One to one. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.2.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>One to Many.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.2.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Many to One. <o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.2.4<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Many to Mang.<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 49.6pt; TEXT-INDENT: -1cm; tab-stops: list 49.6pt; mso-list: l34 level2 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Inheritance Mapping<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.3.1<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Table per class hierarchy &lt;subclass&gt; (descriminator)<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.3.2<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Table per each class &lt;join-subclass&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 70.9pt; TEXT-INDENT: -1cm; tab-stops: list 70.9pt; mso-list: l34 level3 lfo4\"><FONT face=\"Times New Roman\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>385.3.3<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><FONT size=3>Table per concrete class with unions &lt;union-subclass&gt;<o:p><\/o:p><\/FONT><\/SPAN><\/FONT><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 42pt\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT face=\"Times New Roman\" size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/P><br \/>\n<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt 21.25pt; TEXT-INDENT: -21.25pt; tab-stops: list 21.25pt; mso-list: l34 level1 lfo4\"><FONT face=\"Times New Roman\"><B style=\"mso-bidi-font-weight: normal\"><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt; mso-fareast-font-family: 'Times New Roman'\"><SPAN style=\"mso-list: Ignore\"><FONT size=3>386<\/FONT><SPAN style=\"FONT: 7pt 'Times New Roman'\">&nbsp;&nbsp;&nbsp; <\/SPAN><\/SPAN><\/SPAN><\/B><SPAN lang=EN-US style=\"mso-bidi-font-size: 10.5pt\"><o:p><FONT size=3>&nbsp;<\/FONT><\/o:p><\/SPAN><\/FONT><\/P><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What is transient variable? Transient variable can&#8217;t be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can&#8217;t be written to the stream instead when the class is retrieved from the ObjectStream the value of the &hellip; <a href=\"https:\/\/www.strongd.net\/?p=511\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Unique Skill<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[84],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-unique-skill"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=511"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/511\/revisions"}],"predecessor-version":[{"id":860,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/511\/revisions\/860"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}