<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4777137970176756708</id><updated>2026-05-03T20:40:09.512+05:30</updated><category term="java"/><category term="core java"/><category term="advanced java"/><category term="DS"/><category term="cyber forensic"/><category term="Cloud Computing"/><category term="NLP"/><category term="Data Structure"/><category term="mongoDB"/><category term="ADVANCED DATABASE SYSTEM"/><category term="Arrays"/><category term="Artificial Intelligence(AI)"/><category term="COMPUTER NETWORK MCQS"/><category term="Computer Graphics"/><category term="Design &amp; Analysis of Algorithm"/><category term="EMOTION DETECTION"/><category term="Ethical Hacking"/><category term="INFORMATION &amp; NETWORK SECURITY"/><category term="NLP Project Ideas"/><category term="Queue"/><category term="Stack"/><category term="binary search"/><category term="data structures"/><category term="searching techniques"/><category term="twitter sentiment analysis"/><title type='text'>CompSciFlix </title><subtitle type='html'>Blog about Java, Cyber Security, Cyber Forensic, Other Programming Languages, Coding, Contents for Computer Science, IT, B.Sc. CS &amp;amp;  IT, M.Sc.  CS &amp;amp;  IT,  MCA, BE  CS &amp;amp;  IT, ME  CS &amp;amp;  IT  , Interview Questions, Books and Online Course Recommendations from Udemy,  Coursera, etc&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-4686561268403790551</id><published>2024-02-14T21:33:00.000+05:30</published><updated>2024-02-14T21:33:01.555+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Design &amp; Analysis of Algorithm"/><title type='text'>Design &amp; Analysis of Algorithm</title><content type='html'>&lt;div style=&quot;margin-left: 42.25pt; text-align: left; text-indent: -21.25pt;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-indent: -21.25pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Design &amp;amp; Analysis of Algorithm MCQs&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-indent: -21.25pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 1: Which searching technique in the design and analysis of algorithms typically divides the search space into halves at each step?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Breadth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 2: Which of the following is NOT a characteristic of binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) It requires the array to be sorted.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) It has a time complexity of O(log n).&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) It can search through unsorted arrays efficiently.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) It divides the search space in half at each step.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) It can search through unsorted arrays efficiently.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 3: In binary search, what is the term used to describe the process of narrowing down the search space to find the target element?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Halving&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Conquering&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Recursion&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Partitioning&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Halving&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 4: Which data structure is commonly used to implement binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linked List&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Stack&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Queue&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) Array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 5: What is the worst-case time complexity of binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 6: Which searching technique involves traversing the entire list or array sequentially until the target element is found?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Breadth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 7: In linear search, what is the best-case time complexity when the target element is found at the beginning of the list?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 8: Which searching technique is commonly used for searching in graphs or trees by exploring as far as possible along each branch before backtracking?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Breadth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 6: Which searching technique is suitable for unsorted arrays and sequentially checks each element until a match is found?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 7: What is the primary advantage of linear search over binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) It has a lower time complexity.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) It does not require the array to be sorted.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) It always finds the target element in fewer steps.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) It consumes less memory.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) It does not require the array to be sorted.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 8: Which searching technique is an enhancement of binary search, particularly effective when the elements are uniformly distributed?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Exponential Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 9: In jump search, what is the role of the &quot;jump&quot; step?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) It involves making large jumps in the array.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) It determines the size of the next jump.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) It decides whether to switch to binary search.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) It is used to calculate the average jump length.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) It involves making large jumps in the array.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 10: Which searching technique works best when the elements are uniformly distributed and the array is sorted?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 11: Which searching technique divides the array into blocks and performs a binary search on each block?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Block Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Exponential Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Block Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 12: What is the primary disadvantage of linear search compared to binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Higher time complexity&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Requires sorted array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Requires more memory&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Limited applicability&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Higher time complexity&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 13: In which scenario does linear search perform better than binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) When the array is very large&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) When the array is sorted in descending order&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) When the target element is located in the middle of the array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) When the target element is located near the beginning of the array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) When the target element is located near the beginning of the array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 14: Which searching technique involves recursively dividing the array into smaller subarrays until the target element is found or the array is empty?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Exponential Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Depth-First Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 15: In which situation does binary search perform poorly?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) When the array is small&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) When the array is sorted in descending order&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) When the target element is located at the end of the array&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) When the array contains duplicate elements&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) When the array is sorted in descending order&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 1: What is the average-case time complexity of linear search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 2: What is the worst-case time complexity of binary search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 3: Which searching algorithm has a time complexity of O(log n) in both average and worst cases?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Exponential Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 4: What is the worst-case time complexity of linear search?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 5: Which of the following searching algorithms has the best time complexity?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 6: What is the time complexity of binary search when the array is not sorted?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 7: In the average case, which searching algorithm has a time complexity of O(log log n)?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Exponential Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) Exponential Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 8: What is the time complexity of linear search when the target element is at the beginning of the array?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 9: Which searching algorithm has a time complexity of O(sqrt(n)) when the elements are uniformly distributed?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Linear Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Binary Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Interpolation Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Jump Search&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 10: What is the time complexity of binary search when implemented iteratively?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Certainly! Here are some multiple-choice questions on the time complexity of sorting algorithms:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 1: What is the time complexity of the bubble sort algorithm?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 2: Which sorting algorithm has the best-case time complexity of O(n) when the elements are already sorted?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 3: What is the average-case time complexity of quick sort?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 4: Which sorting algorithm always performs in O(n log n) time complexity, regardless of the input data?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 5: Which sorting algorithm has the worst-case time complexity of O(n^2) but can be improved with certain optimizations?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 6: What is the time complexity of merge sort in the worst-case scenario?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 7: Which sorting algorithm typically performs better for smaller datasets due to its simplicity?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Heap Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 8: In which case does heap sort exhibit a time complexity of O(n log n)?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Best-case scenario&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Average-case scenario&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Worst-case scenario&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) All cases&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) All cases&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 9: Which sorting algorithm is not comparison-based and has a time complexity of O(n+k)?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Bucket Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Radix Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Bucket Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 10: Which sorting algorithm is inherently stable, meaning it preserves the relative order of equal elements?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 11: What is the time complexity of selection sort in all cases?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 12: Which sorting algorithm is known for its space efficiency and stability?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Radix Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Heap Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 13: Which sorting algorithm has a time complexity of O(n log n) in the best-case scenario?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Heap Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 14: Which sorting algorithm is not suitable for large datasets due to its quadratic time complexity?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Radix Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 15: Which sorting algorithm has a time complexity that can degrade to O(n^2) in the worst-case scenario but is widely used due to its average-case performance?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Heap Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Bucket Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 16: Which sorting algorithm has a time complexity that remains O(n log n) even in the worst-case scenario?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 17: What is the time complexity of shell sort in its worst-case scenario?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 18: Which sorting algorithm is most efficient for sorting linked lists due to its ability to perform well with minimal data movement?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 19: Which sorting algorithm is also known as partition-exchange sort?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Heap Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 20: What is the time complexity of counting sort, assuming the range of elements is known and small?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(k)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 21: Which sorting algorithm is based on the concept of divide and conquer?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 22: What is the time complexity of radix sort?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(k)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 23: Which sorting algorithm is not suitable for large datasets due to its memory requirements?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Radix Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Radix Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 24: Which sorting algorithm is commonly used for sorting small datasets due to its simplicity and low overhead?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Heap Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 25: What is the time complexity of bubble sort in its average-case scenario?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) O(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) O(n log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) O(log n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) O(n^2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 26: Which sorting algorithm is most affected by the order of elements in the input array?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Insertion Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Bubble Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 27: Which sorting algorithm is stable, meaning it preserves the relative order of equal elements?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Quick Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Selection Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Radix Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) Merge Sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 28: In which scenario does selection sort perform best?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) When the dataset is nearly sorted&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) When the dataset is already sorted&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) When the dataset is randomly arranged&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) When the dataset is large&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) When the dataset is randomly arranged&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Absolutely! Here are some multiple-choice questions about recursive functions:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 1: What is a recursive function?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) A function that calls itself directly or indirectly.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) A function that only accepts integer arguments.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) A function that performs a linear search.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) A function that sorts elements using a recursive approach.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) A function that calls itself directly or indirectly.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 2: What is the base case in a recursive function?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) The case where the function returns an error.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) The case where the function calls itself infinitely.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) The case where the function stops calling itself and returns a value.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) The case where the function contains no conditional statements.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) The case where the function stops calling itself and returns a value.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 3: Which of the following is true about recursion?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Recursion is always more efficient than iteration.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Recursion uses less memory than iteration.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Recursion can lead to infinite loops if not implemented correctly.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Recursion is limited to mathematical calculations.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Recursion can lead to infinite loops if not implemented correctly.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 4: In a recursive function, what is the role of the &quot;recursive step&quot;?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) To perform the final computation.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) To return the result.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) To call the function itself with a smaller input.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) To check if the base case has been reached.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) To call the function itself with a smaller input.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 5: What is tail recursion?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) A recursive function with no base case.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) A recursive function where the recursive call is the last operation in the function.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) A recursive function with multiple base cases.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) A recursive function that uses a loop instead of recursion.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) A recursive function where the recursive call is the last operation in the function.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 6: Which of the following is NOT a characteristic of recursive functions?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) They can solve problems by breaking them down into smaller, similar subproblems.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) They can be less intuitive to understand compared to iterative solutions.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) They always result in better performance than iterative solutions.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) They require a base case to terminate the recursion.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) They always result in better performance than iterative solutions.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 7: What is the primary advantage of using recursion?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Recursion always results in faster execution time.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Recursion is easier to implement than iteration.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Recursion can solve problems that have a natural recursive structure more elegantly.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Recursion does not require a base case.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Recursion can solve problems that have a natural recursive structure more elegantly.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 8: What happens if a recursive function lacks a base case?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) The function will return an error.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) The function will go into an infinite loop.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) The function will terminate immediately.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) The function will output incorrect results.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) The function will go into an infinite loop.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 9: Which programming languages typically support recursion?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) Only functional programming languages.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) Only object-oriented programming languages.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) Both functional and procedural programming languages.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) Recursion is not supported in any programming languages.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) Both functional and procedural programming languages.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 10: When should you use recursion instead of iteration?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) When performance is critical.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) When the problem can be easily solved iteratively.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) When the problem can be broken down into smaller, similar subproblems.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) When the problem involves complex mathematical calculations.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) When the problem can be broken down into smaller, similar subproblems.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 1:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def factorial(n):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n == 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return n * factorial(n-1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(factorial(5))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 0 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 1 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 5 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 120 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D) 120&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 2:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def fibonacci(n):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n &amp;lt;= 1:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return n&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return fibonacci(n-1) + fibonacci(n-2)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(fibonacci(6))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 8 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 13 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 21 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 34 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) 13&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 3:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def power(base, exponent):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if exponent == 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return base * power(base, exponent-1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(power(2, 3))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 6 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 8 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 16 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 64 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: C) 16&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 4:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def reverse_string(s):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if len(s) == 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return s&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return reverse_string(s[1:]) + s[0]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(reverse_string(&quot;hello&quot;))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) &quot;olleh&quot; &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) &quot;olleh&quot; &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) &quot;hello&quot; &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) &quot;eholl&quot; &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) &quot;olleh&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 5:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def sum_of_digits(n):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n == 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 0&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return n % 10 + sum_of_digits(n // 10)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(sum_of_digits(12345))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 15 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 10 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 14 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 5 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) 15&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 6:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def print_odd_numbers(n):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n &amp;gt; 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_odd_numbers(n - 1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n % 2 != 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print_odd_numbers(7)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 1 3 5 7 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 7 5 3 1 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 2 4 6 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 1 2 3 4 5 6 7 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) 7 5 3 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 7:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def print_numbers(n):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n &amp;gt; 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_numbers(n - 1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print_numbers(5)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 1 2 3 4 5 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 5 4 3 2 1 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 1 2 3 4 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 5 4 3 2 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: B) 5 4 3 2 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 8:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def gcd(a, b):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if b == 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return a&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return gcd(b, a % b)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(gcd(48, 18))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A) 6 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B) 12 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C) 18 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D) 24 &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: A) 6&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Question 9:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;def print_triangle(n):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if n &amp;gt; 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_triangle(n - 1)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(&#39;*&#39; * n)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;print_triangle(5)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What will be the output of the code?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;A)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;**&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;***&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;B)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;***&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;**&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;C)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;***&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;**&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;D)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;**&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;***&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D)&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;**&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;***&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;*****&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;```&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;---&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Number of comparisons required to search an element X = 18 in the list A = [ 5, 44, 89, 22, 18, 9, 3, 15, 8 ] using linear search.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;A.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;2&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;B.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;3&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;C.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;4&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;D.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;5&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Which of the following algorithms use recursion for sorting an array of integers?&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;A.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Bubble sort&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;B.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Insertion sort&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;C.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Merge sort&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun;&quot;&gt;D.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Selection sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;What is an external sorting algorithm?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;a) Algorithm that uses tape or disk during the sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;b) Algorithm that uses main memory during the sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;c) Algorithm that involves swapping&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;d) Algorithm that are considered ‘in place’&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: a&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;What is an internal sorting algorithm?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) Algorithm that uses tape or disk during the sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) Algorithm that uses main memory during the sort&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) Algorithm that involves swapping&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) Algorithm that are considered ‘in place’&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: b&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;The given array is arr = {1, 2, 4, 3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) 4&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) 2&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) 0&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: a&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;In the following scenarios, when will you use selection sort?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) The input is already sorted&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) A large file has to be sorted&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) Large values need to be sorted with small keys&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) Small values need to be sorted with large keys&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: c&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;he given array is arr = {3,4,5,2,1}. The number of iterations in bubble sort and selection sort respectively are __________&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) 5 and 4&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) 4 and 5&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) 2 and 4&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) 2 and 5&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: a&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Explanation: Since the input array is not sorted, bubble sort takes 5&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;ie n&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;iterations and selection sort takes 4&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&amp;nbsp;ie&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;(n-1) iterations&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;How many passes does an insertion sort algorithm consist of?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) N&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) N-1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) N+1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) N&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 8pt; letter-spacing: 0pt;&quot;&gt;2&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 8pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: b&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;What will be the number of passes to sort the elements using insertion sort?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;14, 12,16, 6, 3, 10&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) 6&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) 5&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) 7&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) 1&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: b&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Explanation: The number of passes is given by N-1. Here, N=6. Therefore,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;6-1=5 passes.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;For the following question, how will the array elements look like after second pass?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;34, 8, 64, 51, 32, 21&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) 8, 21, 32, 34, 51, 64&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) 8, 32, 34, 51, 64, 21&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) 8, 34, 51, 64, 32, 21&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) 8, 34, 64, 51, 32, 21&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: d&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Which of the following method is used for sorting in merge sort?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;a) partitioning&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;b) merging&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;c) exchanging&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;d) selection&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); color: #3a3a3a; font-family: &amp;quot;Open Sans&amp;quot;; font-size: 11pt; letter-spacing: 0pt;&quot;&gt;Answer: b&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/4686561268403790551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2024/02/design-analysis-of-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/4686561268403790551'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/4686561268403790551'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2024/02/design-analysis-of-algorithm.html' title='Design &amp; Analysis of Algorithm'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-6332173987295420701</id><published>2024-02-10T22:58:00.001+05:30</published><updated>2024-02-10T22:58:16.839+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="COMPUTER NETWORK MCQS"/><title type='text'> COMPUTER NETWORK MCQS</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;COMPUTER NETWORK MCQS&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;1. Which layer of the OSI model is responsible for routing and addressing?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Data Link&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Physical&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. Network**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;2. What is the primary function of ARP (Address Resolution Protocol)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To translate IP addresses to MAC addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To establish a secure connection between two hosts&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To manage network traffic congestion&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To translate IP addresses to MAC addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;3. What is the purpose of DNS (Domain Name System) in computer networks?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To convert IP addresses to domain names&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security protocols&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To regulate data flow between devices&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To convert IP addresses to domain names**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;4. Which protocol is used to securely transfer files over a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. FTP (File Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. HTTP (Hypertext Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SMTP (Simple Mail Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP (Simple Network Management Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. FTP (File Transfer Protocol)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;5. Which device forwards data packets between different networks?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Repeater&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. Router**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;6. What is the purpose of subnetting in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To reduce network traffic&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To create smaller, more manageable networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To increase network speed&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To secure network connections&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To create smaller, more manageable networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;7. Which protocol is used for sending and receiving emails?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. TCP (Transmission Control Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. UDP (User Datagram Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SMTP (Simple Mail Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. HTTP (Hypertext Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. SMTP (Simple Mail Transfer Protocol)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;8. What is the function of a firewall in a computer network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To prevent unauthorized access to the network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To boost network speed&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To prevent unauthorized access to the network**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;9. Which of the following is a reliable transport protocol in TCP/IP?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. TCP (Transmission Control Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. UDP (User Datagram Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. IP (Internet Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. ARP (Address Resolution Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. TCP (Transmission Control Protocol)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;10. What is the purpose of NAT (Network Address Translation)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To map public IP addresses to private IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To establish secure connections between networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data packets&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To map public IP addresses to private IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;11. Which network topology connects all devices in a closed loop?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Star&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Ring&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Bus&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Mesh&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. Ring**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;12. What is the function of DHCP (Dynamic Host Configuration Protocol) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage domain name registrations&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To assign IP addresses to devices automatically**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;13. Which addressing scheme is used in IPv6?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. 32-bit&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. 128-bit&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. 64-bit&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. 16-bit&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. 128-bit**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;14. What is the purpose of ICMP (Internet Control Message Protocol) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To send error messages and operational information&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To establish secure connections&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To send error messages and operational information**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;15. Which network device operates at the Data Link layer of the OSI model?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. Switch**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;16. What is the role of SSL (Secure Sockets Layer) in network communication?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To encrypt data transmission**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;17. Which protocol is used for secure remote login to a network device?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. SSH (Secure Shell)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Telnet&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. SSH (Secure Shell)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;18. What is the purpose of VLANs (Virtual Local Area Networks)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect geographically dispersed networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To divide a physical network into multiple logical networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To divide a physical network into multiple logical networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;19. Which protocol is used for real-time communication over the internet?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. RTP (Real-time Transport Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. RTP (Real-time Transport Protocol)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;20. What is the function of a proxy server in a computer network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To act as an intermediary between clients and servers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. To act as an intermediary between clients and servers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;21. Which protocol is used for web page retrieval?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. HTTP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;22. What is the purpose of QoS (Quality of Service) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To increase network speed&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network traffic priorities&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To manage network traffic priorities**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;23. Which device connects multiple network segments and operates at the Data Link layer?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Bridge**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;24. What is the role of a MAC address in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To uniquely identify a device on a network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;25. What is the function of ICMP (Internet Control Message Protocol) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To send error messages and operational information&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To establish secure connections&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To send error messages and operational information**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;26. Which protocol is used for secure remote login to a network device?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. SSH (Secure Shell)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Telnet&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. SSH (Secure Shell)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;27. What is the purpose of VLANs (Virtual Local Area Networks)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect geographically dispersed networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To divide a physical network into multiple logical networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To divide a physical network into multiple logical networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;28. Which protocol is used for real-time communication over the internet?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. RTP (Real-time Transport Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. RTP (Real-time Transport Protocol)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;29. What is the function of a proxy server in a computer network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To act as an intermediary between clients and servers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. To act as an intermediary between clients and servers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;30. Which protocol is used for web page retrieval?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. HTTP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;31. What is the purpose of QoS (Quality of Service) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To increase network speed&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network traffic priorities&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To manage network traffic priorities**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;32. Which device connects multiple network segments and operates at the Data Link layer?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Bridge**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;33. What is the role of a MAC address in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To uniquely identify a device on a network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To uniquely identify a device on a network**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;34. Which of the following is a characteristic of UDP (User Datagram Protocol)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Connection-oriented protocol&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Reliable data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Error checking and retransmission of lost packets&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Best-effort delivery&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Best-effort delivery**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;35. What is the purpose of NAT (Network Address Translation) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate public IP addresses to private IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To translate public IP addresses to private IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;36. Which protocol is responsible for converting domain names to IP addresses?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. DNS (Domain Name System)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. DHCP (Dynamic Host Configuration Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. ARP (Address Resolution Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. ICMP (Internet Control Message Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. DNS (Domain Name System)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;37. What is the purpose of a MAC table in a switch?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To store IP addresses of devices connected to the switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage routing tables&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To store MAC addresses and associated port numbers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. To store MAC addresses and associated port numbers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;38. Which network device operates at the Physical layer of the OSI model?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Repeater&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Repeater**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;39. What is the primary function of a DNS server?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To establish secure connections between networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. To translate domain names to IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;40. Which protocol is used for transferring files securely over a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. FTPS (File Transfer Protocol Secure)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. SMTP (Simple Mail Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SNMP (Simple Network Management Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. POP3 (Post Office Protocol version 3)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. FTPS (File Transfer Protocol Secure)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;41. What is the purpose of a subnet mask in IP addressing?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To identify the network portion of an IP address&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To identify the host portion of an IP address&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To determine the default gateway&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To identify the network portion of an IP address**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;42. Which protocol is used for dynamically assigning IP addresses to devices on a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. TCP (Transmission Control Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. DNS (Domain Name System)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. DHCP (Dynamic Host Configuration Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. FTP (File Transfer Protocol)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. DHCP (Dynamic Host Configuration Protocol)**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;43. What is the role of a firewall in network security?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To regulate network traffic flow**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;44. Which network topology connects all devices to a central hub or switch?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Ring&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Bus&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Star&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Mesh&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. Star**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;45. What is the function of SSL/TLS in network communication?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To establish secure connections&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To establish secure connections**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;46. Which of the following is a characteristic of a hub?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Operates at the Network layer of the OSI model&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Forwards data packets based on MAC addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Provides collision detection and prevention&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Creates multiple collision domains&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Creates multiple collision domains**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;47. What is the purpose of a default gateway in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Certainly, here are more unique multiple-choice questions related to computer networks:&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;48. Which protocol is commonly used for transferring files between a client and a server over a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. SSH&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. FTP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;49. In which layer of the OSI model does the TCP protocol operate?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Data Link&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Application&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Transport**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;50. What does TCP stand for in TCP/IP?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Transfer Control Protocol&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Transmission Control Protocol&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Transport Connection Protocol&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Terminal Control Protocol&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. Transmission Control Protocol**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;51. Which device operates at the Data Link layer of the OSI model and can segment collision domains?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Switch**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;52. What is the purpose of a subnet mask in IPv4 addressing?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To identify the network portion of an IP address&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To identify the host portion of an IP address&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To determine the default gateway&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To identify the broadcast address&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To identify the network portion of an IP address**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;53. Which of the following is a characteristic of UDP (User Datagram Protocol)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Connection-oriented protocol&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Reliable data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Error checking and retransmission of lost packets&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Best-effort delivery&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Best-effort delivery**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;54. What is the role of a DNS server in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate IP addresses to domain names&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To establish secure connections between networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To translate IP addresses to domain names**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;55. Which network device operates at the Physical layer of the OSI model and regenerates signals?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Repeater&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. Repeater**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;56. What is the purpose of ICMP (Internet Control Message Protocol) echo request and echo reply messages?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To establish secure connections&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To troubleshoot network connectivity issues&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. To troubleshoot network connectivity issues**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;57. In TCP/IP, which layer is responsible for addressing, routing, and fragmentation?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Application&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Internet&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Network Interface&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. Internet**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;58. Which protocol is used for dynamically assigning IP addresses to network devices?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. DNS&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. DHCP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. ARP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. ICMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. DHCP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;59. What is the function of a router in a computer network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To provide centralized authentication services&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To forward data packets between devices within the same network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To connect multiple networks together**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;60. Which of the following is NOT a valid network topology?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Mesh&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Star&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Circle&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bus&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. Circle**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;61. What is the purpose of ARP (Address Resolution Protocol) in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To convert IP addresses to MAC addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To convert IP addresses to MAC addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;62. Which device operates at the Physical layer of the OSI model and connects multiple network segments?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Hub**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;63. What is the primary function of NAT (Network Address Translation)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate public IP addresses to private IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To translate public IP addresses to private IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;64. Which network device operates at the Application layer of the OSI model?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Firewall&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Proxy Server&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Proxy Server**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;65. What is the purpose of a VLAN (Virtual Local Area Network)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To divide a single physical network into multiple logical networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To divide a single physical network into multiple logical networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;66. Which protocol is used for securely accessing web pages over HTTPS?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SSL/TLS&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. SSL/TLS**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;67. What is the role of a proxy server in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To act as an intermediary between clients and servers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. To act as an intermediary between clients and servers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;68. Which layer of the OSI model is responsible for error detection and correction?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Data Link&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Physical&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Transport**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;69. What is the purpose of DHCP (Dynamic Host Configuration Protocol) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage domain name registrations&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To assign IP addresses to devices automatically**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;70. Which protocol is used for transferring email messages between servers?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. POP3&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. IMAP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. SMTP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;71. What is the primary function of a firewall in network security?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To regulate network traffic flow**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;72. Which network topology connects devices in a linear fashion and uses terminators to prevent signal reflection?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Star&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Ring&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Mesh&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bus&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Answer: D. Bus**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;73. What is the purpose of ARP (Address Resolution Protocol) in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To convert IP addresses to MAC addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To convert IP addresses to MAC addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;74. Which device operates at the Physical layer of the OSI model and connects multiple network segments?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Hub&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bridge&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Hub**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;75. What is the primary function of NAT (Network Address Translation)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate public IP addresses to private IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To translate public IP addresses to private IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;76. Which network device operates at the Application layer of the OSI model?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Firewall&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Proxy Server&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Proxy Server**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;77. What is the purpose of a VLAN (Virtual Local Area Network)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To divide a single physical network into multiple logical networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To divide a single physical network into multiple logical networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;78. Which protocol is used for securely accessing web pages over HTTPS?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SSL/TLS&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. SSL/TLS**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;79. What is the role of a proxy server in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To act as an intermediary between clients and servers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. To act as an intermediary between clients and servers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;80. Which layer of the OSI model is responsible for error detection and correction?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Data Link&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Physical&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Transport**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;81. What is the purpose of DHCP (Dynamic Host Configuration Protocol) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage domain name registrations&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To assign IP addresses to devices automatically**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;82. Which protocol is used for transferring email messages between servers?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. POP3&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. IMAP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. SMTP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;83. What is the primary function of a firewall in network security?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To regulate network traffic flow**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;84. Which network topology connects devices in a linear fashion and uses terminators to prevent signal reflection?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Star&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Ring&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Mesh&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bus&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Bus**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;85. What is the primary function of NAT (Network Address Translation)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate public IP addresses to private IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To translate public IP addresses to private IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;86. Which network device operates at the Application layer of the OSI model?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Firewall&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Proxy Server&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Proxy Server**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;87. What is the purpose of a VLAN (Virtual Local Area Network)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To divide a single physical network into multiple logical networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To divide a single physical network into multiple logical networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;88. Which protocol is used for securely accessing web pages over HTTPS?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SSL/TLS&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. SSL/TLS**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;89. What is the role of a proxy server in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To act as an intermediary between clients and servers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. To act as an intermediary between clients and servers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;90. Which layer of the OSI model is responsible for error detection and correction?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Data Link&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Physical&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Transport**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;91. What is the purpose of DHCP (Dynamic Host Configuration Protocol) in networking?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage domain name registrations&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To encrypt data transmission&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. To assign IP addresses to devices automatically**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;92. Which protocol is used for transferring email messages between servers?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. SMTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. POP3&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. IMAP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. SMTP**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;93. What is the primary function of a firewall in network security?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To regulate network traffic flow**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;94. Which network topology connects devices in a linear fashion and uses terminators to prevent signal reflection?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Star&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Ring&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Mesh&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Bus&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Bus**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;95. What is the primary function of NAT (Network Address Translation)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To assign IP addresses to devices automatically&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To translate public IP addresses to private IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To translate public IP addresses to private IP addresses**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;96. Which network device operates at the Application layer of the OSI model?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Router&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Switch&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Firewall&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Proxy Server&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. Proxy Server**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;97. What is the purpose of a VLAN (Virtual Local Area Network)?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To connect multiple networks together&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;B. To divide a single physical network into multiple logical networks&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To manage network hardware resources&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: B. To divide a single physical network into multiple logical networks**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;98. Which protocol is used for securely accessing web pages over HTTPS?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. HTTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. FTP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. SSL/TLS&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. SNMP&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: C. SSL/TLS**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;99. What is the role of a proxy server in a network?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. To regulate network traffic flow&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. To manage network security policies&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. To translate domain names to IP addresses&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. To act as an intermediary between clients and servers&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: D. To act as an intermediary between clients and servers**&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;100. Which layer of the OSI model is responsible for error detection and correction?&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- A. Transport&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- B. Network&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- C. Data Link&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- D. Physical&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 9.0000pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- **Answer: A. Transport**&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/6332173987295420701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2024/02/computer-network-mcqs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/6332173987295420701'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/6332173987295420701'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2024/02/computer-network-mcqs.html' title=' COMPUTER NETWORK MCQS'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-3195678564307597461</id><published>2024-01-28T14:51:00.001+05:30</published><updated>2024-01-28T14:51:16.965+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="advanced java"/><title type='text'>JDBC</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;JDBC(&lt;span style=&quot;font-family: Verdana; text-align: justify; white-space-collapse: preserve;&quot;&gt;Java Database Connectivity)&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; text-align: justify; white-space-collapse: preserve;&quot;&gt;The JDBC API is a Java API that can access any kind of tabular data, especially data stored in a Relational Database.&amp;nbsp; JDBC stands for Java Database Connectivity.&amp;nbsp; JDBC works with Java on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.&lt;/span&gt;&lt;/p&gt;&lt;span id=&quot;docs-internal-guid-54307bab-7fff-7ac1-71ed-27cdd270b8a0&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 4pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;What is JDBC?&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 14pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC stands for&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;J&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ava&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;D&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ata&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ase&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;C&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;onnectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.&amp;nbsp; The JDBC library includes APIs for each of the tasks commonly associated with database usage:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Making a connection to a database&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Creating SQL or MySQL statements&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Executing that SQL or MySQL queries in the database&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Viewing &amp;amp; Modifying the resulting records&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Fundamentally, JDBC is a specification that provides a complete set of interfaces that allows for portable access to an underlying database. Java can be used to write different types of executables, such as:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java Applications&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java Applets&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java Servlets&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java ServerPages (JSPs)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Enterprise JavaBeans (EJBs)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;All of these different executables are able to use a JDBC driver to access a database and take advantage of the stored data.&amp;nbsp; JDBC provides the same capabilities as ODBC, allowing Java programs to contain database-independent code.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC Architecture:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 14pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC API supports both two-tier and three-tier processing models for database access but in general JDBC Architecture consists of two layers:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;JDBC API:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;This provides the application-to-JDBC Manager connection.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;JDBC Driver API:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;This supports the JDBC Manager-to-Driver Connection.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC API uses a driver manager and database-specific drivers to provide transparent connectivity to heterogeneous databases.&amp;nbsp; The JDBC driver manager ensures that the correct driver is used to access each data source. The driver manager is capable of supporting multiple concurrent drivers connected to multiple heterogeneous databases.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Following is the architectural diagram, which shows the location of the driver manager with respect to the JDBC drivers and the Java application:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 184px; overflow: hidden; width: 401px;&quot;&gt;&lt;img alt=&quot;JDBC Architecture&quot; height=&quot;184&quot; src=&quot;https://lh4.googleusercontent.com/RsK0IeW-wZKRuH8eo0k0ckDTkoQFd4d7Xw0RQ83BLND0h4h_Kkr6pJTHxfDt5CE9MOWH1knJzFUaHdKoEu17mbUhvxFw9ajxjAS39G0A0kaDOx2wZ0RqCSj-tQXpGqoMWEBnMfLx&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;401&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Common JDBC Components:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 14pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC API provides the following interfaces and classes:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;DriverManager:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;This interface manages a list of database drivers. Matches connection requests from the java application with the proper database driver using communication subprotocol. The first driver that recognizes a certain subprotocol under JDBC will be used to establish a database Connection.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Driver:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;This interface handles the communications with the database server. You will interact directly with Driver objects very rarely. Instead, you use DriverManager objects, which manages objects of this type. It also abstracts the details associated with working with Driver objects&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Connection :&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Interface with all methods for contacting a database. The connection object represents communication context, i.e., all communication with database is through connection object only.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Statement :&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;You use objects created from this interface to submit the SQL statements to the database. Some derived interfaces accept parameters in addition to executing stored procedures.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ResultSet:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;These objects hold data retrieved from a database after you execute an SQL query using Statement objects. It acts as an iterator to allow you to move through its data.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;SQLException:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;This class handles any errors that occur in a database application.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;What is JDBC Driver?&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC drivers implement the defined interfaces in the JDBC API for interacting with your database server.&amp;nbsp; For example, using JDBC drivers enable you to open database connections and to interact with it by sending SQL or database commands then receiving results with Java.&amp;nbsp; The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;package that ships with JDK contains various classes with their behaviours defined and their actual implementaions are done in third-party drivers. Third party vendors implements the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.Driver&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;interface in their database driver.&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 4pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC Drivers Types:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC driver implementations vary because of the wide variety of operating systems and hardware platforms in which Java operates. Sun has divided the implementation types into four categories&amp;nbsp; known as:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;JDBC-ODBC bridge plus ODBC driver, also called Type 1.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Native-API, partly Java driver, also called Type 2.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;JDBC-Net, pure Java driver, also called Type 3.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Native-protocol, pure Java driver, also called Type 4.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 1 Driver- the JDBC-ODBC bridge&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In a Type 1 driver, a JDBC bridge is used to access ODBC drivers installed on each client machine. Using ODBC requires configuring on your system a Data Source Name (DSN) that represents the target database.&amp;nbsp; When Java first came out, this was a useful driver because most databases only supported ODBC access but now this type of driver is recommended only for experimental use or when no other alternative is available.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC type 1 driver, also known as the JDBC-ODBC bridge is a database driver implementation that employs the ODBC driver to connect to the database. The driver converts JDBC method calls into ODBC function calls. The bridge is usually used when&amp;nbsp;there is no pure-Java driver available for a particular database.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The driver is implemented in the sun.jdbc.odbc.JdbcOdbcDriver class and comes with the Java 2 SDK, Standard Edition. The driver is platform-dependent as it makes use of ODBC which in turn depends on native libraries of the operating system.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 1 is the simplest of all but platform specific i.e only to Microsoft platform.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 1 drivers are &quot;bridge&quot; drivers. They use another technology such as Open Database Connectivity (ODBC) to communicate&amp;nbsp; with a database. This is an advantage because ODBC drivers exist for many Relational Database Management System (RDBMS)&amp;nbsp;platforms.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Functions:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Translates query obtained by JDBC into corresponding ODBC query, which is then handled by the ODBC driver.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Sun provides a JDBC-ODBC Bridge driver. sun.jdbc.odbc.JdbcOdbcDriver. This driver is native code and not Java, and is closed&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;source.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Client -&amp;gt; JDBC Driver -&amp;gt; ODBC Driver -&amp;gt; Database&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;There is some overhead associated with the translation work to go from JDBC to ODBC.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantages:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Almost any database for which ODBC driver is installed, can be accessed.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantages:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Performance overhead since the calls have to go through the JDBC overhead bridge to the ODBC driver, then to the&amp;nbsp;native database connectivity interface.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The ODBC driver needs to be installed on the client machine.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Considering the client-side software needed, this might not be suitable for applets.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-left: 36pt; margin-top: 14pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 209px; overflow: hidden; width: 273px;&quot;&gt;&lt;img height=&quot;209&quot; src=&quot;https://lh3.googleusercontent.com/WiKuEU3sQZz6UsxiPHd9XRNXh09V-llPLf_5XiMDO8Ao6ITURbj9leh-Trv6eiaLTK5GmC5fiWyApWEo69eijJ9yrzHrD-suThieteJYsvKVKoB6QhUo-B4SKzv7Tf6fsrTsm3Bo&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;273&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 2 Driver - the Native-API Driver&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC type 2 driver, also known as the Native-API driver is a database driver implementation that uses the client-side&amp;nbsp;libraries of the database. The driver converts JDBC method calls into native calls of the database API.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A native-API partly Java technology-enabled driver converts JDBC calls into calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS. Note that, like the bridge driver, this style of driver requires that some binary code be&amp;nbsp;loaded on each client machine.&amp;nbsp; It does not have the&amp;nbsp;overhead of the additional ODBC function calls.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Functions:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;This type of driver converts JDBC calls into calls to the client API for that database.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Client -&amp;gt; JDBC Driver -&amp;gt; Vendor Client DB Library -&amp;gt; Database&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Better performance than Type 1 since no jdbc to odbc translation is needed.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantages&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The vendor client library needs to be installed on the client machine.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Cannot be used in internet due the client side software needed.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Not all databases give the client side library.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-left: 36pt; margin-top: 14pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 182px; overflow: hidden; width: 161px;&quot;&gt;&lt;img height=&quot;182&quot; src=&quot;https://lh6.googleusercontent.com/IpjY045pPUsW_Jppd6gbtwaqPguQEiPl-lpbhAjeOClWzgvTY6F0nAa5k_Twu0yOuoOcSYg9Q25htGI3FqI2iFiGKEhk1vcQ39VR_F2viVkrTHcGkvealdrMEf5oMi1GQVcV2E7T&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;161&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 3 driver - the Network-Protocol Driver&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC type 3 driver, also known as the network-protocol driver is a database driver implementation which makes use of a&amp;nbsp;middle-tier between the calling program and the database. The middle-tier (application server) converts JDBC calls directly&amp;nbsp;or indirectly into the vendor-specific database protocol.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;This differs from the type 4 driver in that the protocol conversion logic resides not at the client, but in the middle-tier. However, like type 4 drivers, the type 3 driver is written entirely in Java.&amp;nbsp; These drivers use a networking protocol and middleware to communicate with a server. The server then translates the protocol to DBMS function calls specific to DBMS.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Functions:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Follows a three tier communication approach.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Can interface to multiple databases - Not vendor specific.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The JDBC Client driver written in java, communicates with a middleware-net-server using a database independent&amp;nbsp; protocol, and then this net server translates this request into database commands for that database.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Thus the client driver to middleware communication is database independent.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Client -&amp;gt; JDBC Driver -&amp;gt; Middleware-Net Server -&amp;gt; Any Database&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantages&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Since the communication between client and the middleware server is database independent, there is no need for the&amp;nbsp;vendor db library on the client machine. Also the client to middleware need&#39;nt be changed for a new database.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The Middleware Server (Can be a full fledged J2EE Application server) can provide typical middleware services like&amp;nbsp;caching (connections, query results, and so on), load balancing, logging, auditing etc..&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;eg. for the above include jdbc driver features in Weblogic.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Can be used in internet since there is no client side software needed.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;At client side a single driver can handle any database.(It works provided the middlware supports that database!!)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantages&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Requires database-specific coding to be done in the middle tier.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;An extra layer added may result in a time-bottleneck. But typically this is overcome by providing efficient middleware&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp; services described above.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-left: 36pt; margin-top: 14pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 209px; overflow: hidden; width: 299px;&quot;&gt;&lt;img height=&quot;209&quot; src=&quot;https://lh4.googleusercontent.com/gxmH5lr7oscZi65D2PE2L98ZFqYWkLaOSGn0p4VuRwLVTkFyHK1dvfeqjlLnSOxHTne3v6HluAc4zXkFdSDDYwimEo-Gm1M4Grhsg3IZ-PWBhoJyKSfbAE_h8TIIfvwjyf2kT8pj&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;299&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 4 - the Native-Protocol Driver&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC type 4 driver, also known as the native-protocol driver is a database driver implementation that converts JDBC&amp;nbsp;calls directly into the vendor-specific database protocol.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The type 4 driver is written completely in Java and is hence platform independent. It is installed inside the Java Virtual&amp;nbsp;Machine of the client. It provides better performance over the type 1 and 2 drivers as it does not have the overhead of&amp;nbsp;conversion of calls into ODBC or database API calls. Unlike the type 1 and 2 drivers, it does not need associated software&amp;nbsp;to work.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A native-protocol fully Java technology-enabled driver converts JDBC technology calls into the network protocol used&amp;nbsp;by DBMSs directly. This allows a direct call from the client machine to the DBMS server and is a practical solution for&amp;nbsp;Intranet access. Since many of these protocols are proprietary the database vendors themselves will be the primary source&amp;nbsp;for this style of driver. Several database vendors have these in progress.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The IBM Toolbox for Java JDBC driver is a Type 4 JDBC driver, indicating that the API is a pure Java networking protocol&amp;nbsp;driver.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Functions&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Type 4 drivers are entirely written in Java that communicate directly with a vendor&#39;s database through socket&amp;nbsp;connections. No translation or middleware layers, are required, improving performance.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The driver converts JDBC calls into the vendor-specific database protocol so that client applications can communicate directly with the database server.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Completely implemented in Java to achieve platform independence.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;e.g include the widely used Oracle thin driver - oracle.jdbc.driver. OracleDriver which connect to jdbc:oracle:thin&amp;nbsp;URL format.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Client Machine -&amp;gt; Native protocol JDBC Driver -&amp;gt; Database server&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantages&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;These drivers don&#39;t translate the requests into db request to ODBC or pass it to client api for the db, nor do they&amp;nbsp;need a middleware layer for request indirection. Thus the performance is considerably improved.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantage&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;At client side, a separate driver is needed for each database.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-caps: small-caps; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 184px; overflow: hidden; width: 190px;&quot;&gt;&lt;img height=&quot;184&quot; src=&quot;https://lh5.googleusercontent.com/0eSS7nK2LpS9TjooYpraXN8IF7tcOQDDJDUejDFKVZqnptSQFv2b4PVOqMamy8_f8_1CveVBXoELGSOeub6mqoqRWoiKrWNH9wGZ0cm8E9lPM9tS7E-RzaAFIxOtAGgN2TBaOrh5&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;190&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 4pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Which Driver should be used?&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;If you are accessing one type of database, such as Oracle, Sybase, or IBM, the preferred driver type is 4.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;If your Java application is accessing multiple types of databases at the same time, type 3 is the preferred driver.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type 2 drivers are useful in situations where a type 3 or type 4 driver is not available yet for your database.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The type 1 driver is not considered a deployment-level driver and is typically used for development and testing purposes only.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 4pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Following table lists down popular JDBC driver names and database URL.&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -27pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;97&quot;&gt;&lt;/col&gt;&lt;col width=&quot;284&quot;&gt;&lt;/col&gt;&lt;col width=&quot;469&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;RDBMS&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC driver name&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;URL format&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;MySQL&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;com.mysql.jdbc.Driver&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;jdbc:mysql://&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;hostname/ databaseName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ORACLE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;oracle.jdbc.driver.OracleDriver&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;jdbc:oracle:thin:@&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;hostname:portnumber:databaseName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DB2&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;COM.ibm.db2.jdbc.net.DB2Driver&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;jdbc:db2:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;hostname:port Number/databaseName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Sybase&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;com.sybase.jdbc.SybDriver&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;jdbc:sybase:Tds:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;hostname: port Number/databaseName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Creating JDBC Application:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are following six steps involved in building a JDBC application:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Import the packages .&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Requires that you include the packages containing the JDBC classes needed for database programming. Most often, using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;import java.sql.*&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;will suffice.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Register the JDBC driver .&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Requires that you initialize a driver so you can open a communications channel with the database.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Open a connection .&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Requires using the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;DriverManager.getConnection()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method to create a Connection object, which represents a physical connection with the database.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Execute a query .&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Requires using an object of type Statement for building and submitting an SQL statement to the database.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Extract data from result set .&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Requires that you use the appropriate&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ResultSet.getXXX()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method to retrieve the data from the result set.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Clean up the environment .&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Requires explicitly closing all database resources versus relying on the JVM&#39;s garbage collection.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Sample Code:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class ExecuteCreate&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con = DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Connection Created&quot;);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement st = con.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Statement Created&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String query=&quot;create table account(accno int,balance float,acctype varchar)&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;boolean result = st.execute(query);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;if(result!=true)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Table created&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Table not created&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception ex)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{ System.out.println(ex);}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 3.65pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b38; font-family: Verdana; font-size: 12pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DriverManager class:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The DriverManager class acts as an interface between user and drivers. It keeps track of the drivers that are available and handles establishing a connection between a database and the appropriate driver. The DriverManager class maintains a list of Driver classes that have registered themselves by calling the method DriverManager.registerDriver().&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: -4pt 0pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b4b; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Useful methods of DriverManager class&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -8.8pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;354&quot;&gt;&lt;/col&gt;&lt;col width=&quot;342&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 26.9pt;&quot;&gt;&lt;td style=&quot;background-color: #c7ccbe; border-bottom: 0.75pt solid rgb(199, 204, 190); border-left: 0.75pt solid rgb(199, 204, 190); border-top: 0.75pt solid rgb(199, 204, 190); overflow-wrap: break-word; overflow: hidden; padding: 8.8pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #c7ccbe; border-bottom: 0.75pt solid rgb(199, 204, 190); border-right: 0.75pt solid rgb(199, 204, 190); border-top: 0.75pt solid rgb(199, 204, 190); overflow-wrap: break-word; overflow: hidden; padding: 8.8pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 44.45pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1) public static void registerDriver(Driver driver):&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is used to register the given driver with DriverManager.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 44.45pt;&quot;&gt;&lt;td style=&quot;background-color: #eff1eb; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2) public static void deregisterDriver(Driver driver):&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eff1eb; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is used to deregister the given driver (drop the driver from the list) with DriverManager.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 26.9pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3) public static Connection getConnection(String url):&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is used to establish the connection with the specified url.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 43.4pt;&quot;&gt;&lt;td style=&quot;background-color: #eff1eb; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4) public static Connection getConnection(String url,String userName,String password):&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eff1eb; border-bottom: solid #c7ccbe 0.75pt; border-color: rgb(199, 204, 190); border-left: solid #c7ccbe 0.75pt; border-right: solid #c7ccbe 0.75pt; border-style: solid; border-top: solid #c7ccbe 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.9pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is used to establish the connection with the specified url, username and password.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 3.25pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b38; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection interface&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A Connection is the session between java application and database. The Connection interface is a factory of Statement, PreparedStatement, and DatabaseMetaData i.e. object of Connection can be used to get the object of Statement and DatabaseMetaData. The Connection interface provide many methods for transaction management like commit(), rollback() etc.&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: -4pt 0pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b4b; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Commonly used methods of Connection interface:&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;center&quot; dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;676&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 13.7pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 2.25pt solid rgb(255, 165, 0); border-right: 0.5pt solid rgb(255, 192, 203); border-top: 0.5pt solid rgb(255, 192, 203); overflow-wrap: break-word; overflow: hidden; padding: 9.75pt 9.75pt 9.75pt 25.95pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 12.95pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1) public Statement createStatement():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;creates a statement object that can be used to execute SQL queries.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 28.05pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 2.25pt solid rgb(255, 165, 0); border-right: 0.5pt solid rgb(255, 192, 203); overflow-wrap: break-word; overflow: hidden; padding: 9.75pt 9.75pt 9.75pt 25.95pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 12.95pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2) public Statement createStatement(int resultSetType,int resultSetConcurrency):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;Creates a Statement object that will generate ResultSet objects with the given type and concurrency.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 13.7pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 2.25pt solid rgb(255, 165, 0); border-right: 0.5pt solid rgb(255, 192, 203); overflow-wrap: break-word; overflow: hidden; padding: 9.75pt 9.75pt 9.75pt 25.95pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 12.95pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3) public void setAutoCommit(boolean status):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;is used to set the commit status.By default it is true.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 13.7pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 2.25pt solid rgb(255, 165, 0); border-right: 0.5pt solid rgb(255, 192, 203); overflow-wrap: break-word; overflow: hidden; padding: 9.75pt 9.75pt 9.75pt 25.95pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 12.95pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4) public void commit():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;saves the changes made since the previous commit/rollback permanent.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 14.3pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 2.25pt solid rgb(255, 165, 0); border-right: 0.5pt solid rgb(255, 192, 203); overflow-wrap: break-word; overflow: hidden; padding: 9.75pt 9.75pt 9.75pt 25.95pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 12.95pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;5) public void rollback():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;Drops all changes made since the previous commit/rollback.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 14.3pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: 0.5pt solid rgb(255, 192, 203); border-left: 2.25pt solid rgb(255, 165, 0); border-right: 0.5pt solid rgb(255, 192, 203); overflow-wrap: break-word; overflow: hidden; padding: 9.75pt 9.75pt 9.75pt 25.95pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 12.95pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;6) public void close():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;closes the connection and Releases a JDBC resources immediately.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;h4 dir=&quot;ltr&quot; style=&quot;background-clip: padding-box; background-color: white; border-bottom: solid #ffc0cb 0.5pt; border-color: rgb(255, 192, 203) rgb(255, 192, 203) rgb(255, 192, 203) rgb(255, 165, 0); border-left: solid #ffa500 2.25pt; border-right: solid #ffc0cb 0.5pt; border-style: solid; border-top: solid #ffc0cb 0.5pt; border-width: 0.5pt 0.5pt 0.5pt 2.25pt; line-height: 1.38; margin-bottom: 0pt; margin-top: 10pt; padding: 10pt 10pt 10pt 26pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Note:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: green; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; By default, connection commits the changes after executing queries.&lt;/span&gt;&lt;/h4&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 3.65pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b38; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connecting to the MySql database in java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: -10.35pt 0pt 14pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b38; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Step 1:&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: -4pt 0pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b4b; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Two ways to load the jar file:&lt;/span&gt;&lt;/h3&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 2.95pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;paste the mysqlconnector.jar file in jre/lib/ext folder&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 14pt; margin-top: 0pt; padding: 2.95pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;set classpath&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b4b; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1) paste the mysqlconnector.jar file in JRE/lib/ext folder:&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;680&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Download the mysqlconnector.jar file. Go to jre/lib/ext folder and paste the jar file here.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b4b; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2) set classpath:&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;545&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-left: 14.7pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are two ways to set the classpath:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 14.7pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.38; margin-bottom: 14pt; margin-top: 2.95pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;temporary: Type following command on command prompt&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 14pt; margin-left: 108pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;set classpath=&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; C:\folder&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;\mysql-connector.jar;.;&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 14.7pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 2.95pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;permanent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Go to environment variable then click on new tab. In variable name write&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;classpath&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;and in variable value paste the path to the mysqlconnector.jar file by appending mysqlconnector.jar;.; as C:\folder\mysql-connector.jar;.;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: -10.35pt 0pt 14pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: #610b38; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Step 2:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Create a table in the mysql database, but before creating table, we need to create database first.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Open MySql prompt and type following:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: -36pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;create&amp;nbsp;database&amp;nbsp;sydb;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: -36pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;use&amp;nbsp;sydb;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: -36pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;create&amp;nbsp;table&amp;nbsp;student(rollno&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #006699; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #c00000; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;),name&amp;nbsp;varchar(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #c00000; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;),marks&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #006699; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #c00000; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;));&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Program which connects to MySql database with database name=sydb id=root and password=msc2:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class MysqlCon&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;com.mysql.jdbc.Driver&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con=DriverManager.getConnection(&quot;jdbc:mysql://localhost:3306/sydb&quot;,&quot;root&quot;,&quot;msc2&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement stmt=con.createStatement();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet rs=stmt.executeQuery(&quot;select * from student&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;while(rs.next())&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(rs.getInt(1)+&quot;&amp;nbsp; &quot;+rs.getString(2)+&quot;&amp;nbsp; &quot;+rs.getString(3));&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(e);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Note: If you are doing in Netbeans then download mysql-connector.jar and add to to project library.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Once a connection is obtained we can interact with the database. The JDBC&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement, CallableStatement,&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;interfaces define the methods and properties that enable you to send SQL or PL/SQL commands and receive data from your database.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;They also define methods that help bridge data type differences between Java and SQL data types used in a database.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Following table provides a summary of each interface&#39;s purpose to understand how do you decide which interface to use?&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;192&quot;&gt;&lt;/col&gt;&lt;col width=&quot;534&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 13.4pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Interfaces&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Recommended Use&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 26.85pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Use for general-purpose access to your database. Useful when you are using static SQL statements at runtime. The Statement interface cannot accept parameters.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 26.85pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Use when you plan to use the SQL statements many times. The PreparedStatement interface accepts input parameters at runtime.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 27.5pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CallableStatement&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Use when you want to access database stored procedures. The CallableStatement interface can also accept runtime input parameters.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The Statement Objects:&lt;/span&gt;&lt;/h1&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 7.35pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Creating Statement Object:&lt;/span&gt;&lt;/h2&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Before you can use a Statement object to execute a SQL statement, you need to create one using the Connection object&#39;s createStatement( ) method, as in the following example:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement stmt = null;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;stmt = conn.createStatement( );&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;. . .&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch (SQLException e) {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;. . .&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Once you&#39;ve created a Statement object, you can then use it to execute a SQL statement with one of its three execute methods.&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;boolean execute(String SQL)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;: Returns a boolean value of true if a ResultSet object can be retrieved; otherwise, it returns false. Use this method to execute SQL DDL statements or when you need to use truly dynamic SQL.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;int executeUpdate(String SQL)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;: Returns the numbers of rows affected by the execution of the SQL statement. Use this method to execute SQL statements for which you expect to get a number of rows affected - for example, an INSERT, UPDATE, or DELETE statement.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ResultSet executeQuery(String SQL)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;: Returns a ResultSet object. Use this method when you expect to get a result set, as you would with a SELECT statement.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The PreparedStatement Objects:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;interface extends the Statement interface which gives you added functionality with a couple of advantages over a generic Statement object.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;This statement gives you the flexibility of supplying arguments dynamically.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement pstmt = null;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String SQL = &quot;Update Employees SET age = ? WHERE id = ?&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;pstmt = conn.prepareStatement(SQL);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;. . .&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch (SQLException e) {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;. . .&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f1f1f1; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;All parameters in JDBC are represented by the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;symbol, which is known as the parameter marker. You must supply values for every parameter before executing the SQL statement.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setXXX()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;methods bind values to the parameters, where&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;XXX&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;represents the Java data type of the value you wish to bind to the input parameter. If you forget to supply the values, you will receive an SQLException.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Each parameter marker is referred to by its ordinal position. The first marker represents position 1, the next position 2, and so forth. This method differs from that of Java array indices, which start at 0.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;All of the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement object&#39;s&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;methods for interacting with the database (a) execute(), (b) executeQuery(), and (c) executeUpdate() also work with the PreparedStatement object. However, the methods are modified to use SQL statements that can take input the parameters.&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.swing.*;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.awt.*;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.awt.event.*;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class FriendDatabase extends JFrame implements ActionListener&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JLabel lblNo,lblBal,lblLoc;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JTextField txtBal,txtNo,txtType;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JButton cmdAdd,cmdExitl;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Container cn=getContentPane();&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public FriendDatabase()&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;lblNo=new JLabel(&quot;account No.&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;lblBal=new JLabel(&quot;account BALANCE&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;lblLoc=new JLabel(&quot;account type&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;txtBal=new JTextField(10);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;txtNo=new JTextField(10);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;txtType=new JTextField(10);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cmdAdd=new JButton(&quot;Add&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cmdAdd.addActionListener(this);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cmdExit=new JButton(&quot;Exit&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cmdExit.addActionListener(this);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.setLayout(new GridLayout(4,2));&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(lblNo);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(txtNo);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(lblBal);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(txtBal);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(lblLoc);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(txtType);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(cmdAdd);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn.add(cmdExit);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setTitle(&quot;Frndz DB&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setSize(300,300);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setVisible(true);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void actionPerformed(ActionEvent ae)&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Object obj=ae.getSource();&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;if(obj==cmdAdd)&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; con = DriverManager.getConnection(&quot;jdbc:odbc:ty&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String query=&quot;insert into account values(?,?,?)&quot;;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement ps;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps=con.prepareStatement(query);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setInt(1,Integer.parseInt(txtNo.getText()));&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(2,txtBal.getText());&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(3,txtType.getText());&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.executeUpdate();&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JOptionPane.showMessageDialog(this,&quot;Record Entered&quot;,&quot;FriendsDatabase&quot;,JOptionPane.ERROR_MESSAGE);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;txtBal.setText(&quot;&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;txtNo.setText(&quot;&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;txtType.setText(&quot;&quot;);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.close();&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Error:&quot;+e.getMessage());&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;if(obj==cmdExit)&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.exit(0);&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String args[])throws SQLException&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FriendDatabase b=new FriendDatabase();&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The CallableStatement Objects:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Just as a Connection object creates the Statement and PreparedStatement objects, it also creates the CallableStatement object which would be used to execute a call to a database stored procedure.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 4pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The following code snippet shows how to employ the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection.prepareCall()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;method to instantiate a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CallableStatement&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;object based on the preceding stored procedure:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;553&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CallableStatement cstmt = null;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String SQL = &quot;{call getEmpName (?, ?)}&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cstmt = conn.prepareCall (SQL);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;. . .&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch (SQLException e) {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;. . .&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The String variable SQL represents the stored procedure, with parameter placeholders.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Using CallableStatement objects is much like using PreparedStatement objects. You must bind values to all parameters before executing the statement, or you will receive an SQLException.&amp;nbsp; If you have IN parameters, just follow the same rules and techniques that apply to a PreparedStatement object; use the setXXX() method that corresponds to the Java data type you are binding.&amp;nbsp; When you use OUT and INOUT parameters you must employ an additional CallableStatement method, registerOutParameter(). The registerOutParameter() method binds the JDBC data type to the data type the stored procedure is expected to return.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Once you call your stored procedure, you retrieve the value from the OUT parameter with the appropriate getXXX() method. This method casts the retrieved value of SQL type to a Java data type.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class CallableJdbcEx&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con=DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;,&quot;sa&quot;,&quot;&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement st=con.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String query=&quot;create&amp;nbsp; procedure proc2 as select * from account&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.executeUpdate(query);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CallableStatement cs = con.prepareCall(&quot;{call proc2}&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet rs=cs.executeQuery();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;while(rs.next())&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;No:&quot;+rs.getString(1)+&quot;\nBal:&quot;+rs.getString(2));&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(e);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC - Result Sets&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;he SQL statements that read data from a database query return the data in a result set. The SELECT statement is the standard way to select rows from a database and view them in a result set. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.ResultSet&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;interface represents the result set of a database query.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A ResultSet object maintains a cursor that points to the current row in the result set. The term &quot;result set&quot; refers to the row and column data contained in a ResultSet object.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The methods of the ResultSet interface can be broken down into three categories:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Navigational methods:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;used to move the cursor around.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Get methods:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;used to view the data in the columns of the current row being pointed to by the cursor.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Update methods:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;used to update the data in the columns of the current row. The updates can then be updated in the underlying database as well.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The cursor is movable based on the properties of the ResultSet. These properties are designated when the corresponding Statement that generated the ResultSet is created.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC provides following connection methods to create statements with desired ResultSet:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;createStatement(int RSType, int RSConcurrency);&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;prepareStatement(String SQL, int RSType, int RSConcurrency);&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;prepareCall(String sql, int RSType, int RSConcurrency);&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 10pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The first argument indicate the type of a ResultSet object and the second argument is one of two ResultSet constants for specifying whether a result set is read-only or updatable.&lt;/span&gt;&lt;/p&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: -2.5pt 0pt 7.5pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type of ResultSet:&lt;/span&gt;&lt;/h2&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The possible RSType are given below, If you do not specify any ResultSet type, you will automatically get one that is TYPE_FORWARD_ONLY.&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -13.5pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;297&quot;&gt;&lt;/col&gt;&lt;col width=&quot;480&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 24.55pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Type&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 11.25pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet.TYPE_FORWARD_ONLY&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The cursor can only move forward in the result set.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 32.85pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet.TYPE_SCROLL_INSENSITIVE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The cursor can scroll forwards and backwards, and the result set is not sensitive to changes made by others to the database that occur after the result set was created.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 40.05pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet.TYPE_SCROLL_SENSITIVE.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The cursor can scroll forwards and backwards, and the result set is sensitive to changes made by others to the database that occur after the result set was created.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 7.5pt; padding: 0pt 0pt 7.5pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Concurrency of ResultSet:&lt;/span&gt;&lt;/h2&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The possible RSConcurrency are given below, If you do not specify any Concurrency type, you will automatically get one that is CONCUR_READ_ONLY.&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;307&quot;&gt;&lt;/col&gt;&lt;col width=&quot;423&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Concurrency&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet.CONCUR_READ_ONLY&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Creates a read-only result set. This is the default&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet.CONCUR_UPDATABLE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Creates an updateable result set.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Our all the examples written so far can be written as follows which initializes a Statement object to create a forward-only, read only ResultSet object:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;553&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Statement stmt = conn.createStatement(&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ResultSet.TYPE_FORWARD_ONLY,&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ResultSet.CONCUR_READ_ONLY);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception ex) {&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;....&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Navigating a Result Set:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 10pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are several methods in the ResultSet interface that involve moving the cursor, including:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;center&quot; dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;58&quot;&gt;&lt;/col&gt;&lt;col width=&quot;672&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 24.35pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;S.N.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods &amp;amp; Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void beforeFirst() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to just before the first row&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void afterLast() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to just after the last row&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public boolean first() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to the first row&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void last() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to the last row.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 37.6pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;5&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public boolean absolute(int row) throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to the specified row&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;6&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public boolean relative(int row) throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor the given number of rows forward or backwards from where it currently is pointing.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;7&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public boolean previous() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to the previous row. This method returns false if the previous row is off the result set&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;8&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public boolean next() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to the next row. This method returns false if there are no more rows in the result set&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;9&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public int getRow() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the row number that the cursor is pointing to.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 52.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;10&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void moveToInsertRow() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor to a special row in the result set that can be used to insert a new row into the database. The current cursor location is remembered.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 52.35pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;11&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void moveToCurrentRow() throws SQLException&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Moves the cursor back to the current row if the cursor is currently at the insert row; otherwise, this method does nothing&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.awt.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.awt.event.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.swing.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class TabbedAndDatabaseDemo extends JFrame&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JTabbedPane tabpane;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;TabbedAndDatabaseDemo()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;tabpane=new JTabbedPane();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getContentPane().add(tabpane);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;tabpane.addTab(&quot;Entry of Data&quot;,new EntryData());&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pack();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setTitle(&quot; DB&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setSize(300,300);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setVisible(true);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] a)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;new TabbedAndDatabaseDemo();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class EntryData extends JPanel implements ActionListener&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JLabel acc_no,acc_bal,acc_type;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JTextField textno, textbal,texttpe;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JTextArea textarea;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JButton search,button,exit,first,next,last,prev;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet rs;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement st;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection cn ;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;EntryData()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setLayout(new GridLayout(6,1));&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;acc_no=new JLabel(&quot;No.&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;acc_bal=new JLabel(&quot;Balance&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;acc_type=new JLabel(&quot;Type&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;textno=new JTextField();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;textbal=new JTextField();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;texttpe=new JTextField();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;search = new JButton(&quot;search&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;button = new JButton(&quot;submit&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;exit = new JButton(&quot;exit&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;first= new JButton(&quot;First&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;next= new JButton(&quot;next&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;last= new JButton(&quot;Last&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;prev= new JButton(&quot;Prev&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;button.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;search.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;exit.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;first.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;next.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;last.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;prev.addActionListener(this);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(acc_no);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(textno);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(acc_bal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(textbal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(acc_type);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(texttpe);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(button);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(exit);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(first);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(next);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(last);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(prev);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;add(search);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cn = DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st = cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs = st.executeQuery(&quot;SELECT * from account&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception ex){System.out.println(ex);}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; }&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void actionPerformed(ActionEvent ae)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String sql=&quot;SELECT * from account&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;if(ae.getSource()==button)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st = cn.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int m = st.executeUpdate(&quot;insert into account values(&quot;+Integer.parseInt(textno.getText())+&quot;,&quot;+textbal.getText()+&quot;,&#39;&quot;+texttpe.getText()+&quot;&#39;);&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;JOptionPane.showMessageDialog(this,&quot;Record Entered&quot;,&quot;FriendsDatabase&quot;,JOptionPane.ERROR_MESSAGE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;textno.setText(&quot;&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;textbal.setText(&quot;&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;texttpe.setText(&quot;&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else if(ae.getSource()==search)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String ser=JOptionPane.showInputDialog(this,&quot;Enter search account&quot;,&quot;Search&quot;,JOptionPane.INFORMATION_MESSAGE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;sql=&quot;SELECT * from account where accno=&quot;+ser;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st = cn.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs = st.executeQuery(sql);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;if(rs.next())&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JOptionPane.showMessageDialog(this,&quot;Found&quot;,&quot;FriendsDatabase&quot;,JOptionPane.ERROR_MESSAGE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;prints(rs);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JOptionPane.showMessageDialog(this,&quot;not Found&quot;,&quot;FriendsDatabase&quot;,JOptionPane.ERROR_MESSAGE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else if(ae.getSource()==exit)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.exit(0);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else if(ae.getSource()==first)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.first();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;prints(rs);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else if(ae.getSource()==next)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.next();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else if(ae.getSource()==last)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.last();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;prints(rs);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else if(ae.getSource()==prev)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.previous();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;prints(rs);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; }catch(Exception ex){System.out.println(ex);}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; }&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void prints(ResultSet rs)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;textno.setText(rs.getString(&quot;accno&quot;));&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;textbal.setText(rs.getString(&quot;balance&quot;));&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;texttpe.setText(rs.getString(&quot;acctype&quot;));&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Viewing a Result Set:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 14pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The ResultSet interface contains dozens of methods for getting the data of the current row.&amp;nbsp; There is a get method for each of the possible data types, and each get method has two versions:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;One that takes in a column name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;One that takes in a column index.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;For example, if the column you are interested in viewing contains an int, you need to use one of the getInt() methods of ResultSet:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;center&quot; dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;43&quot;&gt;&lt;/col&gt;&lt;col width=&quot;724&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 13.2pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;S.N.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods &amp;amp; Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 25.55pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public int getInt(String columnName) throws SQLException&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the int in the current row in the column named columnName&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 38.7pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public int getInt(int columnIndex) throws SQLException&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the int in the current row in the specified column index. The column index starts at 1, meaning the first column of a row is 1, the second column of a row is 2, and so on.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Similarly there are get methods in the ResultSet interface for each of the eight Java primitive types, as well as common types such as java.lang.String, java.lang.Object, and java.net.URL.&amp;nbsp; There are also methods for getting SQL data types java.sql.Date, java.sql.Time, java.sql.TimeStamp, java.sql.Clob, and java.sql.Blob. Check the documentation for more information about using these SQL data types.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class NavigateExample&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection conn;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement stmt ;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;conn = DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String sql=&quot;SELECT * from account&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet rs = stmt.executeQuery(sql);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&quot;\nMoving cursor to the last...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.last();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int no&amp;nbsp; = rs.getInt(&quot;accno&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int bal = rs.getInt(&quot;balance&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String type = rs.getString(&quot;acctype&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;No: &quot; + no);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Bal: &quot; + bal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Type: &quot; + type);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;\nMoving cursor to the first row...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.first();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;no&amp;nbsp; = rs.getInt(&quot;accno&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;bal = rs.getInt(&quot;balance&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;type = rs.getString(&quot;acctype&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;No: &quot; + no);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Bal: &quot; + bal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Type: &quot; + type);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;\nMoving cursor to the next row...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.next();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;no&amp;nbsp; = rs.getInt(&quot;accno&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;bal = rs.getInt(&quot;balance&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;type = rs.getString(&quot;acctype&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;No: &quot; + no);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Bal: &quot; + bal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Type: &quot; + type);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;stmt.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;conn.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(SQLException se)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp; se.printStackTrace();}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp; e.printStackTrace();}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Updating a Result Set:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; padding: 14pt 0pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The ResultSet interface contains a collection of update methods for updating the data of a result set.&amp;nbsp; As with the get methods, there are two update methods for each data type:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;One that takes in a column name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;One that takes in a column index.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;For example, to update a String column of the current row of a result set, you would use one of the following updateString() methods:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;47&quot;&gt;&lt;/col&gt;&lt;col width=&quot;696&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;S.N.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods &amp;amp; Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void updateString(int columnIndex, String s) throws SQLException&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Changes the String in the specified column to the value of s.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void updateString(String columnName, String s) throws SQLException&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Similar to the previous method, except that the column is specified by its name instead of its index.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are update methods for the eight primitive data types, as well as String, Object, URL, and the SQL data types in the java.sql package.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Updating a row in the result set changes the columns of the current row in the ResultSet object, but not in the underlying database. To update your changes to the row in the database, you need to invoke one of the following methods.&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;47&quot;&gt;&lt;/col&gt;&lt;col width=&quot;683&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;S.N.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods &amp;amp; Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void updateRow()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Updates the current row by updating the corresponding row in the database.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void deleteRow()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Deletes the current row from the database&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void refreshRow()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Refreshes the data in the result set to reflect any recent changes in the database.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void cancelRowUpdates()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Cancels any updates made on the current row.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;5&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void insertRow()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Inserts a row into the database. This method can only be invoked when the cursor is pointing to the insert row.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class InsertExample&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection conn;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement stmt ;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;conn = DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String sql=&quot;SELECT * from account&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet rs = stmt.executeQuery(sql);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;printRs(rs);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int newBal;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.beforeFirst();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;while(rs.next())&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;newBal = rs.getInt(&quot;balance&quot;) + 50;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.updateInt( &quot;balance&quot;, newBal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.updateRow();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;List result set showing new ages...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;printRs(rs);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Inserting a new record...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.moveToInsertRow();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.updateInt(&quot;accno&quot;,104);&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.updateInt(&quot;balance&quot;,4000);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.updateString(&quot;acctype&quot;,&quot;saving&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; //Commit row&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.insertRow();&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;List result set showing new set...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;printRs(rs);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;// Set position to second record first&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.absolute( 2 );&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.deleteRow();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;List result set after deleting one records...&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;printRs(rs);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;stmt.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;conn.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(SQLException se)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp; se.printStackTrace();}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp; e.printStackTrace();}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void printRs(ResultSet rs) throws SQLException&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rs.beforeFirst();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;while(rs.next())&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int no&amp;nbsp; = rs.getInt(&quot;accno&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int bal = rs.getInt(&quot;balance&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String type = rs.getString(&quot;acctype&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;No: &quot; + no);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Bal: &quot; + bal);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.print(&quot;, Type: &quot; + type);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC - Data Types&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC driver converts the Java data type to the appropriate JDBC type before sending it to the database. It uses a default mapping for most data types. For example, a Java int is converted to an SQL INTEGER. Default mappings were created to provide consistency between drivers.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 14pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The following table summarizes the default JDBC data type that the Java data type is converted to when you call the setXXX() method of the PreparedStatement or CallableStatement object or the ResultSet.updateXXX() method.&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -3.65pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;182&quot;&gt;&lt;/col&gt;&lt;col width=&quot;182&quot;&gt;&lt;/col&gt;&lt;col width=&quot;182&quot;&gt;&lt;/col&gt;&lt;col width=&quot;182&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SQL&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;JDBC/Java&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setXXX&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #cdcdcd; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateXXX&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;VARCHAR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.lang.String&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setString&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateString&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CHAR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.lang.String&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setString&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateString&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;LONGVARCHAR&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.lang.String&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setString&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateString&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;BIT&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;boolean&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBoolean&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateBoolean&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;NUMERIC&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.math.BigDecimal&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBigDecimal&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateBigDecimal&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;TINYINT&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;byte&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setByte&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateByte&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SMALLINT&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;short&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setShort&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateShort&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;INTEGER&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setInt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateInt&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;BIGINT&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;long&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setLong&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateLong&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;REAL&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;float&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setFloat&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateFloat&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FLOAT&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;float&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setFloat&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateFloat&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DOUBLE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;double&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setDouble&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateDouble&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;VARBINARY&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;byte[ ]&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBytes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateBytes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;BINARY&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;byte[ ]&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBytes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateBytes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DATE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.Date&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setDate&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateDate&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;TIME&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.Time&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setTime&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateTime&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;TIMESTAMP&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.Timestamp&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setTimestamp&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateTimestamp&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CLOB&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.Clob&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setClob&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateClob&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;BLOB&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.sql.Blob&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBlob&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f1f1f1; border-bottom: solid #aaaaaa 0.75pt; border-color: rgb(170, 170, 170); border-left: solid #aaaaaa 0.75pt; border-right: solid #aaaaaa 0.75pt; border-style: solid; border-top: solid #aaaaaa 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 3.75pt 3.75pt 3.75pt 3.65pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateBlob&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;TRANSACTIONS:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are times when you do not want one statement to take effect unless another one completes. For example, when the proprietor of The Coffee Break updates the amount of coffee sold each week, he will also want to update the total amount sold to date. However, he will not want to update one without updating the other; otherwise, the data will be inconsistent. The way to be sure that either both actions occur or neither action occurs is to use a transaction. A transaction is a set of one or more statements that are executed together as a unit, so either all of the statements are executed, or none of the statements is executed.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disabling Auto-commit Mode:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;When a connection is created, it is in auto-commit mode. This means that each individual SQL statement is treated as a transaction and is automatically committed right after it is executed.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The way to allow two or more statements to be grouped into a transaction is to disable auto-commit mode. This is demonstrated in the following line of code, where con is an active connection:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.setAutoCommit(false);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Committing a Transaction:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Once auto-commit mode is disabled, no SQL statements are committed until you call the method commit explicitly. All statements executed after the previous call to the method commit are included in the current transaction and committed together as a unit.&amp;nbsp; The following code, in which con is an active connection, illustrates a transaction:&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.setAutoCommit(false);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement updateSales = con.prepareStatement(&quot;UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateSales.setInt(1, 50);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateSales.setString(2, &quot;Colombian&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateSales.executeUpdate();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement updateTotal = con.prepareStatement(&quot;UPDATE COFFEES SET TOTAL = TOTAL + ? WHERE COF_NAME LIKE ?&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateTotal.setInt(1, 50);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateTotal.setString(2, &quot;Colombian&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;updateTotal.executeUpdate();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.commit();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.setAutoCommit(true);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, auto-commit mode is disabled for the connection con, which means that the two prepared statements updateSales and updateTotal are committed together when the method commit is called. The final line of the previous example enables auto-commit mode, which means that each statement is once again committed automatically when it is completed. Then, you are back to the default state where you do not have to call the method commit yourself. It is advisable to disable auto-commit mode only while you want to be in transaction mode. This way, you avoid holding database locks for multiple statements, which increases the likelihood of conflicts with other users.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Using Transactions to Preserve Data Integrity:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In addition to grouping statements together for execution as a unit, transactions can help to preserve the integrity of the data in a table. For instance, suppose that an employee was supposed to enter new coffee prices in the table COFFEES but delayed doing it for a few days. In the meantime, prices rose, and today the owner is in the process of entering the higher prices. The employee finally gets around to entering the now outdated prices at the same time that the owner is trying to update the table. After inserting the outdated prices, the employee realizes that they are no longer valid and calls the Connection method rollback to undo their effects. (The method rollback aborts a transaction and restores values to what they were before the attempted update.) At the same time, the owner is executing a SELECT statement and printing out the new prices. In this situation, it is possible that the owner will print a price that was later rolled back to its previous value, making the printed&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;price incorrect.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;This kind of situation can be avoided by using transactions, providing some level of protection against conflicts that arise when two users access data at the same time. To avoid conflicts during a transaction, a DBMS uses locks, mechanisms for blocking access&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;by others to the data that is being accessed by the transaction. Once a lock is set, it remains in force until the transaction is committed or rolled back. For example, a DBMS could lock a row of a table until updates to it have been committed. The effect of this&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;lock would be to prevent a user from getting a dirty read, that is reading a value before it is made permanent. (Accessing an updated value that has not been committed is considered a dirty read because it is possible for that value to be rolled back to its previous value. If you read a value that is later rolled back, you will have read an invalid value.)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;How locks are set is determined by what is called a transaction isolation level, which can range from not supporting transactions at all to supporting transactions that enforce very strict access rules. One example of a transaction isolation level is TRANSACTION_READ_COMMITTED, which will not allow a value to be accessed until after it has been committed. In other words, if the transaction isolation level is set to TRANSACTION_READ_COMMITTED, the DBMS does not allow dirty reads to occur. The interface Connection includes five values which represent the transaction isolation levels you can use in JDBC.&amp;nbsp; Normally, you do not need to do anything about the transaction isolation level; you can just use the default one for your DBMS. JDBC allows you to find out what transaction isolation level your DBMS is set to (using the Connection method&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getTransactionIsolation) and also allows you to set it to another level (using the Connection method setTransactionIsolation). Keep in mind, however, that even though JDBC allows you to set a transaction isolation level, doing so has no effect unless the driver and DBMS you are using support it.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 199px; overflow: hidden; width: 617px;&quot;&gt;&lt;img height=&quot;199&quot; src=&quot;https://lh4.googleusercontent.com/HyhHwgvAlK0JmEuCNs3Mmxc_CBASevWfOOU53FsMBz96O4ImcGMfLoa9pEIqT5LpsOVaMsbq4ElzbVW6E0Wy4sI477x7tSQ2N-8fW8jjm1XgUYY6-w4IdV87_oXAoy31oUn0SUYr&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;617&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class TransactionDemo&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con = DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;,&quot;sa&quot;,&quot;&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Connection Created&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;con.setAutoCommit(false);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement st = con.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Statement Created&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String query;int no;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;query=&quot;insert into account values(108,10000,&#39;saving&#39;)&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;no=st.executeUpdate(query);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(no+&quot;record inserted&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;query=&quot;insert into account values(109,12000,&#39;saving&#39;)&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;no=st.executeUpdate(query);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(no+&quot;record inserted&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 72pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.commit();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception ex)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(ex);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Setting and Rolling Back to a Savepoint:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The JDBC 3.0 API adds the method Connection. Set Save point, which sets a savepoint within the current transaction.&amp;nbsp; The Connection.rollback method has been overloaded to take a savepoint argument.&amp;nbsp; The example below inserts a row into a table, sets the&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;savepoint svpt1, and then inserts a second row. When the transaction is later rolled back tosvpt1, the second insertion is undone, but the first insertion remains intact. In other words, when the transaction is committed, only the row containing ?FIRST? will be added to TAB1:&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement stmt = conn.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int rows = stmt.executeUpdate(&quot;INSERT INTO TAB1 (COL1) VALUES (‘FIRST’)&quot;);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;// set savepoint&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Savepoint svpt1 = conn.setSavepoint(&quot;SAVEPOINT_1&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rows = stmt.executeUpdate(&quot;INSERT INTO TAB1 (COL1) VALUES (‘SECOND’)&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;...&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;conn.rollback(svpt1);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;...&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;conn.commit();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Releasing a Savepoint:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The method Connection.rollback() release Savepoint takes a Savepoint object as a parameter and removes it from the current transaction. Once a savepoint has been released, attempting to reference it in a rollback operation causes an SQLException to be&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;thrown. Any savepoints that have been created in a transaction are automatically released and become invalid when the transaction is committed, or when the entire transaction is rolled back. Rolling a transaction back to a savepoint automatically releases and makes&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;invalid any other savepoints that were created after the savepoint in question.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;When to Call the Method rollback:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;As mentioned earlier, calling the method rollback aborts a transaction and returns any values that were modified to their previous values. If you are trying to execute one or more&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;statements in a transaction and get an SQLException, you should call the method rollback to abort the transaction and start the transaction all over again. That is the only way to be sure of what has been committed and what has not been committed. Catching an SQLException tells you that something is wrong, but it does not tell you what was or was not committed. Since you cannot count on the fact that nothing was committed, calling the method rollback is the only way to be sure.&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Batch Updation:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0pt; margin: 0pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Batch Processing allows you to group related SQL statements into a batch and submit them with one call to the database.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0pt; margin: 0pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;When you send several SQL statements to the database at once, you reduce the amount of communication overhead, thereby improving performance.&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;JDBC drivers are not required to support this feature. You should use the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;DatabaseMetaData.supportsBatchUpdates()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method to determine if the target database supports batch update processing. The method returns true if your JDBC driver supports this feature.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;addBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Statement, PreparedStatement,&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;and &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;CallableStatement&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;is used to add individual statements to the batch. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;executeBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;is used to start the execution of all the statements grouped together.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;executeBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns an array of integers, and each element of the array represents the update count for the respective update statement.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Just as you can add statements to a batch for processing, you can remove them with the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;clearBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method. This method removes all the statements you added with the addBatch() method. However, you cannot selectively choose which statement to remove.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0pt; margin: 0pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Batch Processing with Statement Object:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0pt; margin: 0pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Here is a typical sequence of steps to use Batch Processing with Statement Object −&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Create a Statement object using either&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;createStatement()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;methods.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Set auto-commit to false using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;setAutoCommit()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Add as many as SQL statements you like into batch using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;addBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;method on created statement object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Execute all the SQL statements using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;executeBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method on created statement object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Finally, commit all the changes using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;commit()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class BatchUpdate&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con = DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement st = con.createStatement();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; con.setAutoCommit(false);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String query=&quot;insert into account values(111,&#39;King Khan&#39;,25500,&#39;Saving&#39;)&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.addBatch(query);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;query = &quot;insert into account values(112,&#39;Hrithik&#39;,55500,&#39;Saving&#39;)&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.addBatch(query);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;query =&quot;update account set accname=&#39;Queen Khan&#39;,balance=60000 where accno=112&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.addBatch(query);;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int[] count = st.executeBatch();&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.commit();&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;st.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Goodbye!&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 14pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Batch Processing with PrepareStatement&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0pt; margin: 0pt 2.4pt 7.2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Here is a typical sequence of steps to use Batch Processing with PrepareStatement Object −&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Create SQL statements with placeholders.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Create PrepareStatement object using either&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;prepareStatement()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;methods.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Set auto-commit to false using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;setAutoCommit()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Add as many as SQL statements you like into batch using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;addBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;method on created statement object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Execute all the SQL statements using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;executeBatch()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method on created statement object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 2.4pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 7.2pt; margin-left: 2.4pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Finally, commit all the changes using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;commit()&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;method.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt; padding: 0pt 0pt 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.util.*;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class PreparedStBatchUpdate&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String[] args)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con=DriverManager.getConnection(&quot;jdbc:odbc:sydsn&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String query=&quot;insert into account Values(?,?,?,?)&quot;;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement ps=con.prepareStatement(query);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.setAutoCommit(false);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setInt(1,198);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(2,&quot;John&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setDouble (3,67890);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(4,&quot;saving&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.addBatch();&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setInt(1,199);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(2,&quot;Joyce&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setDouble (3,56789);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(4,&quot;saving&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.addBatch();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int[] count = ps.executeBatch();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.commit();&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.close();&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;Done!&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception ex)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(ex);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;} &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;interface Blob:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;An SQL&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;BLOB&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is a built-in type that stores a Binary Large Object as a column value in a row of a database table. By default drivers implement&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;Blob&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;using an SQL&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;locator(BLOB)&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;, which means that a&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;Blob&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;object contains a logical pointer to the SQL&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;BLOB&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;data rather than the data itself. A&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;Blob&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;object is valid for the duration of the transaction in which is was created.&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 9.75pt; margin-top: 9.75pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method Summary&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -4.55pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;183&quot;&gt;&lt;/col&gt;&lt;col width=&quot;571&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 7.1pt;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;background-color: #dee3e9; border-bottom: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 12.95pt 1.95pt 4.55pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 7.1pt;&quot;&gt;&lt;td style=&quot;background-color: #dee3e9; border-bottom: 0.5pt solid rgb(158, 173, 192); border-left: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 12.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Modifier and Type&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #dee3e9; border-bottom: 0.5pt solid rgb(158, 173, 192); border-right: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method and Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 7.1pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;InputStream&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#getBinaryStream()&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getBinaryStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves the&amp;nbsp;BLOB&amp;nbsp;value designated by this&amp;nbsp;Blob&amp;nbsp;instance as a stream.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 7.1pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;InputStream&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#getBinaryStream(long,%20long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getBinaryStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos, long&amp;nbsp;length)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns an&amp;nbsp;InputStream&amp;nbsp;object that contains a partial&amp;nbsp;Blob&amp;nbsp;value, starting with the byte specified by pos, which is length bytes in length.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 7.1pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;byte[]&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#getBytes(long,%20int)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getBytes&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos, int&amp;nbsp;length)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves all or part of the&amp;nbsp;BLOB&amp;nbsp;value that this&amp;nbsp;Blob&amp;nbsp;object represents, as an array of bytes.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 44.2pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;long&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#length()&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;length&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the number of bytes in the&amp;nbsp;BLOB&amp;nbsp;value designated by this&amp;nbsp;Blob&amp;nbsp;object.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 44.2pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;OutputStream&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#setBinaryStream(long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBinaryStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves a stream that can be used to write to the&amp;nbsp;BLOB&amp;nbsp;value that this&amp;nbsp;Blob&amp;nbsp;object represents.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 54.5pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#setBytes(long,%20byte[])&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBytes&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos, byte[]&amp;nbsp;bytes)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Writes the given array of bytes to the&amp;nbsp;BLOB&amp;nbsp;value that this&amp;nbsp;Blob&amp;nbsp;object represents, starting at position&amp;nbsp;pos, and returns the number of bytes written.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 55.15pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: 0.5pt solid rgb(158, 173, 192); border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: 0.5pt solid rgb(158, 173, 192); border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Blob.html#setBytes(long,%20byte[],%20int,%20int)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setBytes&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos, byte[]&amp;nbsp;bytes, int&amp;nbsp;offset, int&amp;nbsp;len)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Writes all or part of the given&amp;nbsp;byte&amp;nbsp;array to the&amp;nbsp;BLOB&amp;nbsp;value that this&amp;nbsp;Blob&amp;nbsp;object represents and returns the number of bytes written.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Program to insert image to table:&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class InsertImg&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Class.forName(&quot;com.mysql.jdbc.Driver&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con=DriverManager.getConnection(&quot;jdbc:mysql://localhost:3306/sydb&quot;,&quot;root&quot;,&quot;msc2&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;File f= new File(&quot;kisi.jpg&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FileInputStream fis = new FileInputStream(f);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PreparedStatement ps=con.prepareStatement(&quot;insert into studinfo values(?,?,?)&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setInt(1,201);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setString(2,&quot;trishna&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.setBinaryStream(3, fis, (int) f.length());&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.executeUpdate();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;fis.close();&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ps.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;con.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(e);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Program to read Images from table:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.sql.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.util.Scanner;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;class ReadImgage&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public static void main(String args[])&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;try&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Class.forName(&quot;com.mysql.jdbc.Driver&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Connection con=DriverManager.getConnection(&quot;jdbc:mysql://localhost:3306/sydb&quot;,&quot;root&quot;,&quot;msc2&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Statement st=con.createStatement();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(&quot;Enter rollno:&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Scanner sc=new Scanner(System.in);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int roll=sc.nextInt();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ResultSet rs=st.executeQuery(&quot;select photo from studinfo where rollno=&quot;+roll);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;byte img[]=new byte[6500];&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;while(rs.next() )&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;img=rs.getBytes(&quot;photo&quot;);&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FileOutputStream fos = new FileOutputStream(&quot;e://&quot;+roll+&quot;.jpg&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fos.write(img);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;catch(Exception e)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(e);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp; }&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Interface CLOB:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;An SQL&amp;nbsp;CLOB&amp;nbsp;is a built-in type that stores a Character Large Object as a column value in a row of a database table. By default drivers implement a&amp;nbsp;Clob&amp;nbsp;object using an SQL&amp;nbsp;locator(CLOB), which means that a&amp;nbsp;Clob&amp;nbsp;object contains a logical pointer to the SQL&amp;nbsp;CLOB&amp;nbsp;data rather than the data itself. A&amp;nbsp;Clob&amp;nbsp;object is valid for the duration of the transaction in which it was created.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 9.75pt; margin-top: 9.75pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method Summary&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -4.55pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;180&quot;&gt;&lt;/col&gt;&lt;col width=&quot;564&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 7.2pt;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;background-color: #dee3e9; border-bottom: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 12.95pt 1.95pt 4.55pt; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 25.9pt;&quot;&gt;&lt;td style=&quot;background-color: #dee3e9; border-bottom: 0.5pt solid rgb(158, 173, 192); border-left: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 12.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Modifier and Type&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #dee3e9; border-bottom: 0.5pt solid rgb(158, 173, 192); border-right: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method and Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 50.45pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;InputStream&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); border-top: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#getAsciiStream()&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getAsciiStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves the&amp;nbsp;CLOB&amp;nbsp;value designated by this&amp;nbsp;Clob&amp;nbsp;object as an ascii stream.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.95pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/Reader.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Reader&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#getCharacterStream()&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getCharacterStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves the&amp;nbsp;CLOB&amp;nbsp;value designated by this&amp;nbsp;Clob&amp;nbsp;object as a&amp;nbsp;java.io.Reader&amp;nbsp;object (or as a stream of characters).&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.95pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/Reader.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Reader&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#getCharacterStream(long,%20long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getCharacterStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos, long&amp;nbsp;length)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns a&amp;nbsp;Reader&amp;nbsp;object that contains a partial&amp;nbsp;Clob&amp;nbsp;value, starting with the character specified by pos, which is length characters in length.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.95pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#getSubString(long,%20int)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;getSubString&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos, int&amp;nbsp;length)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves a copy of the specified substring in the&amp;nbsp;CLOB&amp;nbsp;value designated by this&amp;nbsp;Clob&amp;nbsp;object.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.3pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;long&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#length()&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;length&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves the number of characters in the&amp;nbsp;CLOB&amp;nbsp;value designated by this&amp;nbsp;Clob&amp;nbsp;object.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.95pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;long&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#position(java.sql.Clob,%20long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;position&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Clob&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;searchstr, long&amp;nbsp;start)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves the character position at which the specified&amp;nbsp;Clob&amp;nbsp;object&amp;nbsp;searchstr&amp;nbsp;appears in this&amp;nbsp;Clob&amp;nbsp;object.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 81.5pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;long&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#position(java.lang.String,%20long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;position&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;searchstr, long&amp;nbsp;start)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves the character position at which the specified substring&amp;nbsp;searchstr&amp;nbsp;appears in the SQL&amp;nbsp;CLOB&amp;nbsp;value represented by thisClob&amp;nbsp;object.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.95pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/OutputStream.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;OutputStream&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#setAsciiStream(long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setAsciiStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves a stream to be used to write Ascii characters to the&amp;nbsp;CLOB&amp;nbsp;value that this&amp;nbsp;Clob&amp;nbsp;object represents, starting at position&amp;nbsp;pos.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 41.4pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/io/Writer.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Writer&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#setCharacterStream(long)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setCharacterStream&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Retrieves a stream to be used to write a stream of Unicode characters to the&amp;nbsp;CLOB&amp;nbsp;value that this&amp;nbsp;Clob&amp;nbsp;object represents, at positionpos.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 65.95pt;&quot;&gt;&lt;td style=&quot;background-color: #eeeeef; border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #eeeeef; border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#setString(long,%20java.lang.String)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setString&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;str)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Writes the given Java&amp;nbsp;String&amp;nbsp;to the&amp;nbsp;CLOB&amp;nbsp;value that this&amp;nbsp;Clob&amp;nbsp;object designates at the position&amp;nbsp;pos.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 66.6pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: 0.5pt solid rgb(158, 173, 192); border-left: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;int&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: 0.5pt solid rgb(158, 173, 192); border-right: 0.5pt solid rgb(158, 173, 192); overflow-wrap: break-word; overflow: hidden; padding: 1.95pt 1.95pt 1.95pt 4.55pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/sql/Clob.html#setString(long,%20java.lang.String,%20int,%20int)&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;setString&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;(long&amp;nbsp;pos,&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/lang/String.html&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;str, int&amp;nbsp;offset, int&amp;nbsp;len)&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 10pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Writes&amp;nbsp;len&amp;nbsp;characters of&amp;nbsp;str, starting at character&amp;nbsp;offset, to the&amp;nbsp;CLOB&amp;nbsp;value that this&amp;nbsp;Clob&amp;nbsp;represents.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span id=&quot;docs-internal-guid-54307bab-7fff-7ac1-71ed-27cdd270b8a0&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/3195678564307597461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2024/01/jdbc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/3195678564307597461'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/3195678564307597461'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2024/01/jdbc.html' title='JDBC'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh4.googleusercontent.com/RsK0IeW-wZKRuH8eo0k0ckDTkoQFd4d7Xw0RQ83BLND0h4h_Kkr6pJTHxfDt5CE9MOWH1knJzFUaHdKoEu17mbUhvxFw9ajxjAS39G0A0kaDOx2wZ0RqCSj-tQXpGqoMWEBnMfLx=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-2665297236016915291</id><published>2024-01-28T14:46:00.001+05:30</published><updated>2024-01-28T14:46:16.172+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="advanced java"/><title type='text'>Java Servlet</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;span style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: x-large; font-weight: 700; text-align: center; white-space-collapse: preserve;&quot;&gt;Java Servlets&lt;/span&gt;&lt;/p&gt;&lt;span id=&quot;docs-internal-guid-1d55ace7-7fff-eb30-f664-2fefa81420b6&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Why server-side programming?&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Though it is technically feasible to implement almost any business logic using client-side programs, logically or functionally it carries no ground when it comes to enterprise applications (e.g. banking, air ticketing, e-shopping, etc.). To further explain, going by the client-side programming logic; a bank having 10,000 customers would mean that each customer should have a copy of the program(s) in his or her PC which translates to 10,000 programs! In addition, there are issues like security, resource pooling, concurrent access, and manipulations to the database which simply cannot be handled by client-side programs. The answer to most of the issues cited above is – “Server Side Programming”. Figure 1 illustrates Server-side architecture in the simplest terms.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 102px; overflow: hidden; width: 433px;&quot;&gt;&lt;img alt=&quot;serversideprogramming&quot; height=&quot;102&quot; src=&quot;https://lh5.googleusercontent.com/DWii1MY2mp4Q7dWilFHQMIx91OLsaJ3xXpmMcohZvqtFavmj167gSXv2jbwyu7QWnEJP8VWHR7ztuceZ-lRadNAb1PWEJ323sbKKEuadahKzCgnS2ECp1urAWAdLlYTw4yFSjokl&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;433&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantages of Server Side Programs&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The list below highlights some of the important advantages of Server Side programs.&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;All programs reside in one machine called the Server. Any number of remote machines (called clients) can access the server program.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;New functionalities to existing programs can be added at the server side which the clients’ can advantage without having to change anything from their side.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Migrating to newer versions, architectures, design patterns, adding patches, switching to new databases can be done at the server side without having to bother about clients’ hardware or software capabilities.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Issues relating to enterprise applications like resource management, concurrency, session management, security and performance are managed by service side applications.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;They are portable and possess the capability to generate dynamic and user-based content (e.g. displaying transaction information of credit card or debit card depending on user’s choice).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Types of Server Side Programs&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-roman; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Active Server Pages (ASP)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-roman; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java Servlets&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-roman; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java Server Pages (JSPs)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-roman; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Enterprise &lt;/span&gt;&lt;a href=&quot;http://www.roseindia.net/servlets/introductiontoserverside.shtml&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Java Beans&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt; (EJBs)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-roman; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;PHP&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;To summarize, the objective of server side programs is to centrally manage all programs relating to a particular application (e.g. Banking, Insurance, e-shopping, etc). Clients with bare minimum requirement (e.g. Pentium II, Windows XP Professional, MS Internet Explorer and an internet connection) can experience the power and performance of a Server (e.g. IBM Mainframe, Unix Server, etc) from a remote location without having to compromise on security or speed. More importantly, server programs are not only portable but also possess the capability to generate dynamic responses based on user’s request.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;technology is used to create web application (resides at server side and generates dynamic web page).&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servet&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;technology is robust and scalable as it uses the java language. Before Servlet, CGI (Common Gateway Interface) scripting language was used as a server-side programming language. But there were many disadvantages of this technology. We have discussed these disadvantages below.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many interfaces and classes in the servlet API such as Servlet, GenericServlet, HttpServlet, ServletRequest, ServletResponse etc.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;What is a Servlet?&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;720&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet can be described in many ways, depending on the context.&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet is a technology i.e. used to create web application.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet is an API that provides many interfaces and classes including documentations.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet is an interface that must be implemented for creating any servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet is a class that extend the capabilities of the servers and respond to the incoming request. It can respond to any type of requests.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet is a web component that is deployed on the server to create dynamic web page.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 123px; overflow: hidden; width: 573px;&quot;&gt;&lt;img alt=&quot;servlet&quot; height=&quot;133.6346526145935&quot; src=&quot;https://lh5.googleusercontent.com/7mIWaeC1KWgmwM8JtJCkADa9CIp9pHhJ1-qJa2jxckhe2Vh1zYtHauwMEnvt2rCWDTr94U9AMbEU0Vn8zvP2aOyDTx7zGa82eP4Jz3hrCGufOeA99twRWSlridgjgxzxQObojssP&quot; style=&quot;margin-left: -16.9978px; margin-top: 0px;&quot; width=&quot;589.9978362321854&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;What is web application?&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;720&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A web application is an application accessible from the web. A web application is composed of web components like Servlet, JSP, Filter etc. and other components such as HTML. The web components typically execute in Web Server and respond to HTTP request.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CGI(Commmon Gateway Interface)&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;CGI technology enables the web server to call an external program and pass HTTP request information to the external program to process the request. For each request, it starts a new process.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 112px; overflow: hidden; width: 617px;&quot;&gt;&lt;img alt=&quot;problem in cgi and how servlet is better&quot; height=&quot;112&quot; src=&quot;https://lh5.googleusercontent.com/FFNIXX054Rm4Ml3vQ7o5XvD_EtynyjKFkuWPk-kuQ7QJSItvm3EqHE2DV5YCbCB9He6q9Z4Iira-F7C0nzCpokR-wRI0R8GrjA6LUoDZ4rw1tyt3DRmOcVGZP8DEd3H5M8hknNE2&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;617&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantages of CGI&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many problems in CGI technology:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;If number of clients increases, it takes more time for sending response.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; text-wrap: wrap; vertical-align: baseline;&quot;&gt;For each request, it starts a process and Web server is limited to start processes.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It uses platform dependent language e.g. C, C++, perl.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage of Servlet&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 108px; overflow: hidden; width: 549px;&quot;&gt;&lt;img alt=&quot;advantage of servlet&quot; height=&quot;108&quot; src=&quot;https://lh4.googleusercontent.com/_jUjICKR0qgdr8Qmb2tUZTDVsPyAtJ59jQpOje-2UpjTQZvHhOv_BdZLBN_nNsXX0myogZMRtw-8_JrLopzpbhX3k3fFRwRsUyRoCvqtL1ZVkLj32uKDMuk0rhGxtHystYFhTxn6&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;549&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many advantages of Servlet over CGI. The web container creates threads for handling the multiple requests to the servlet. Threads have a lot of benefits over the Processes such as they share a common memory area, lighweight, cost of communication between the threads are low. The basic benefits of servlet are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;better performance:&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;because it creates a thread for each request not process.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Portability:&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;because it uses java language.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Robust:&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Servlets are managed by JVM so no need to worry about momory leak, garbage collection etc.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Secure:&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;because it uses java language.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The basic&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;terminology used in servlet&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;are given below:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HTTP&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HTTP Request Types&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Difference between Get and Post method&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Container&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Server and Difference between web server and application server&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Content Type&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Introduction of XML&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Deployment&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;HTTP (Hyper Text Transfer Protocol)&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Http is the protocol that allows web servers and browsers to exchange data over the web.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It is a request response protocol.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Http uses reliable TCP connections bydefault on TCP port 80.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It is stateless means each request is considered as the new request. In other words, server doesn&#39;t recognize the user bydefault.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 94px; overflow: hidden; width: 443px;&quot;&gt;&lt;img alt=&quot;http protocol used in servlet&quot; height=&quot;94&quot; src=&quot;https://lh3.googleusercontent.com/npdF-kmM-v_YEHTF3ZaOGEV5Y-DEes_td0-EFnnJr8J5Mo8CQDQw6fUtXntOUex9MlWN81FP4pK67ZO5JHGCgUS1ZvsRWagValM7QrzhB_0XfsmXMq4OK12WOh96K45Uv1kk6DIy&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;443&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Http Request Methods&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Every request has a header that tells the status of the client. There are many request methods. Get and Post requests are mostly used. The http request methods are:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;GET&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;POST&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HEAD&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;PUT&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;DELETE&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;OPTIONS&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;TRACE&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -6.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;111&quot;&gt;&lt;/col&gt;&lt;col width=&quot;645&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;HTTP Request&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 1pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;GET&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Asks to get the resource at the requested URL.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;POST&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Asks the server to accept the body info attached. It is like GET request with extra info sent with the request.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;HEAD&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Asks for only the header part of whatever a GET would return. Just like GET but with no body.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;TRACE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Asks for the loopback of the request message, for testing or troubleshooting.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PUT&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Says to put the enclosed info (the body) at the requested URL.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DELETE&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Says to delete the resource at the requested URL.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;OPTIONS&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-left: 15.1pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Asks for a list of the HTTP methods to which the thing at the request URL can respond&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;What is the difference between Get and Post?&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many differences between the Get and Post request. Let&#39;s see these differences:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -11.25pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;426&quot;&gt;&lt;/col&gt;&lt;col width=&quot;342&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 14.3pt;&quot;&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;GET&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;POST&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 25.65pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1) In case of Get request, only&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;limited amount of data&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;can be sent because data is sent in header.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In case of post request,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;large amount of data&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;can be sent because data is sent in body.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 22.5pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2) Get request is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;not secured&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;because data is exposed in URL bar.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Post request is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;secured&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;because data is not exposed in URL bar.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 15.75pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3) Get request&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;can be bookmarked&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Post request&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;cannot be&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;bookmarked&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 36.1pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4) Get request is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;idempotent&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;. It means second request will be ignored until response of first request is delivered.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Post request is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;non-idempotent&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 24.85pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;5) Get request is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;more efficient&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;and used more than Post&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Post request is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;less efficient&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;and used less than get.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Anatomy of Get Request&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;As we know that data is sent in request header in case of get request. It is the default request type. Let&#39;s see what informations are sent to the server.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 151px; overflow: hidden; width: 715px;&quot;&gt;&lt;img alt=&quot;anatomy of Get Request&quot; height=&quot;151&quot; src=&quot;https://lh5.googleusercontent.com/u0xvzXJoUNEwRrnPpc7sdLXPNmDOucMlNrDNaarmFg52M6sOwwwgsyycQBXCrNM17y0ob_55RKH5JFqQqauovcwo8iQkron78gE6kSbrAfrq_TrVsYnnbVpB0a0i4J7pwZzKKGo5&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;715&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Anatomy of Post Request&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;As we know, in case of post request original data is sent in message body. Let&#39;s see how informations are passed to the server in case of post request.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 113px; overflow: hidden; width: 706px;&quot;&gt;&lt;img alt=&quot;anatomy of Post Request&quot; height=&quot;113&quot; src=&quot;https://lh4.googleusercontent.com/hFemzUr2we5bOUPjT9fyR6VBpRe1ILd1kAXB5DqkeIAggbrfZ5DXSzHntzcg0nt_yOtir65N6EQJ3puazpByVNtZHuYvULDzwfP6v2LzTZ3SkLwWl2IfLkCbg6bGEOfuDpE9eGEs&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;706&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Container&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It provides runtime environment for JavaEE (j2ee) applications.It performs many operations that are given below:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Life Cycle Management&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Multithreaded support&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Object Pooling&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Security etc.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Server&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It is a running program or software that provides services.There are two types of servers:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Web Server&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Application Server&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Web Server&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Web server contains only web or servlet container. It can be used for servlet, jsp, struts, jsf etc. It can&#39;t be used for EJB.&amp;nbsp; Example of Web Servers are:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Apache Tomcat&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Resin&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Application Server&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Application server contains Web and EJB containers. It can be used for servlet, jsp, struts, jsf, ejb etc.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of Application Servers are:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;JBoss&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;Open-source server from JBoss community.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Glassfish&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;provided by Sun Microsystem. Now acquired by Oracle.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Weblogic&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;provided by Oracle. It more secured.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Websphere&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;provided by IBM.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Content Type&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 2pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Content Type is also known as MIME (Multipurpose internet Mail Extension) Type. It is a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;HTTP header&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;that provides the description about what are you sending to the browser.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many content types:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;text/html&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;text/plain&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application/msword&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application/vnd.ms-excel&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application/jar&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application/pdf&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application/octet-stream&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application/x-zip&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;images/jpeg&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;video/quicktime etc.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-left: 36pt; margin-top: 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet API&lt;/span&gt;&lt;/h1&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/servlet-api#servletapi1&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Interfaces in javax.servlet package&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/servlet-api#servletapi2&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Classes in javax.servlet package&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/servlet-api#servletapi3&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Interfaces in javax.servlet.http package&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/servlet-api#servletapi4&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Classes in javax.servlet.http package&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The javax.servlet and javax.servlet.http packages represent interfaces and classes for servlet api.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;javax.servlet&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;package contains many interfaces and classes that are used by the servlet or web container. These are not specific to any protocol.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;javax.servlet.http&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;package contains interfaces and classes that are responsible for http requests only.&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Interfaces in javax.servlet package&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;516&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many interfaces in javax.servlet package. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletRequest&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletResponse&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;RequestDispatcher&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletConfig&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContext&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;SingleThreadModel&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Filter&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;FilterConfig&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;FilterChain&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletRequestListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletRequestAttributeListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContextListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContextAttributeListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Classes in javax.servlet package&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;498&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many classes in javax.servlet package. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;GenericServlet&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletInputStream&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletOutputStream&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletRequestWrapper&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletResponseWrapper&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletRequestEvent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContextEvent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletRequestAttributeEvent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContextAttributeEvent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletException&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;UnavailableException&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Interfaces in javax.servlet.http package&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;548&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many interfaces in javax.servlet.http package. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpServletRequest&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpServletResponse&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSession&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionAttributeListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionBindingListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionActivationListener&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionContext (deprecated now)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Classes in javax.servlet.http package&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;530&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many classes in javax.servlet.http package. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpServlet&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Cookie&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpServletRequestWrapper&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpServletResponseWrapper&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionEvent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSessionBindingEvent&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpUtils (deprecated now)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet Interface&lt;/span&gt;&lt;/h1&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/Servlet-interface&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet Interface&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/Servlet-interface#servletmethods&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Methods of Servlet interface&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet interface&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;provides common behaviour to all the servlets.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet interface needs to be implemented for creating any servlet (either directly or indirectly). It provides 3 life cycle methods that are used to initialize the servlet, to service the requests, and to destroy the servlet and 2 non-life cycle methods.&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods of Servlet interface&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are 5 methods in Servlet interface. The init, service and destroy are the life cycle methods of servlet. These are invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -2.25pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;318&quot;&gt;&lt;/col&gt;&lt;col width=&quot;426&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 31.5pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void init(ServletConfig config)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;initializes the servlet. It is the life cycle method of servlet and invoked by the web container only once.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 29.25pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void service(ServletRequest request,ServletResponse response)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;provides response for the incoming request. It is invoked at each request by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 32.4pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void destroy()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is invoked only once and indicates that servlet is being destroyed.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 25.65pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public ServletConfig getServletConfig()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;returns the object of ServletConfig.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 31.5pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public String getServletInfo()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;returns information about servlet such as writer, copyright, version etc.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet Example by implementing Servlet interface&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;File: First.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class First implements Servlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletConfig config=null;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void init(ServletConfig config){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;this.config=config;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;System.out.println(&quot;servlet is initialized&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void service(ServletRequest req,ServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws IOException,ServletException{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter out=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;b&amp;gt;hello simple servlet&amp;lt;/b&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void destroy(){System.out.println(&quot;servlet is destroyed&quot;);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public ServletConfig getServletConfig(){return config;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public String getServletInfo(){return &quot;copyright 2022-23&quot;;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;GenericServlet class&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;GenericServlet&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;class implements&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletConfig&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Serializable&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;interfaces. It provides the implementaion of all the methods of these interfaces except the service method.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;GenericServlet class can handle any type of request so it is protocol-independent.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;You may create a generic servlet by inheriting the GenericServlet class and providing the implementation of the service method.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods of GenericServlet class&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many methods in GenericServlet class. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void init(ServletConfig config)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;is used to initialize the servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public abstract void service(ServletRequest request, ServletResponse response)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;provides service for the incoming request. It is invoked at each time when user requests for a servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void destroy()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;is invoked only once throughout the life cycle and indicates that servlet is being destroyed.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public ServletConfig getServletConfig()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns the object of ServletConfig.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getServletInfo()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns information about servlet such as writer, copyright, version etc.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void init()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;it is a convenient method for the servlet programmers, now there is no need to call super.init(config)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public ServletContext getServletContext()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns the object of ServletContext.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getInitParameter(String name)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns the parameter value for the given parameter name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Enumeration getInitParameterNames()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns all the parameters defined in the web.xml file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getServletName()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns the name of the servlet object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void log(String msg)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;writes the given message in the servlet log file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void log(String msg,Throwable t)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;writes the explanatory message in the servlet log file and a stack trace.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Servlet Example by inheriting the GenericServlet class&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;File: First.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class First extends GenericServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void service(ServletRequest req,ServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws IOException,ServletException{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter out=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;b&amp;gt;hello generic servlet&amp;lt;/b&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;HttpServlet class&lt;/span&gt;&lt;/h1&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/HttpServlet-class&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpServlet class&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;a href=&quot;http://www.javatpoint.com/HttpServlet-class#httpservletmethods&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Methods of HttpServlet class&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The HttpServlet class extends the GenericServlet class and implements Serializable interface. It provides http specific methods such as doGet, doPost, doHead, doTrace etc.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods of HttpServlet class&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many methods in HttpServlet class. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void service(ServletRequest req,ServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;dispatches the request to the protected service method by converting the request and response object into http type.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void service(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;receives the request from the service method, and dispatches the request to the doXXX() method depending on the incoming http request type.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doGet(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the GET request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doPost(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the POST request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doHead(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the HEAD request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doOptions(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the OPTIONS request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doPut(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the PUT request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doTrace(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the TRACE request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected void doDelete(HttpServletRequest req, HttpServletResponse res)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;handles the DELETE request. It is invoked by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;protected long getLastModified(HttpServletRequest req)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;returns the time when HttpServletRequest was last modified since midnight January 1, 1970 GMT.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);//setting the content type&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter pw=res.getWriter();//get the stream to write the data&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.println(&quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.println(&quot;Welcome to servlet&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.println(&quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.close();&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Life Cycle of a Servlet (Servlet Life Cycle)&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;706&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container maintains the life cycle of a servlet instance. Let&#39;s see the life cycle of the servlet:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet class is loaded.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Servlet instance is created.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;init method is invoked.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;service method is invoked.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;destroy method is invoked.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 218px; overflow: hidden; width: 376px;&quot;&gt;&lt;img alt=&quot;Life cycle of a servlet&quot; height=&quot;254.6252956390381&quot; src=&quot;https://lh3.googleusercontent.com/4QbTisV8fq5GsVe1PPKajtSxSC1dt1As5RtspgI65rgSRwiZ6m3Ju5dyEFkhiPrWeSiT4Z82dM4GLVwgTuxDI_eFWcaiLHwgMB-J7HLonQSIYiEZF56OeIsf2WxM2_FoAJ5QyrVh&quot; style=&quot;margin-left: -28.586px; margin-top: -23.2549px;&quot; width=&quot;445.26549339294434&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;As displayed in the above diagram, there are three states of a servlet: new, ready and end. The servlet is in new state if servlet instance is created. After invoking the init() method, Servlet comes in the ready state. In the ready state, servlet performs all the tasks. When the web container invokes the destroy() method, it shifts to the end state.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1) Servlet class is loaded&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;text-wrap: nowrap;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The classloader is responsible to load the servlet class. The servlet class is loaded when the first request for the servlet is received by the web container.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2) Servlet instance is created&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container creates the instance of a servlet after loading the servlet class. The servlet instance is created only once in the servlet life cycle.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3) init method is invoked&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container calls the init method only once after creating the servlet instance. The init method is used to initialize the servlet. It is the life cycle method of the javax.servlet.Servlet interface. Syntax of the init method is given below:&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;init(ServletConfig&amp;nbsp;config)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;ServletException&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4) service method is invoked&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container calls the service method each time when request for the servlet is received. If servlet is not initialized, it follows the first three steps as described above then calls the service method. If servlet is initialized, it calls the service method. Notice that servlet is initialized only once. The syntax of the service method of the Servlet interface is given below:&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;service(ServletRequest&amp;nbsp;req,&amp;nbsp;ServletResponse&amp;nbsp;res)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;ServletException,IOException&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;5) destroy method is invoked&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container calls the destroy method before removing the servlet instance from the service. It gives the servlet an opportunity to clean up any resource for example memory, thread etc. The syntax of the destroy method of the Servlet interface is given below:&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;destroy()&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;How Servlet works?&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It is important to learn how servlet works for understanding the servlet well. Here, we are going to get the internal detail about the first servlet program.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The server checks if the servlet is requested&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;for the first time&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;If yes,&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;web container does the following tasks:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;loads the servlet class.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;instantiates the servlet class.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;calls the init method passing the ServletConfig object&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;calls the service method passing request and response objects&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container calls the destroy method when it needs to remove the servlet such as at time of stopping server or undeploying the project.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;How web container handles the servlet request?&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The web container is responsible to handle the request. Let&#39;s see how it handles the request.&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;maps the request with the servlet in the web.xml file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;creates request and response objects for this request&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;calls the service method on the thread&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The public service method internally calls the protected service method&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The protected service method calls the doGet method depending on the type of request.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The doGet method generates the response and it is passed to the client.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;After sending the response, the web container deletes the request and response objects. The thread is contained in the thread pool or deleted depends on the server implementation.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletRequest Interface&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;An object of ServletRequest is used to provide the client request information to a servlet such as content type, content length, parameter names and values, header informations, attributes etc.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods of ServletRequest interface&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many methods defined in the ServletRequest interface. Some of them are as follows:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -2.25pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;354&quot;&gt;&lt;/col&gt;&lt;col width=&quot;396&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Method&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Description&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public String getParameter(String name)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;is used to obtain the value of a parameter by name.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public String[] getParameterValues(String name)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;returns an array of String containing all values of given parameter name. It is mainly used to obtain values of a Multi select list box.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;java.util.Enumeration getParameterNames()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;returns an enumeration of all of the request parameter names.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public int getContentLength()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the size of the request entity data, or -1 if not known.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public String getCharacterEncoding()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the character set encoding for the input of this request.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public String getContentType()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the Internet Media Type of the request entity data, or null if not known.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public ServletInputStream getInputStream() throws IOException&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns an input stream for reading binary data in the request body.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public abstract String getServerName()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the host name of the server that received the request.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public int getServerPort()&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Returns the port number on which this request was received.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of ServletRequest to display the name of the user&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;720&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are displaying the name of the user in the servlet. For this purpose, we have used the getParameter method that returns the value for the given request parameter name.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;DemoServ&quot; method=&quot;get&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Enter your name&amp;lt;input type=&quot;text&quot; name=&quot;name&quot;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;login&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServ.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServ extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException,IOException&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter pw=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String name=req.getParameter(&quot;name&quot;);//will return value&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.println(&quot;Welcome &quot;+name);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;READING FORM DATA FROM SERVLETS&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Reading Single Values: getParameter&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;To read a request (form) parameter, you simply call the getParameter method of HttpServletRequest, supplying the casesensitive parameter name as an argument. You supply the parameter name exactly as it appeared in the HTML source code, and you get the result exactly as the end user entered it; any&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;necessary URL-decoding is done automatically. An empty String is returned if the parameter exists but has no value (i.e., the user left the corresponding textfield empty when submitting the form), and&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;null is returned if there was no such parameter. Parameter names are case sensitive so, for example, request. Get Parameter (&quot;Param1&quot;) and request. get Parameter (&quot;param1&quot;) are not interchangeable.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Reading Multiple Values: getParameterValues&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;If the same parameter name might appear in the form data more than once, you should call getParameterValues (which returns an array of strings) instead of getParameter (which returns&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;a single string corresponding to the first occurrence of the parameter). The return value of&amp;nbsp; getParameterValues is null for nonexistent parameter names and is a one element array when the&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;parameter has only a single value. Now, if you are the author of the HTML form, it is usually best to ensure that each textfield, checkbox, or other user interface element has a unique name. That way, you can just stick with the simpler getParameter method and avoid getParameterValues altogether. Besides, multiselectable list boxes repeat the parameter name for each selected element in the list. So, you cannot always avoid multiple values.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Looking Up Parameter Names: getParameterNames&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Use getParameterNames to get this list in the form of an Enumeration, each entry of which can be cast to a String and used in a getParameter or getParameterValues call. If there are no parameters in the current request, getParameterNames returns an empty Enumeration (not null). Note that Enumeration is an interface that merely guarantees that the actual class will have hasMoreElements and nextElement methods: there is no guarantee that any particular underlying data structure will be used. And, since&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;some common data structures (hash tables, in particular) scramble the order of the elements, you should not count on getParameterNames returning the parameters in the order in which they appeared in the HTML form.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;RequestDispatcher Interface&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The RequestDispacher interface provides the facility of dispatching the request to another resource it may be html, servlet or jsp.This interface can also be used to include the content of antoher resource also. It is one of the way of servlet collaboration.There are two methods defined in the RequestDispatcher interface.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods of RequestDispatcher interface&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The RequestDispatcher interface provides two methods. They are:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void forward(ServletRequest request,ServletResponse response)throws ServletException,java.io.IOException:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void include(ServletRequest request,ServletResponse response)throws ServletException,java.io.IOException:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Includes the content of a resource (servlet, JSP page, or HTML file) in the response.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 244px; overflow: hidden; width: 552px;&quot;&gt;&lt;img alt=&quot;forward() method of RequestDispatcher interface&quot; height=&quot;384.0040216445923&quot; src=&quot;https://lh6.googleusercontent.com/m_ksUU4aM6JN6J78UqkFQyXuf-7n5aEpXVroiRYei_MRlMJte8DTfUnOiJwpVR9YV6sDE5MBFhLhpTZ19Z3haor1wyGTslc-oUYK5MHHKDf2eRkKpOU0tn3Acb3GyKzdVkNUQAU4&quot; style=&quot;margin-left: -12.2081px; margin-top: -61.0029px;&quot; width=&quot;588.6242036819458&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;As you see in the above figure, response of second servlet is sent to the client. Response of the first servlet is not displayed to the user.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 209px; overflow: hidden; width: 634px;&quot;&gt;&lt;img alt=&quot;include() method of RequestDispatcher interface&quot; height=&quot;350.45944941043854&quot; src=&quot;https://lh6.googleusercontent.com/bdbtcgMGKCTtxFrrOW4-Rv00VypEm9nKC1nsXP4L-zc1LFF1qYNG1Ja-54FG7mJs3_ORHCA9FdJqNu_skrIdTKeaYlgWaavFzcNVEJgPpjtQqvPZKie7BGnm_4KftUmDQmb3wyLU&quot; style=&quot;margin-left: -19.9958px; margin-top: -10.9519px;&quot; width=&quot;695.991984128952&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;As you can see in the above figure, response of second servlet is included in the response of the first servlet that is being sent to the client.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;How to get the object of RequestDispatcher&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The getRequestDispatcher() method of ServletRequest interface returns the object of RequestDispatcher. Syntax:&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;RequestDispatcher&amp;nbsp;getRequestDispatcher(String&amp;nbsp;resource);&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 2pt; margin-left: 36pt; margin-top: 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of RequestDispatcher interface&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are validating the password entered by the user. If password is servlet, it will forward the request to the WelcomeServlet, otherwise will show an error message: sorry username or password error!. In this program, we are cheking for hardcoded information. But you can check it to the database also that we will see in the development chapter. In this example, we have created following files:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;index.html file:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;for getting input from the user.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Login.java file:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;a servlet class for processing the response. If password is secret, it will forward the request to the welcome servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;WelcomeServlet.java file:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;a servlet class for displaying the welcome message.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;web.xml file:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;a deployment descriptor file that contains the information about the servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 259px; overflow: hidden; width: 547px;&quot;&gt;&lt;img alt=&quot;RequestDispatcher interface&quot; height=&quot;285.7647280693054&quot; src=&quot;https://lh6.googleusercontent.com/1Q3aRCCHlibjxCuFou7zLgksOI0523rQ3HijWrLv6yTQLe8WFLpaAhY1ZqZh_sjpMbqZkHvEX5POXROmHE83xTB9HFMgUz5uZXRC3pcpgZlgCKF7fJHa9I-_D7eeLB67NBuXWa5O&quot; style=&quot;margin-left: -15.3117px; margin-top: -7.2327px;&quot; width=&quot;584.8640934228897&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;Login&quot; method=&quot;post&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Name:&amp;lt;input type=&quot;text&quot; name=&quot;userName&quot;/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Password:&amp;lt;input type=&quot;password&quot; name=&quot;userPass&quot;/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;login&quot;/&amp;gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Login.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class Login extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doPost(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException, IOException {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;userName&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String p=request.getParameter(&quot;userPass&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;if(p.equals(&quot;secret&quot;){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RequestDispatcher rd=request.getRequestDispatcher(&quot;WelcomeServlet&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rd.forward(request, response);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;else{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Sorry UserName or Password Error!&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RequestDispatcher rd=request.getRequestDispatcher(&quot;/index.html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;rd.include(request, response);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;WelcomeServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class WelcomeServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doPost(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException, IOException {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;userName&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Welcome &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SendRedirect in servlet&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;sendRedirect()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;method of&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;HttpServletResponse&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;interface can be used to redirect response to another resource, it may be servlet, jsp or html file.It accepts relative as well as absolute URL.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It works at client side because it uses the url bar of the browser to make another request. So, it can work inside and outside the server.&lt;/span&gt;&lt;/p&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h2&gt;&lt;h2 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Difference between forward() and sendRedirect() method&lt;/span&gt;&lt;/h2&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are many differences between the forward() method of RequestDispatcher and sendRedirect() method of HttpServletResponse interface. They are given below:&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -2.25pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;500&quot;&gt;&lt;/col&gt;&lt;col width=&quot;271&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;forward() method&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #a3ae7e; border-bottom: solid #ab9a61 0.75pt; border-color: rgb(171, 154, 97); border-left: solid #ab9a61 0.75pt; border-right: solid #ab9a61 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 2.25pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;sendRedirect() method&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The forward() method works at server side.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(171, 154, 97) rgb(212, 212, 212) rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #ab9a61 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The sendRedirect() method works at client side.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It sends the same request and response objects to another servlet.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It always sends a new request.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It can work within the server only.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;It can be used within and outside the server.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example: request.getRequestDispacher(&quot;servlet2&quot;).forward(request,response);&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f6f4f0; border-bottom: solid #d4d4d4 0.75pt; border-color: rgb(212, 212, 212); border-left: solid #d4d4d4 0.75pt; border-right: solid #d4d4d4 0.75pt; border-style: solid; border-top: solid #d4d4d4 0.75pt; border-width: 0.75pt; overflow-wrap: break-word; overflow: hidden; padding: 5.25pt 3.75pt; vertical-align: top;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example: response.sendRedirect(&quot;servlet2&quot;);&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Syntax of sendRedirect() method&lt;/span&gt;&lt;/h3&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: -36pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;sendRedirect(String&amp;nbsp;URL)&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;throws&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;IOException;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example:&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are redirecting the request to the google server. Notice that sendRedirect method works at client side, that is why we can our request to anywhere. We can send our request within and outside the server.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException,IOException&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter pw=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.sendRedirect(&quot;http://www.google.com&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 18pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Creating custom google search using sendRedirect&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are using sendRedirect method to send request to google server with the request data.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;title&amp;gt;sendRedirect example&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;MySearcher&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;text&quot; name=&quot;name&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;Google Search&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/form&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;MySearcher.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.IOException;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.ServletException;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.HttpServlet;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.HttpServletRequest;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.HttpServletResponse;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class MySearcher extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;protected void doGet(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException, IOException {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String name=request.getParameter(&quot;name&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.sendRedirect(&quot;https://www.google.co.in/#q=&quot;+name);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletConfig Interface&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;An object of ServletConfig is created by the web container for each servlet. This object can be used to get configuration information from web.xml file.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;If the configuration information is modified from the web.xml file, we don&#39;t need to change the servlet. So it is easier to manage the web application if any specific content is modified from time to time.&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage of ServletConfig&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The core advantage of ServletConfig is that you don&#39;t need to edit the servlet file if information is modified from the web.xml file.&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Methods of ServletConfig interface&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getInitParameter(String name):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the parameter value for the specified parameter name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Enumeration getInitParameterNames():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns an enumeration of all the initialization parameter names.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getServletName():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the name of the servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public ServletContext getServletContext():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns an object of ServletContext.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h4 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Syntax:&lt;/span&gt;&lt;/h4&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;ServletConfig&amp;nbsp;getServletConfig();&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h3&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Syntax to provide the initialization parameter for a servlet&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The init-param sub-element of servlet is used to specify the initialization parameter for a servlet.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;......&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;parametername&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;parametervalue&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;......&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of ServletConfig to get initialization parameter&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are getting the one initialization parameter from the web.xml file and printing this information in the servlet.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throws ServletException, IOException {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ServletConfig config=getServletConfig();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String driver=config.getInitParameter(&quot;driver&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.print(&quot;Driver is: &quot;+driver);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.close();&amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;web.xml&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;DemoServlet&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-class&amp;gt;DemoServlet&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;driver&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;sun.jdbc.odbc.JdbcOdbcDriver&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;DemoServlet&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;url-pattern&amp;gt;/servlet1&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of ServletConfig to get all the initialization parameters&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are getting all the initialization parameter from the web.xml file and printing this information in the servlet.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.IOException;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.PrintWriter;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.util.Enumeration;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.ServletConfig;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.ServletException;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.HttpServlet;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.HttpServletRequest;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.HttpServletResponse;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throws ServletException, IOException {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ServletConfig config=getServletConfig();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Enumeration&amp;lt;string&amp;gt; e=config.getInitParameterNames();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String str=&quot;&quot;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(e.hasMoreElements()){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;str=e.nextElement();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.print(&quot;&amp;lt;br&amp;gt;Name: &quot;+str);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.print(&quot; value: &quot;+config.getInitParameter(str));&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;web.xml&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;DemoServlet&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-class&amp;gt;DemoServlet&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;username&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;system&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;password&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;oracle&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/init-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;DemoServlet&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;url-pattern&amp;gt;/servlet1&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletContext Interface&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;An object of ServletContext is created by the web container at time of deploying the project. This object can be used to get configuration information from web.xml file. There is only one ServletContext object per web application.If any information is shared to many servlet, it is better to provide it from the web.xml file using the&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;element.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage of ServletContext&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Easy to maintain&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;if any information is shared to all the servlet, it is better to make it available for all the servlet. We provide this information from the web.xml file, so if the information is changed, we don&#39;t need to modify the servlet. Thus it removes maintenance problem.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Usage of ServletContext Interface&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There can be a lot of usage of ServletContext object. Some of them are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The object of ServletContext provides an interface between the container and servlet.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The ServletContext object can be used to get configuration information from the web.xml file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The ServletContext object can be used to set, get or remove attribute from the web.xml file.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;The ServletContext object can be used to provide inter-application communication.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 162px; overflow: hidden; width: 532px;&quot;&gt;&lt;img alt=&quot;ServletContext interface&quot; height=&quot;162&quot; src=&quot;https://lh5.googleusercontent.com/9xQZ_AX54CByLhOtv-A2l2ujBGsT6fjZCqedbkYeEI3YFtoEBLtSuEoeCJ7TPNBDMnUlBAlErzOTwtAinVp0Rg2Xhon12hv7bFLgMfy4wpWFkq96lS8AvrUnhSKqgqIf9u3_XS9G&quot; style=&quot;margin-left: 0px; margin-top: 0px;&quot; width=&quot;532&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Commonly used methods of ServletContext interface&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There is given some commonly used methods of ServletContext interface.&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getInitParameter(String name):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the parameter value for the specified parameter name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Enumeration getInitParameterNames():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the names of the context&#39;s initialization parameters.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void setAttribute(String name,Object object):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;sets the given object in the application scope.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Object getAttribute(String name):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the attribute for the specified name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Enumeration getInitParameterNames():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the names of the context&#39;s initialization parameters as an Enumeration of String objects.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void removeAttribute(String name):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Removes the attribute with the given name from the servlet context.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;How to get the object of ServletContext interface&lt;/span&gt;&lt;/h3&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;getServletContext() method&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;of ServletConfig interface returns the object of ServletContext.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;getServletContext() method&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;nbsp;of GenericServlet class returns the object of ServletContext.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h4 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Syntax:&lt;/span&gt;&lt;/h4&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f8f8f5; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;ServletContext&amp;nbsp;getServletContext()&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Syntax to provide the initialization parameter in Context scope&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;context-param&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;element, subelement of web-app, is used to define the initialization parameter in the application scope. The param-name and param-value are the sub-elements of the context-param. The param-name element defines parameter name and and param-value defines its value.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;......&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;parametername&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;parametervalue&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;......&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of ServletContext to get the initialization parameter&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are getting the initialization parameter from the web.xml file and printing the value of the initialization parameter. Notice that the object of ServletContext represents the application scope. So if we change the value of the parameter from the web.xml file, all the servlet classes will get the changed value. So we don&#39;t need to modify the servlet. So it is better to have the common information for most of the servlets in the web.xml file by context-param element. Let&#39;s see the simple example:&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException,IOException&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter pw=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;//creating ServletContext object&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletContext context=getServletContext();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;//Getting the value of the initialization parameter and printing it&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String driverName=context.getInitParameter(&quot;dname&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.println(&quot;driver name is=&quot;+driverName);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;pw.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;web.xml&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;servlet1&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-class&amp;gt;DemoServlet&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;dname&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;sun.jdbc.odbc.JdbcOdbcDriver&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;servlet1&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;url-pattern&amp;gt;/context&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of ServletContext to get all the initialization parameters&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are getting all the initialization parameter from the web.xml file. For getting all the parameters, we have used the getInitParameterNames() method in the servlet class.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;throws ServletException,IOException&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter out=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletContext context=getServletContext();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Enumeration&amp;lt;string&amp;gt; e=context.getInitParameterNames();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String str=&quot;&quot;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;while(e.hasMoreElements()){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;str=e.nextElement();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;out.print(&quot;&amp;lt;br&amp;gt; &quot;+context.getInitParameter(str));&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp; }}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;web.xml&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;servlet1&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-class&amp;gt;DemoServlet&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;dname&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;sun.jdbc.odbc.JdbcOdbcDriver&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;username&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;system&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-name&amp;gt;password&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;param-value&amp;gt;oracle&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt; servlet1&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;url-pattern&amp;gt;/context&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Attribute in Servlet&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;An attribute is an object that can be set, get or removed from one of the following scopes:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;request scope&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;session scope&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;application scope&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The servlet programmer can pass informations from one servlet to another using attributes. It is just like passing object from one class to another so that we can reuse the same object again and again.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Attribute specific methods of ServletRequest, HttpSession and ServletContext interface&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are following 4 attribute specific methods. They are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void setAttribute(String name,Object object):&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;sets the given object in the application scope.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Object getAttribute(String name):&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the attribute for the specified name.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Enumeration getInitParameterNames():&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the names of the context&#39;s initialization parameters as an Enumeration of String objects.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void removeAttribute(String name):&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Removes the attribute with the given name from the servlet context.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of ServletContext to set and get attribute&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are setting the attribute in the application scope and getting that value from another servlet.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet1.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet1 extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter out=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletContext context=getServletContext();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;context.setAttribute(&quot;company&quot;,&quot;IBM&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.println(&quot;Welcome to first servlet&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.println(&quot;&amp;lt;a href=&#39;servlet2&#39;&amp;gt;visit&amp;lt;/a&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;DemoServlet2.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class DemoServlet2 extends HttpServlet{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest req,HttpServletResponse res)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;res.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;PrintWriter out=res.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletContext context=getServletContext();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;String n=(String)context.getAttribute(&quot;company&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.println(&quot;Welcome to &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;web.xml&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;s1&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-class&amp;gt;DemoServlet1&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;s1&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;url-pattern&amp;gt;/servlet1&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;s2&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-class&amp;gt;DemoServlet2&amp;lt;/servlet-class&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;servlet-name&amp;gt;s2&amp;lt;/servlet-name&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;url-pattern&amp;gt;/servlet2&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/servlet-mapping&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Difference between ServletConfig and ServletContext:&lt;/span&gt;&lt;/h3&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 3.35pt; margin-top: 0pt; padding: 6.15pt 0pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletConfig&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletConfig available in&amp;nbsp;javax.servlet.*; package&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletConfig object is&amp;nbsp;one&amp;nbsp;per servlet class&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Object of ServletConfig will be created during&amp;nbsp;initialization&amp;nbsp;process of the servlet&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;This Config object is&amp;nbsp;public&amp;nbsp;to a particular servlet only&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Scope&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;: As long as a servlet is executing, ServletConfig object will be available, it will be destroyed once the servlet execution is completed.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;We should give request&amp;nbsp;explicitly, in order to create ServletConfig object for the&amp;nbsp;first time&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;In web.xml – &amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;init-param&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;gt; tag will be appear under &amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;servlet-class&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;gt; tag&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 3.35pt; margin-top: 8.15pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;ServletContext&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 14pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContext&amp;nbsp;available in javax.servlet.*; package&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContext object is&amp;nbsp;global&amp;nbsp;to entire web application&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Object of ServletContext will be created at the time of web application&amp;nbsp;deployment&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Scope&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;: As long as web application is executing, ServletContext object will be available, and it will be destroyed once the application is removed from the server.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;ServletContext object will be available even before giving the first request&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: disc; margin-left: -33.6pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 14pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;In web.xml – &amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;context-param&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;gt; tag will be appear under &amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-style: italic; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;web-app&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;&amp;gt; tag&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.38; margin-bottom: 0pt; margin-top: 1.9pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;So finally…….&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: #f9fbf6; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 5pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;No. of web applications&amp;nbsp; =&amp;nbsp; That many number of ServletContext objects [ 1 per web application ]&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;No. of servlet classes = That many number of ServletConfig objects&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt; padding: -3pt 0pt 0pt 0pt;&quot;&gt;&amp;nbsp;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;6&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Cookies in Session Tracking&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Cookie is a mechanism to maintain the state of an user. Before cookie, let&#39;s see what is sesion tracking and what are ways to perform session tracking.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Session Tracking&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Session&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;simply means a particular interval of time.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Session Tracking is a way to maintain state of an user. Http protocol is a stateless protocol. Each time user requests to the server, server treats the request as the new request. So we need to maintain the state of an user to recognize to particular user.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 146px; overflow: hidden; width: 368px;&quot;&gt;&lt;img alt=&quot;session tracking&quot; height=&quot;179.51997447013855&quot; src=&quot;https://lh6.googleusercontent.com/vloPKNid97tocBJMWp2bgcnsSt8zGjuYUXkels_yeq3md8kq3IjlJsmSZhverJ6BkpbaPcJ3uZWMODU05jd0_pQIok2VjQaictqBV2IBAVZu_-NhdOijLwWaOYA7A2CodVEZfv0u&quot; style=&quot;margin-left: 0px; margin-top: -13.4083px;&quot; width=&quot;401.00253105163574&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Why use Session Tracking?&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;176&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;To recognize the user.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Session Tracking Techniques&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;373&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are four techniques used in Session tracking:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Cookies&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Hidden Form Field&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;URL Rewriting&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;HttpSession&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;1) Cookies&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A cookie is a small piece of information that is persisted between the multiple client requests.A cookie has a name, a single value, and optional attributes such as a comment, path and domain qualifiers, a maximum age, and a version number.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 174px; overflow: hidden; width: 440px;&quot;&gt;&lt;img alt=&quot;cookies in session tracking&quot; height=&quot;233.99992847442627&quot; src=&quot;https://lh4.googleusercontent.com/78HiRC0QRnKrUKWPXzbG_ThRrO1eA5cicv780AVUHSTgwFxZGJWZ-QXkJz-9YekqRWIQY9fQ9RDazNfdn5A5bjEA4xwEGkxKcLf1K0oYv2JjJZ-LH14AMD6p4I4eQZ3M8mpWJuLd&quot; style=&quot;margin-left: -25.998px; margin-top: -45.0005px;&quot; width=&quot;499.001989364624&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;543&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;javax.servlet.http.Cookie&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;class provides the functionality of using cookies.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Constructor of Cookie class&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;649&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Cookie(String name, String value):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;Constructs a cookie with a specified name and value.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Commonly used methods of Cookie class&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;723&quot;&gt;&lt;/col&gt;&lt;col width=&quot;3&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;There are given some commonly used methods of the Cookie class.&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void setMaxAge(int expiry):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Sets the maximum age of the cookie in seconds.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getName():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the name of the cookie. The name cannot be changed after creation.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getValue():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the value of the cookie.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void addCookie(Cookie ck):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;method of HttpServletResponse interface is used to add cookie in response object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public Cookie[] getCookies():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;method of HttpServletRequest interface is used to return all the cookies from the browser.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage of Cookies&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;396&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Simplest technique of maintaining the state.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Cookies are maintained at client side.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantage of Cookies&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;460&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It will not work if cookie is disabled from the browser.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Only textual information can be set in Cookie object.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of using Cookies&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are storing the name of the user in the cookie object and accessing it in another servlet. As we know well that session corresponds to the particular user. So if you access it from too many browsers with different values, you will get the different value.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 182px; overflow: hidden; width: 538px;&quot;&gt;&lt;img alt=&quot;cookies in session tracking&quot; height=&quot;197.67783379554749&quot; src=&quot;https://lh3.googleusercontent.com/mrm7PgQlAu8VRCxlx3udJR8W-9LOjFPxdCmXlHNMEZr6ojOHfh8ODcTCHdsqIQSzU8kL2gNCkPlPAY1J6-_-_baPGX5lHOHCZD998DMSy-Y100F73g0IBuoIu5dFo-dG7769FfIi&quot; style=&quot;margin-left: -16.0011px; margin-top: 0px;&quot; width=&quot;601.9984400272369&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;FirstServlet&quot; method=&quot;post&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Name:&amp;lt;input type=&quot;text&quot; name=&quot;userName&quot;/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;go&quot;/&amp;gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FirstServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class FirstServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doPost(HttpServletRequest request, HttpServletResponse response){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;userName&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Welcome &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cookie ck=new Cookie(&quot;uname&quot;,n);//creating cookie object&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.addCookie(ck);//adding cookie in the response&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//creating submit button&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;form action=&#39; SecondServlet&#39;&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;input type=&#39;submit&#39; value=&#39;go&#39;&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;/form&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SecondServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class SecondServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doPost(HttpServletRequest request, HttpServletResponse response){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Cookie ck[]=request.getCookies();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Hello &quot;+ck[0].getValue());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;2)Hidden Form Field&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In case of Hidden Form Field an invisible textfield is used for maintaing the state of an user. In such case, we store the information in the hidden field and get it from another servlet. This approach is better if we have to submit form in all the pages and we don&#39;t want to depend on the browser.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 176px; overflow: hidden; width: 470px;&quot;&gt;&lt;img alt=&quot;Hidden Form Field in session tracking&quot; height=&quot;220.36911582946777&quot; src=&quot;https://lh5.googleusercontent.com/CwFwoPgGxTic9GAciHE_-DnalWQDKOK1Jwr6ZJgyte3nnIBlrc9LjfuLC9OlHXxye65jRkT1JPVb2kHHt5qAwUm0n8XyGhz6d6beQf_5rUVWp4ow2MyjsJA-ZwFIDiF9te5IkHTj&quot; style=&quot;margin-left: 0px; margin-top: -25.8824px;&quot; width=&quot;528.4224021434784&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage of Hidden Form Field&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;454&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It will always work whether cookie is disabled or not.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantage of Hidden Form Field:&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;431&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It is maintained at server side.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Extra form submission is required on each pages.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Only textual information can be used.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of using Hidden Form Field&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are storing the name of the user in a hidden textfield and getting that value from another servlet.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;FirstServlet&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Name:&amp;lt;input type=&quot;text&quot; name=&quot;userName&quot;/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;go&quot;/&amp;gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FirstServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class FirstServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;userName&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Welcome &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//creating form that have invisible textfield&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;form action=&#39;SecondServlet&#39;&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;input type=&#39;hidden&#39; name=&quot;uname&quot; value=&#39;&quot;+n+&quot;&#39;&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;input type=&#39;submit&#39; value=&#39;go&#39;&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;/form&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SecondServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class SecondServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Getting the value from the hidden field&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;uname&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Hello &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 2pt 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;3)URL Rewriting&lt;/span&gt;&lt;/h1&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In URL rewriting, we append a token or identifier to the URL of the next Servlet or the next resource. We can send parameter name/value pairs using the following format:&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;url?name1=value1&amp;amp;name2=value2&amp;amp;??&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt; text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;A name and a value is separated using an equal = sign, a parameter name/value pair is separated from another parameter using the ampersand(&amp;amp;). When the user clicks the hyperlink, the parameter name/value pairs will be passed to the server. From a Servlet, we can use getParameter() method to obtain a parameter value.&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 245px; overflow: hidden; width: 530px;&quot;&gt;&lt;img alt=&quot;http://www.javatpoint.com/images/url.JPG&quot; height=&quot;286.99950098991394&quot; src=&quot;https://lh3.googleusercontent.com/HCZW4KN--eQJA_HNOmNWUuND2kXH0AZ3chPsIjgsbXAGjmq2N8Zb0S72Lat-GtvnxiydOiuzP_mzXW6AMgahA0VxG1kkVEjeKKN7Xz9_10TXDXbSSmq2TzAjQLO4PEZgiILBiPa6&quot; style=&quot;margin-left: -16.0028px; margin-top: -21.9985px;&quot; width=&quot;608.0073380470276&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Advantage of URL Rewriting&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;612&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It will always work whether cookie is disabled or not (browser independent).&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Extra form submission is not required on each pages.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Disadvantage of URL Rewriting&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;346&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It will work only with links.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;It can send Only textual information.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of using URL Rewriting&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are maintaning the state of the user using link. For this purpose, we are appending the name of the user in the query string and getting the value from the query string in another page.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;FirsrServlet&quot;&amp;gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Name:&amp;lt;input type=&quot;text&quot; name=&quot;userName&quot;/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;go&quot;/&amp;gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FirstServlet.java&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class FirstServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;userName&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Welcome &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//appending the username in the query string&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;a href=&#39;SecondServlet?uname=&quot;+n+&quot;&#39;&amp;gt;visit&amp;lt;/a&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SecondServlet.java&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class SecondServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//getting value from the query string&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;uname&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Hello &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;h1 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;4) HttpSession interface&lt;/span&gt;&lt;/h1&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In such case, container creates a session id for each user.The container uses this id to identify the particular user.An object of HttpSession can be used to perform two tasks:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;bind objects&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;view and manipulate information about a session, such as the session identifier, creation time, and last accessed time.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-top: 2pt; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;border: none; display: inline-block; height: 175px; overflow: hidden; width: 579px;&quot;&gt;&lt;img alt=&quot;http://www.javatpoint.com/images/httpsession.JPG&quot; height=&quot;212.33484148979187&quot; src=&quot;https://lh6.googleusercontent.com/ucxeC1ajAo4MmHE1uuCilNgVRSHG8C1AiB2kx7raqjgqUgFEeJUPgiv6tivK0va2x0qaGLdx7CeQn6EPkQJ-JjVJMDiaX0DcEOcxJh7Ph2xF3DPSpVlhdZ92EJlUO14XnLowY5q9&quot; style=&quot;margin-left: -14.9975px; margin-top: -21.002px;&quot; width=&quot;632.0063413381577&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;How to get the HttpSession object ?&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;The HttpServletRequest interface provides two methods to get the object of HttpSession:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public HttpSession getSession():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the current session associated with this request, or if the request does not have a session, creates one.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public HttpSession getSession(boolean create):&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Commonly used methods of HttpSession interface&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;ol style=&quot;margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px;&quot;&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public String getId():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns a string containing the unique identifier value.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public long getCreationTime():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public long getLastAccessedTime():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li aria-level=&quot;1&quot; dir=&quot;ltr&quot; style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; margin-left: 15pt; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;p dir=&quot;ltr&quot; role=&quot;presentation&quot; style=&quot;line-height: 1.2; margin-bottom: 2pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; text-wrap: wrap; vertical-align: baseline;&quot;&gt;public void invalidate():&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; text-wrap: wrap; vertical-align: baseline;&quot;&gt;Invalidates this session then unbinds any objects bound to it.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Example of using HttpSession&lt;/span&gt;&lt;/h3&gt;&lt;div align=&quot;left&quot; dir=&quot;ltr&quot; style=&quot;margin-left: -0.75pt;&quot;&gt;&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;726&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: white; overflow-wrap: break-word; overflow: hidden; padding: 0.75pt; vertical-align: middle;&quot;&gt;&lt;p dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 2pt; margin-left: 15pt; margin-top: 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;In this example, we are setting the attribute in the session scope in one servlet and getting that value from the session scope in another servlet. To set the attribute in the session scope, we have used the setAttribute() method of HttpSession interface and to get the attribute, we have used the getAttribute method.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 2pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;index.html&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;form action=&quot;FirstServlet&quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;Name:&amp;lt;input type=&quot;text&quot; name=&quot;userName&quot;/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;input type=&quot;submit&quot; value=&quot;go&quot;/&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;FirstServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class FirstServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=request.getParameter(&quot;userName&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Welcome &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HttpSession session=request.getSession();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;session.setAttribute(&quot;uname&quot;,n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;&amp;lt;a href=&#39;SecondServlet&#39;&amp;gt;visit&amp;lt;/a&amp;gt;&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;SecondServlet.java&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import java.io.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;import javax.servlet.http.*;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public class SecondServlet extends HttpServlet {&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;public void doGet(HttpServletRequest request, HttpServletResponse response)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;try{&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;response.setContentType(&quot;text/html&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PrintWriter out = response.getWriter();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HttpSession session=request.getSession(false);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String n=(String)session.getAttribute(&quot;uname&quot;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.print(&quot;Hello &quot;+n);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;out.close();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt; padding: 0pt 0pt 2pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;}catch(Exception e){System.out.println(e);}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;ltr&quot; style=&quot;background-color: white; line-height: 1.2; margin-bottom: 2pt; margin-top: 0pt;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent; font-family: Verdana; font-size: 10pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/2665297236016915291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2024/01/java-servlet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/2665297236016915291'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/2665297236016915291'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2024/01/java-servlet.html' title='Java Servlet'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/DWii1MY2mp4Q7dWilFHQMIx91OLsaJ3xXpmMcohZvqtFavmj167gSXv2jbwyu7QWnEJP8VWHR7ztuceZ-lRadNAb1PWEJ323sbKKEuadahKzCgnS2ECp1urAWAdLlYTw4yFSjokl=s72-c" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-8650428711374685918</id><published>2023-04-14T21:28:00.003+05:30</published><updated>2023-04-14T21:28:25.370+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DS"/><category scheme="http://www.blogger.com/atom/ns#" term="Queue"/><title type='text'>Queue Data Structure</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;u&gt;Queue&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlSNIOOEAM-NglVJ7ZWadtVk92X3-Yf9cEqfa7YlfYn2Bcz6cgMfqNqbM5pcKAIA9rQwRX9stT54vQG3P-hIMSaahbiqd8hzpv9EJ1ssUxZbcCwMzcrH950DVn44HAnGoYNyqMmJq4cntPIw-m-a5MOkeZhVl4YDn_kr9R0GibZedSUOmPXKXF8rBBpw/s266/download.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;190&quot; data-original-width=&quot;266&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlSNIOOEAM-NglVJ7ZWadtVk92X3-Yf9cEqfa7YlfYn2Bcz6cgMfqNqbM5pcKAIA9rQwRX9stT54vQG3P-hIMSaahbiqd8hzpv9EJ1ssUxZbcCwMzcrH950DVn44HAnGoYNyqMmJq4cntPIw-m-a5MOkeZhVl4YDn_kr9R0GibZedSUOmPXKXF8rBBpw/s1600/download.jpg&quot; width=&quot;266&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;A Queue is a linear data structure that follows a First-In-First-Out (FIFO) principle. In a queue, the first element inserted is the first element to be removed. It works like a real-life queue of people waiting to do something.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The two primary operations that can be performed on a queue are enqueue and dequeue.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;enqueue:&lt;/b&gt; This operation adds an element to the end of the queue.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;dequeue: &lt;/b&gt;This operation removes the element from the front of the queue.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Other operations that are often provided by a queue data structure include:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;peek: &lt;/b&gt;This operation returns the element at the front of the queue without removing it.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;isEmpty:&lt;/b&gt; This operation returns true if the queue is empty, and false otherwise.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;size:&lt;/b&gt; This operation returns the number of elements currently in the queue.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Queues can be implemented using arrays, linked lists, or other data structures.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Application of Queue:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The queue data structure has many practical applications, some of which are:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Job scheduling:&lt;/b&gt; Queues can be used in operating systems to manage the order in which tasks are executed. Each task is added to a queue, and the operating system schedules tasks for execution in the order they were added.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Print spooling:&lt;/b&gt; Queues are often used to manage print jobs in computer systems. Each print job is added to a queue, and the printer processes them in the order they were added.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Call center routing&lt;/b&gt;: In a call center, queues are used to manage incoming calls. Calls are added to a queue, and agents take calls from the front of the queue in a first-come, first-served manner.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Breadth-first search:&lt;/b&gt; In graph theory, breadth-first search algorithms use queues to explore all the vertices in a graph in order of their distance from a starting vertex.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Resource sharing: &lt;/b&gt;Queues can be used to manage shared resources, such as network connections. Requests for the resource are added to a queue, and the resource is granted in the order the requests were received.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;CPU scheduling:&lt;/b&gt; In computer operating systems, queues are used to schedule CPU time for processes. Each process is added to a queue, and the operating system allocates CPU time to processes in the order they were added.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;b&gt;Buffering:&lt;/b&gt; In networking and telecommunications, queues are used to buffer packets of data as they are transmitted between devices. The packets are added to a queue, and the receiving device processes them in the order they were received.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;These are just a few examples of the many practical applications of the queue data structure.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;Implementation of Queue in Python:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;class Queue:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; def __init__(self):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.items = []&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; def enqueue(self, item):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.items.append(item)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; def dequeue(self):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not self.is_empty():&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return self.items.pop(0)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; def peek(self):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not self.is_empty():&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return self.items[0]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; def is_empty(self):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return len(self.items) == 0&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; def size(self):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return len(self.items)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;q= Queue()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;n= int(input(&quot;How many elements youn want?&quot;))&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; elt=input(&quot;Enter element:&quot;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; q.enqueue(elt)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;print(q.is_empty())&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;print(q.dequeue())&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;print(q.size())&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;print(q.peek())&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;In this implementation, the Queue class has a list instance variable called items to store the elements of the queue.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The enqueue() method adds an element to the end of the list using the append() method.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The dequeue() method removes and returns the first element from the list using the pop() method with an index of 0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The peek() method returns the first element of the list without removing it.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The is_empty() method returns True if the list is empty, and False otherwise.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;The size() method returns the number of elements in the list using the built-in len() function.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: georgia; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/8650428711374685918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/queue-data-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/8650428711374685918'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/8650428711374685918'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/queue-data-structure.html' title='Queue Data Structure'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlSNIOOEAM-NglVJ7ZWadtVk92X3-Yf9cEqfa7YlfYn2Bcz6cgMfqNqbM5pcKAIA9rQwRX9stT54vQG3P-hIMSaahbiqd8hzpv9EJ1ssUxZbcCwMzcrH950DVn44HAnGoYNyqMmJq4cntPIw-m-a5MOkeZhVl4YDn_kr9R0GibZedSUOmPXKXF8rBBpw/s72-c/download.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-72821805795793947</id><published>2023-04-09T20:58:00.002+05:30</published><updated>2023-04-17T21:16:43.928+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arrays"/><category scheme="http://www.blogger.com/atom/ns#" term="DS"/><title type='text'>Arrays</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;What is Arrays Data Structure?&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNyPfBV1LLHGsrsqOnayfosUxgO87zFRmE755CH02WfrfwfJ9fK3ghggthxi8NNPQeiXLz0hUaGxlSGgYXZbw7JoNqvZ11lQLTFiXhFNTGuoXvVt_Sazo8nQsdk3rBbOye0bom7b3uTaqQRO0uGJ9A8Vvlieo77Fz1qmy9s3CpWby335YSq73IDm-2PQ/s400/What%20is%20in%20array.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;400&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNyPfBV1LLHGsrsqOnayfosUxgO87zFRmE755CH02WfrfwfJ9fK3ghggthxi8NNPQeiXLz0hUaGxlSGgYXZbw7JoNqvZ11lQLTFiXhFNTGuoXvVt_Sazo8nQsdk3rBbOye0bom7b3uTaqQRO0uGJ9A8Vvlieo77Fz1qmy9s3CpWby335YSq73IDm-2PQ/s320/What%20is%20in%20array.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;An array is a data structure that stores a collection of elements of the same data type in a contiguous block of memory. Each element in the array is identified by its index or position within the array, starting from 0.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Arrays can be one-dimensional, two-dimensional, or multi-dimensional, depending on the number of indices required to access each element. One-dimensional arrays are commonly used to store a list of items, while two-dimensional arrays are used to represent a matrix or a table.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The main advantage of arrays is that they provide fast access to individual elements, as elements can be accessed in constant time using their index. This makes arrays a popular choice for storing large amounts of data that need to be accessed quickly.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Some common &lt;b&gt;operations&lt;/b&gt; that can be performed on arrays include:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Accessing an element:&lt;/b&gt; An element in the array can be accessed by its index.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Inserting an element: &lt;/b&gt;An element can be inserted at a specific index in the array.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Deleting an element: &lt;/b&gt;An element can be deleted from a specific index in the array.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Searching for an element:&lt;/b&gt; The array can be searched for a specific element.&lt;/p&gt;&lt;p&gt;Arrays have a fixed size, which means that once an array is created, its size cannot be changed. If additional elements need to be added to the array, a new array must be created with a larger size and the existing elements copied over.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;u&gt;Applications of Arrays:&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Arrays have a wide range of applications in computer programming. Here are some common applications of arrays:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Storing and accessing collections of data: One of the most common applications of arrays is to store and access collections of data. Arrays provide a fast and efficient way to access individual elements in the collection.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Sorting and searching: Arrays are frequently used in sorting and searching algorithms. For example, many sorting algorithms such as quicksort, mergesort, and heapsort use arrays as the underlying data structure.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Matrices and tables: Two-dimensional arrays are often used to represent matrices and tables. This is particularly useful in scientific and engineering applications, where matrices are commonly used to represent systems of linear equations.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Image processing: Arrays are also used in image processing applications. Images can be represented as arrays of pixels, with each pixel represented by a value that corresponds to its color.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Dynamic programming: Dynamic programming algorithms often use arrays to store intermediate results. This is particularly useful in problems where subproblems must be solved and their results combined to solve the overall problem.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Audio processing: Arrays can be used to represent audio signals. The elements of the array correspond to the values of the audio signal at each point in time.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Graphs and networks: Arrays are used to represent graphs and networks. Each element of the array corresponds to a node in the graph, and the values in the array indicate the connections between nodes.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;These are just a few examples of the many applications of arrays in computer programming. Arrays are a fundamental data structure that is used in many different types of algorithms and applications.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;u&gt;PYTHON PROGRAM TO IMPLEMENT INSERTION AND DELETION OPERATIONS ON ARRAY&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;Insertion Code:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;arr=[]&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;n=int (input(&quot;how many elements you want?&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elt=int(input(&quot;Enter element:&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arr.append(elt)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(&quot;------intitial arrays-------&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(&quot;array[&quot;,i,&quot;]&quot;,arr[i])&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;pos=int(input(&quot;Enter position u want to add:&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;val=int(input(&quot;Enter element to be added:&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;j=n&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;arr.append(0)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;n=n+1&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;while(j&amp;gt;pos):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arr[j]=arr[j-1]&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j=j-1&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;arr[pos]=val&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(&quot;-------arrays after insertion------&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(&quot;array[&quot;,i,&quot;]&quot;,arr[i])&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuJ7JBrYZY3fMY4eodR9CQngbWan-9E66o_PXI6aBX9v0SdS9NmH8ElQk-m8dih8RWWLVi7n1rXE3bQLF7FxuhyYe1pe2UYN6g7-SiTYAtBahCHrNEalO9IdHNVKZPztC31uIGpA9g2NF0iOwSNcCTdY-GlESEaygXeDP5RamLIl08S_UFJa3NFiM4hQ/s558/arr1.png&quot; imageanchor=&quot;1&quot; style=&quot;font-weight: 700; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;547&quot; data-original-width=&quot;558&quot; height=&quot;314&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuJ7JBrYZY3fMY4eodR9CQngbWan-9E66o_PXI6aBX9v0SdS9NmH8ElQk-m8dih8RWWLVi7n1rXE3bQLF7FxuhyYe1pe2UYN6g7-SiTYAtBahCHrNEalO9IdHNVKZPztC31uIGpA9g2NF0iOwSNcCTdY-GlESEaygXeDP5RamLIl08S_UFJa3NFiM4hQ/s320/arr1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;Deletion Code:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;arr=[]&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;n=int (input(&quot;how many elements you want?&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elt=int(input(&quot;Enter element:&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arr.append(elt)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(&quot;------intitial arrays-------&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(&quot;array[&quot;,i,&quot;]&quot;,arr[i])&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;pos=int(input(&quot;Enter position u want to delete:&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;j=pos&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;while(j&amp;lt;pos):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arr[j-1]=arr[j]&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j=j-1&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;n=n-1&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(&quot;-------arrays after deletion------&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10.0000pt; mso-layout-grid-align: none; mso-pagination: none; mso-para-margin-bottom: 0.0000gd; mso-para-margin-top: 0.0000gd; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print(&quot;array[&quot;,i,&quot;]&quot;,arr[i])&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; line-height: 114%; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11.0000pt; mso-ansi-font-weight: bold; mso-fareast-font-family: &#39;Times New Roman&#39;; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipC66aAt9bpErZTiFrPwNQeYOlMOus7PrwTOIxSc9Vf3TTJwEsnNfnqcRh55WZLgm6wLDPoMs1QAW4c9Xkf4ePHy9R1_c37JK8g_KQehQBou7GQ7tb_azx5KdJTCkGNMyX5f6gv0lD4lxrqFB5H4v7xg811dxsa_xrICITtpGGA5KIE4FrNOCyLUdFxQ/s550/arr2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;316&quot; data-original-width=&quot;550&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipC66aAt9bpErZTiFrPwNQeYOlMOus7PrwTOIxSc9Vf3TTJwEsnNfnqcRh55WZLgm6wLDPoMs1QAW4c9Xkf4ePHy9R1_c37JK8g_KQehQBou7GQ7tb_azx5KdJTCkGNMyX5f6gv0lD4lxrqFB5H4v7xg811dxsa_xrICITtpGGA5KIE4FrNOCyLUdFxQ/s320/arr2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/72821805795793947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/arrays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/72821805795793947'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/72821805795793947'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/arrays.html' title='Arrays'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNyPfBV1LLHGsrsqOnayfosUxgO87zFRmE755CH02WfrfwfJ9fK3ghggthxi8NNPQeiXLz0hUaGxlSGgYXZbw7JoNqvZ11lQLTFiXhFNTGuoXvVt_Sazo8nQsdk3rBbOye0bom7b3uTaqQRO0uGJ9A8Vvlieo77Fz1qmy9s3CpWby335YSq73IDm-2PQ/s72-c/What%20is%20in%20array.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-5332793239704265143</id><published>2023-04-09T20:48:00.002+05:30</published><updated>2023-04-09T20:48:41.035+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DS"/><category scheme="http://www.blogger.com/atom/ns#" term="Stack"/><title type='text'>Stack</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;What is Stack Data Structure?&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht6rXdCH3f8dbC3-_TmtYe7SEKjCITKJPdsfhJiCcysSDnyp12_3vNRYLP0PRweMp3TeXNyhKejFBEHxVGnBKEDidlHSPwdg3v6eioKDiheCkWdB0_1pwnpYUUOOfbRWGGm1WeVH1JxYAnQEbfhDQGyRreqMt7h2RcAC2G7_lm9aGb423LqM8CBepsaQ/s612/istockphoto-157482029-612x612.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;522&quot; data-original-width=&quot;612&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht6rXdCH3f8dbC3-_TmtYe7SEKjCITKJPdsfhJiCcysSDnyp12_3vNRYLP0PRweMp3TeXNyhKejFBEHxVGnBKEDidlHSPwdg3v6eioKDiheCkWdB0_1pwnpYUUOOfbRWGGm1WeVH1JxYAnQEbfhDQGyRreqMt7h2RcAC2G7_lm9aGb423LqM8CBepsaQ/w200-h171/istockphoto-157482029-612x612.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;In computer science, a stack is a linear data structure that allows data to be added and removed in a specific order. It is based on the principle of Last-In-First-Out (LIFO), which means that the last element added to the stack is the first one to be removed.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A stack can be visualized as a collection of items that are piled up on top of each other. The item that is added last is placed on top of the stack, while the item that is added first is at the bottom of the stack.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;The main operations that can be performed on a stack are:&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Push: &lt;/b&gt;Adds an item to the top of the stack.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Pop:&lt;/b&gt; Removes the item from the top of the stack.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Peek:&lt;/b&gt; Returns the item at the top of the stack without removing it.&lt;/p&gt;&lt;p&gt;&lt;b&gt;IsEmpty:&lt;/b&gt; Returns true if the stack is empty, false otherwise.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikfXoy6lhXUfYDArah3Mf_lbUxH3aMWC_ewEvMeURerxrUzQwo7RMC9e7d8ZrxsUj0Zoj6pD36uUcCpSgkZkXuMwBdJHeocSXa5QEhdliGv0vlAhhcK7E4V1FqTxvAZQHLgK6lfTL0X2iK9J4odDAIOSkiCyl59Ot6i2u2CF4li3-WgIpDBO24_Len8Q/s473/1_r4Bfo3rrFprzFM2zbgzZXA.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;257&quot; data-original-width=&quot;473&quot; height=&quot;174&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikfXoy6lhXUfYDArah3Mf_lbUxH3aMWC_ewEvMeURerxrUzQwo7RMC9e7d8ZrxsUj0Zoj6pD36uUcCpSgkZkXuMwBdJHeocSXa5QEhdliGv0vlAhhcK7E4V1FqTxvAZQHLgK6lfTL0X2iK9J4odDAIOSkiCyl59Ot6i2u2CF4li3-WgIpDBO24_Len8Q/s320/1_r4Bfo3rrFprzFM2zbgzZXA.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Stacks are commonly used in programming for various applications, such as managing function calls, expression evaluation, undo/redo functionality, and more.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Implementation of Stack in Python:&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-bottom: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;CODE:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; line-height: 114%; mso-ansi-font-weight: bold; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;class Stack:&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def __init__(self):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;self.items=[]&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def isEmpty(self):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self.items==[]&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def push(self,item):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;self.items.append(item)&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def pop(self):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self.items.pop()&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def peek(self):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self.items[len(self.items)-1]&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def size(self):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self.items&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def getelements(self):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self.items&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;s= Stack()&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;n= int(input(&quot;How many elements youn want?&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;for i in range(n):&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elt=input(&quot;Enter element:&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;s.push(elt)&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(s.getelements())&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(s.isEmpty())&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(s.pop())&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(s.size())&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;print(s.peek())&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-ansi-font-weight: bold; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;OUTPUT:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana; font-size: 11.0000pt; mso-ansi-font-weight: bold; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK0S7Z-aDrvzmPz9RxQG_T32VngI_YsV1ovWC-Bk5Oz8Aw4RwVGIhqsIxKig8xU0_YPDtXep61rFJv4tU-giEknuTBzSh3SyvxJ8ucQ_27urOHebHiy2X8ngdft7B4v1tWmOy19sXk0hVrVmKazgc0MpwGUTOivCFnPSRy4kY-fCf0CIJATqhEYFWyMA/s8519/dot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4232&quot; data-original-width=&quot;8519&quot; height=&quot;159&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK0S7Z-aDrvzmPz9RxQG_T32VngI_YsV1ovWC-Bk5Oz8Aw4RwVGIhqsIxKig8xU0_YPDtXep61rFJv4tU-giEknuTBzSh3SyvxJ8ucQ_27urOHebHiy2X8ngdft7B4v1tWmOy19sXk0hVrVmKazgc0MpwGUTOivCFnPSRy4kY-fCf0CIJATqhEYFWyMA/s320/dot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/5332793239704265143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/stack.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/5332793239704265143'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/5332793239704265143'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/stack.html' title='Stack'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht6rXdCH3f8dbC3-_TmtYe7SEKjCITKJPdsfhJiCcysSDnyp12_3vNRYLP0PRweMp3TeXNyhKejFBEHxVGnBKEDidlHSPwdg3v6eioKDiheCkWdB0_1pwnpYUUOOfbRWGGm1WeVH1JxYAnQEbfhDQGyRreqMt7h2RcAC2G7_lm9aGb423LqM8CBepsaQ/s72-w200-h171-c/istockphoto-157482029-612x612.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-3820887246502088939</id><published>2023-04-08T21:02:00.001+05:30</published><updated>2023-04-08T21:07:42.058+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="binary search"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><title type='text'>Binary Search</title><content type='html'>&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;What is&amp;nbsp;Binary Search?&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCBovs7lhlCgaNLjM-TWrbBSzAtAMQxhbvmes6WUjqHdhgiwYzKdU2V4J_qNwoVMR63DOj6SbdsVmip5P7pdqIVvP_ytWu0-7gox67zdw4nUCg2j1qY0l2qoJV2AdMlkj9OUI56-zj4Z8AaHZsSx5GuFkyWzOP7PdHwe4pJuoCnpsnIscRDk69LdFXw/s311/download.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;162&quot; data-original-width=&quot;311&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCBovs7lhlCgaNLjM-TWrbBSzAtAMQxhbvmes6WUjqHdhgiwYzKdU2V4J_qNwoVMR63DOj6SbdsVmip5P7pdqIVvP_ytWu0-7gox67zdw4nUCg2j1qY0l2qoJV2AdMlkj9OUI56-zj4Z8AaHZsSx5GuFkyWzOP7PdHwe4pJuoCnpsnIscRDk69LdFXw/s1600/download.png&quot; width=&quot;311&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Binary search is a search algorithm used to find the position of a target value within a sorted array. The algorithm works by repeatedly dividing the array in half and eliminating the half of the array that cannot contain the target element until the target element is found or the search ends with an empty subarray.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here are the steps of the binary search algorithm:&lt;/p&gt;&lt;p&gt;Define the search range: Initialize two pointers, low and high, to the start and end of the array, respectively.&lt;/p&gt;&lt;p&gt;Find the middle element: Calculate the middle index of the array as the average of the low and high pointers.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Compare the target element with the middle element: If the target element matches the middle element, return the index of the middle element. If the target element is less than the middle element, discard the upper half of the array and repeat the search on the lower half. If the target element is greater than the middle element, discard the lower half of the array and repeat the search on the upper half.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Repeat steps 2-3 until the target element is found or the search range is empty.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is an example of the binary search algorithm in action:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Suppose we have the following sorted array:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;[2, 5, 7, 8, 12, 16, 21, 23, 27, 31]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;We want to find the position of the element 16.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Define the search range: low=0, high=9.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Find the middle element: middle=4 (integer division of (low+high)/2).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Compare the target element with the middle element: 16&amp;gt;12, discard the lower half of the array [2, 5, 7, 8, 12].&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Define the new search range: low=middle+1=5, high=9.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Find the middle element: middle=7.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Compare the target element with the middle element: 16&amp;gt;23, discard the upper half of the array [21, 23, 27, 31].&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Define the new search range: low=5, high=6.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Find the middle element: middle=5.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Compare the target element with the middle element: 16=16, return the index 5.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The binary search algorithm has a time complexity of O(log n) since the search range is divided in half at each step. This makes it a very efficient algorithm for large arrays compared to linear search, which has a time complexity of O(n). However, binary search requires a sorted array as input, which can be an additional cost if the array is not already sorted.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Binary Search implementation in python&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Here&#39;s an implementation of binary search in Python:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;def binary_search(arr, target):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; low = 0&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; high = len(arr) - 1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; while low &amp;lt;= high:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mid = (low + high) // 2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if arr[mid] == target:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return mid&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elif arr[mid] &amp;lt; target:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; low = mid + 1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; high = mid - 1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; return -1&amp;nbsp; # Target not found&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;arr = [2, 5, 7, 8, 12, 16, 21, 23, 27, 31]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;target = 16&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;print(binary_search(arr, target))&amp;nbsp; # Output: 5&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/3820887246502088939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/binary-search.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/3820887246502088939'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/3820887246502088939'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/binary-search.html' title='Binary Search'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglCBovs7lhlCgaNLjM-TWrbBSzAtAMQxhbvmes6WUjqHdhgiwYzKdU2V4J_qNwoVMR63DOj6SbdsVmip5P7pdqIVvP_ytWu0-7gox67zdw4nUCg2j1qY0l2qoJV2AdMlkj9OUI56-zj4Z8AaHZsSx5GuFkyWzOP7PdHwe4pJuoCnpsnIscRDk69LdFXw/s72-c/download.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-5814614058252998931</id><published>2023-04-08T20:56:00.001+05:30</published><updated>2023-04-08T21:08:27.841+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DS"/><category scheme="http://www.blogger.com/atom/ns#" term="searching techniques"/><title type='text'>Searching Techniques </title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;Searching Techniques&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdz8LWeZz0fbKqPIoJcK0WR0om7X7nCiDwhJbhxnAWzlWTPGQB_f1bdtfMXaNqmoCFrgtZYzcTB2nzVy0aY-TVFsYRtNRTOVr8F-oZykuJMIxOhC4abNL6vERJm14hrONf9Xpwv5jN-ARGfSvkUIbbeIXXgrWKwRk3m4ulgEmQUxADiAx0Jf14UC7kKw/s300/download.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;168&quot; data-original-width=&quot;300&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdz8LWeZz0fbKqPIoJcK0WR0om7X7nCiDwhJbhxnAWzlWTPGQB_f1bdtfMXaNqmoCFrgtZYzcTB2nzVy0aY-TVFsYRtNRTOVr8F-oZykuJMIxOhC4abNL6vERJm14hrONf9Xpwv5jN-ARGfSvkUIbbeIXXgrWKwRk3m4ulgEmQUxADiAx0Jf14UC7kKw/s1600/download.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Searchin&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;g is a fundamental operation in data structures and algorithms. It involves finding the location of a particular element in a data structure, such as an array, a linked list, a tree, or a hash table. Different data structures may require different searching techniques, depending on the structure of the data and the requirements of the problem.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Here are some commonly used searching techniques in data structures:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;1.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Linear search: &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;Also known as sequential search, this technique involves examining each element of the data structure one by one until the target element is found. It is a simple and easy-to-implement algorithm, but it can be slow for large datasets.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Binary search:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;This technique is used for sorted arrays and requires dividing the array into two halves repeatedly until the target element is found. It has a time complexity of O(log n), which is much faster than linear search.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Hashing:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;This technique involves using a hash function to map the key of the element to a specific index in a hash table. The element can then be searched for in constant time, O(1), on average. However, collisions can occur if two or more elements map to the same index, which requires resolving the collision.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;4.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Depth-first search (DFS):&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;This technique is used for searching through a graph or a tree data structure. It involves traversing each branch of the structure as far as possible before backtracking and trying the next branch. It can be implemented recursively or iteratively.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;5.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Breadth-first search (BFS): &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;This technique is also used for searching through a graph or a tree data structure. It involves visiting all the nodes at the same level before moving on to the next level. It can also be implemented recursively or iteratively.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;6.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Interpolation search: &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;This technique is used for uniformly distributed sorted arrays. It involves using an interpolation formula to estimate the position of the target element based on its value and the values of the endpoints of the array. It has a time complexity of O(log log n) in the best case and O(n) in the worst case.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 21.2500pt; mso-char-indent-count: 0.0000; mso-list: l0 level1 lfo1; mso-para-margin-left: 0.0000gd; text-indent: -21.2500pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold; text-decoration-line: underline;&quot;&gt;7.&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Exponential search: &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;This technique is used for unbounded or unknown size arrays. It involves finding a range that the target element might be in, doubling the range size until the target element is within that range, and then performing a binary search within the range. It has a time complexity of O(log n).&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;These are some of the most commonly used searching techniques in data structures. Choosing the right technique depends on the structure of the data and the requirements of the problem.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12.0000pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: SimSun; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/5814614058252998931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/searching-techniques.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/5814614058252998931'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/5814614058252998931'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/searching-techniques.html' title='Searching Techniques '/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdz8LWeZz0fbKqPIoJcK0WR0om7X7nCiDwhJbhxnAWzlWTPGQB_f1bdtfMXaNqmoCFrgtZYzcTB2nzVy0aY-TVFsYRtNRTOVr8F-oZykuJMIxOhC4abNL6vERJm14hrONf9Xpwv5jN-ARGfSvkUIbbeIXXgrWKwRk3m4ulgEmQUxADiAx0Jf14UC7kKw/s72-c/download.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-8589772898458290626</id><published>2023-04-08T20:44:00.004+05:30</published><updated>2023-04-09T20:38:09.960+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="EMOTION DETECTION"/><category scheme="http://www.blogger.com/atom/ns#" term="NLP"/><title type='text'>EMOTION DETECTION USING TEXT &amp; FACE</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&amp;nbsp;EMOTION DETECTION USING TEXT &amp;amp; FACE&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOIgWDe7rAJgwFrRp0TtEQxWSq9_ZYJQ8aEv-UwN-uOgcKZCBXETFkxDdu36CI8-E-BEdj1mzYZSXVB5SqEmdD3-JLhc1pv82cfE1VJxyKPLDE652bUsp-IQg5ryy_MHD-sWD_q5THPZfgakbDyqG05Fjd4KYHoC5v6JurWtCgYNdugiXyY6XRiUj-A/s246/happyboy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOIgWDe7rAJgwFrRp0TtEQxWSq9_ZYJQ8aEv-UwN-uOgcKZCBXETFkxDdu36CI8-E-BEdj1mzYZSXVB5SqEmdD3-JLhc1pv82cfE1VJxyKPLDE652bUsp-IQg5ryy_MHD-sWD_q5THPZfgakbDyqG05Fjd4KYHoC5v6JurWtCgYNdugiXyY6XRiUj-A/s246/happyboy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;180&quot; data-original-width=&quot;246&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOIgWDe7rAJgwFrRp0TtEQxWSq9_ZYJQ8aEv-UwN-uOgcKZCBXETFkxDdu36CI8-E-BEdj1mzYZSXVB5SqEmdD3-JLhc1pv82cfE1VJxyKPLDE652bUsp-IQg5ryy_MHD-sWD_q5THPZfgakbDyqG05Fjd4KYHoC5v6JurWtCgYNdugiXyY6XRiUj-A/s1600/happyboy.jpg&quot; width=&quot;246&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;Section0&quot;&gt;&lt;div class=&quot;Section0&quot;&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-top: 0.1000pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; text-align: justify; text-indent: 3.45pt;&quot;&gt;&lt;a href=&quot;https://www.textrics.ai/solutions/emotion-detection&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Emotional Detection &lt;/span&gt;&lt;/a&gt;as a process of identifying human emotion from any form of written text.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify; text-indent: 3.35pt;&quot;&gt;Due to the advanced use of NLP, machine learning, and computational linguistics for extracting emotion and satisfaction relevance in text analysis, this tool has become a prevalent topic for research studies.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72.0000pt; margin-right: 80.3000pt; margin-top: 8.0000pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;While&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;Sentiment&lt;span style=&quot;letter-spacing: -0.95pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;Analysis&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;(link)&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;seeks&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;to&lt;span style=&quot;letter-spacing: -0.2pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;obtain&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;a&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;polarity&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;from&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;the&lt;span style=&quot;letter-spacing: -0.2pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;text,&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;that&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;is,&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;to gauge if a sentiment expressed is positive, negative, or neutral, Emotion Analysis takes it a step&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;letter-spacing: -0.15pt;&quot;&gt;further.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72.0000pt; margin-right: 107.5000pt; margin-top: 8.0000pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;It&lt;span style=&quot;letter-spacing: -0.3pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;provides&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;us&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;an&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;insight&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;into&lt;span style=&quot;letter-spacing: -0.3pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;the&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;underlying&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;reasons&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;for&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;the&lt;span style=&quot;letter-spacing: -0.25pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;sentiment&lt;span style=&quot;letter-spacing: -0.3pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;output: &lt;span style=&quot;letter-spacing: -0.2pt;&quot;&gt;happy, &lt;/span&gt;sad, &lt;span style=&quot;letter-spacing: -0.2pt;&quot;&gt;angry, &lt;/span&gt;confusion, &lt;span style=&quot;letter-spacing: -0.15pt;&quot;&gt;curiosity, &lt;/span&gt;and so&lt;span style=&quot;letter-spacing: 0.1pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72.0000pt; margin-top: 8.0000pt; text-align: justify; text-justify: inter-ideograph;&quot;&gt;For example, here are three sentences:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.4pt 0pt 0pt 108pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;●&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;I want to return this product, maybe order a&lt;span style=&quot;letter-spacing: -0.75pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;replacement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 2.45pt 0pt 0pt 108pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;●&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;This is not a friendly&lt;span style=&quot;letter-spacing: -0.3pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;product.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 2.4pt 0pt 0pt 108pt; text-align: justify; text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;●&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;I hate this product; not useful at&lt;span style=&quot;letter-spacing: -0.45pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;all.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 10.45pt; text-align: justify;&quot;&gt;Although all three sentences deliver us with the same sentiment, which is negative, when we examine the emotion behind each sentence, it is quite different.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify; text-indent: 3.45pt;&quot;&gt;According to this, the approach to customer service would also be very different and should be handled by marketers and client support teams in distinct ways.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-top: 0.1pt; text-align: justify;&quot;&gt;
&lt;/p&gt;&lt;div class=&quot;Section1&quot;&gt;&lt;h2 style=&quot;margin-left: 75.95pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;What is the significance of using Emotion Analysis?&lt;/b&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 73.05pt; margin-top: 9.8pt; text-align: justify;&quot;&gt;During interactions over digital media, emotions become a significant component in the communication between people of different cultural languages.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Generally, we can divide emotions into six types which are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;h3 style=&quot;margin-left: 72pt; margin-top: 10.45pt; text-align: justify; text-indent: 0pt;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;joy, surprise, love, anger, sadness, and fear.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 10.4pt; text-align: justify; text-indent: 0pt;&quot;&gt;&lt;span style=&quot;line-height: 114%;&quot;&gt;In the context of written text, emotions may be &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;line-height: 114%;&quot;&gt;expressed by a single word&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 114%;&quot;&gt;, for example,&lt;/span&gt;&lt;span style=&quot;line-height: 114%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 8pt 0pt 0pt 80.15pt; text-align: justify; text-indent: -8.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;-&amp;nbsp;&lt;!--[endif]--&gt;Great.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.4pt 0pt 0pt 80.15pt; text-align: justify; text-indent: -8.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;-&amp;nbsp;&lt;!--[endif]--&gt;Nope.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.45pt 0pt 0pt 80.15pt; text-align: justify; text-indent: -8.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;-&amp;nbsp;&lt;!--[endif]--&gt;Recommend.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 72pt; margin-right: 0pt; margin-top: 10.4pt; text-align: justify; text-indent: 0pt;&quot;&gt;Or it can be a &lt;b&gt;group of words&lt;/b&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.4pt 0pt 0pt 79.9pt; text-align: justify; text-indent: -7.95pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;-&amp;nbsp;&lt;!--[endif]--&gt;This is&lt;span style=&quot;letter-spacing: -0.15pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;great!&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.45pt 0pt 0pt 80.15pt; text-align: justify; text-indent: -8.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;-&amp;nbsp;&lt;!--[endif]--&gt;Nope, won’t buy&lt;span style=&quot;letter-spacing: -0.2pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;again!&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.4pt 0pt 0pt 80.15pt; text-align: justify; text-indent: -8.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;-&amp;nbsp;&lt;!--[endif]--&gt;Definitely recommend this&lt;span style=&quot;letter-spacing: -0.2pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;product!&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 10.4pt; text-align: justify;&quot;&gt;Thus, phrase- and sentence-level emotion analysis methods play a vital role in tracking emotions or questing the indications for recognizing emotions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 75.45pt; margin-top: 8pt; text-align: justify;&quot;&gt;A document always consists of sentences that have words or phrases.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 10.4pt; text-align: justify;&quot;&gt;The detection of emotions from word level, phrase level, and document level is very complex.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify;&quot;&gt;But at the same time, it is highly crucial for an accurate simulation of customer behavior.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify;&quot;&gt;The fast-flowing internet services have facilitated increased online communication and written content over the websites.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 73.05pt; margin-top: 8pt; text-align: justify;&quot;&gt;That has led to the flow of large amounts of online content rich in user opinions and varies across digital platforms.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify;&quot;&gt;The exchange of emotions through plain text, messages, tweet posts, comments, etc.,&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 3pt; text-align: justify;&quot;&gt;Emotion Detection will play a promising role in the field of Artificial Intelligence, especially in the case of Human-Machine Interface development.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify;&quot;&gt;For Emotion Detection from an artificial intelligence, different parameters should be taken into consideration.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 8pt; text-align: justify;&quot;&gt;Various types of techniques are used to detect emotions from a human being like facial expressions, body movements, blood pressure, heart beat and textual information.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 165%; margin-left: 72pt; margin-right: 118.15pt; margin-top: 8pt; text-align: justify;&quot;&gt;This paper focuses on the emotion detection from textual information There are four basic methods to detect emotions from text:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;line-height: 16pt; margin: 0pt 0pt 0pt 87.15pt; text-align: justify; text-indent: -15.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;letter-spacing: -0.05pt;&quot;&gt;1)&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;Keyword based&lt;span style=&quot;letter-spacing: -1.05pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;detection,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.4pt 0pt 0pt 87.15pt; text-align: justify; text-indent: -15.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;letter-spacing: -0.05pt;&quot;&gt;2)&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;Learning-based&lt;span style=&quot;letter-spacing: -1.15pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;detection,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.4pt 0pt 0pt 87.15pt; text-align: justify; text-indent: -15.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;letter-spacing: -0.05pt;&quot;&gt;3)&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;Lexical affinity&lt;span style=&quot;letter-spacing: -0.15pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;method,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;16&quot; style=&quot;margin: 10.45pt 0pt 0pt 87.15pt; text-align: justify; text-indent: -15.2pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=&quot;letter-spacing: -0.05pt;&quot;&gt;4)&amp;nbsp;&lt;/span&gt;&lt;!--[endif]--&gt;Hybrid&lt;span style=&quot;letter-spacing: -0.1pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;detection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 71.4pt; margin-top: 10.4pt; text-align: justify;&quot;&gt;Each and every method contains some strong and weak points while detecting emotions from text.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;line-height: 114%; margin-left: 72pt; margin-right: 99.8pt; margin-top: 8pt; text-align: justify;&quot;&gt;Hybrid Method is the most likely method to get a high accuracy result, as it includes the combined strength of two or more methods.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;The main difficulty is to find the most effective combination.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;&lt;b&gt;Tools we need :-&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Anaconda :&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Packages of multiple libraries and IDEs IDEs&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Jupyter notebook VSCode&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Install these libraries (we need to install after anaconda being installed)&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;1)Package NRCLex (lexicon-based methods) NRC = National Research Canada&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Pip install NRCLex&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;2)DeepFace (for deep learning models implementation) - Pre-trained models&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Pip install deepface 3)Opencv&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Pip install opencv-python&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;&lt;b&gt;Examples or Applications&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;There are four basic methods to detect emotions fromtext:&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;1)Keyword- based detection,&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;2)learning-based detection,&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;3)lexical affinity method,hybrid detection.&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;Each and every method contains some strong and weak points while detecting emotions from text.&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;It uses facial expressions to identify parts of an image or video to determine age, gender and emotions.&lt;/p&gt;&lt;p class=&quot;MsoBodyText&quot; style=&quot;margin-left: 72pt; margin-top: 8pt; text-align: justify;&quot;&gt;This technology can be applied to fields like security, biometrics, law enforcement, etc., for tracking and surveillance purposes.&lt;/p&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;br clear=&quot;all&quot; style=&quot;page-break-before: always;&quot; /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/8589772898458290626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/emotion-detection-using-text-face.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/8589772898458290626'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/8589772898458290626'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/emotion-detection-using-text-face.html' title='EMOTION DETECTION USING TEXT &amp; FACE'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOIgWDe7rAJgwFrRp0TtEQxWSq9_ZYJQ8aEv-UwN-uOgcKZCBXETFkxDdu36CI8-E-BEdj1mzYZSXVB5SqEmdD3-JLhc1pv82cfE1VJxyKPLDE652bUsp-IQg5ryy_MHD-sWD_q5THPZfgakbDyqG05Fjd4KYHoC5v6JurWtCgYNdugiXyY6XRiUj-A/s72-c/happyboy.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-6380660064776766590</id><published>2023-04-08T20:14:00.007+05:30</published><updated>2023-04-08T20:23:07.973+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NLP"/><category scheme="http://www.blogger.com/atom/ns#" term="NLP Project Ideas"/><title type='text'>NLP Project Ideas</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrUIn9m-Wedp3O5V4Vdq6b1bKBMmqZd08hgiT3BSILp8lzEbTjFyktWawUE2em_Xb1vYLRURW8ewRjdG7uoL6vseMpkx3pUPM86NZ9fMqT_-VvYNLZAh6ZVluo4iHK2yXB-MpeEiNc5FajHkbfDxUt_VzT0yWQZIOJWIPZxH8qU2kquexdZmr2yoijPg/s2560/NLP-image-scaled.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1707&quot; data-original-width=&quot;2560&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrUIn9m-Wedp3O5V4Vdq6b1bKBMmqZd08hgiT3BSILp8lzEbTjFyktWawUE2em_Xb1vYLRURW8ewRjdG7uoL6vseMpkx3pUPM86NZ9fMqT_-VvYNLZAh6ZVluo4iHK2yXB-MpeEiNc5FajHkbfDxUt_VzT0yWQZIOJWIPZxH8qU2kquexdZmr2yoijPg/s320/NLP-image-scaled.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&amp;nbsp;NLP Project Ideas&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;NLP stands for &lt;b&gt;Natural Language Processing&lt;/b&gt;. It is a subfield of artificial intelligence (AI) and linguistics that focuses on the interaction between computers and human language.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;In other words, NLP involves teaching computers to understand, interpret, and generate human language. This includes tasks such as text classification, sentiment analysis, machine translation, speech recognition, and more.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;NLP algorithms use a combination of machine learning, deep learning, and statistical techniques to analyze and understand natural language data. The goal of NLP is to enable computers to understand human language in a way that allows them to perform tasks such as responding to spoken commands, generating text, or translating between languages.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;NLP has a wide range of applications, from chatbots and virtual assistants to sentiment analysis for customer feedback and automated translation for international communication.&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;Full Video Playlist for NLP Projects :&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLSDyGb_vtanzPbQUpY_CQJipMGEUEmGD6&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;NLP Projects&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: bold;&quot;&gt;&lt;br style=&quot;text-align: left;&quot; /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Here are some NLP project ideas:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;1. Sentiment analysis of customer reviews:&lt;/u&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Build a model that can analyze customer reviews of a product or service and determine the sentiment expressed in the text. This could be used by companies to monitor their reputation and make improvements based on customer feedback.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Similar Project Video&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/TNdEOEjeo8I&quot; width=&quot;320&quot; youtube-src-id=&quot;TNdEOEjeo8I&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;2. Named entity recognition for legal documents:&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Develop a model that can automatically identify and extract relevant entities from legal documents, such as names of parties, case numbers, and legal citations. This could save time for lawyers and improve the accuracy of legal research.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/Nx0vQ-EYutQ&quot; width=&quot;320&quot; youtube-src-id=&quot;Nx0vQ-EYutQ&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;3. Text classification for news articles:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&amp;nbsp;Build a model that can classify news articles into different categories, such as politics, sports, entertainment, and business. This could be used by news organizations to automatically categorize and tag their articles, making it easier for readers to find content of interest.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Video Link of the similar project:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/f06lx78NzxU&quot; width=&quot;320&quot; youtube-src-id=&quot;f06lx78NzxU&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;4. Question answering for medical texts:&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Develop a system that can answer questions about medical texts, such as clinical guidelines or medical journal articles. This could be used by healthcare professionals to quickly find answers to specific questions and stay up-to-date with the latest research.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;5. Automatic summarization of scientific papers:&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Build a model that can automatically generate a summary of a scientific paper, highlighting the key findings and conclusions. This could save researchers time by allowing them to quickly identify relevant papers and focus on the most important information.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;6. Emotion detection in social media posts:&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Develop a model that can detect the emotions expressed in social media posts, such as joy, anger, sadness, or fear. This could be used by marketers to monitor brand sentiment and identify potential issues before they become major problems.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;7. Machine translation for low-resource languages:&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Build a model that can translate between two low-resource languages, where training data is limited. This could help improve communication and access to information for people who speak these languages.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;8. Fake news detection:&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;Develop a model that can automatically detect fake news articles, based on linguistic features and other characteristics. This could be used by news organizations and social media platforms to help prevent the spread of misinformation.&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;b&gt;9. &lt;u&gt;Language Translator:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/fZBCmyHAynk&quot; width=&quot;320&quot; youtube-src-id=&quot;fZBCmyHAynk&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large;&quot;&gt;These are just a few examples of NLP project ideas. Depending on your interests and expertise, there are many other directions you could take your NLP project.&lt;/div&gt;&lt;div style=&quot;font-size: large; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: large; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/6380660064776766590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/nlp-project-ideas.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/6380660064776766590'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/6380660064776766590'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/nlp-project-ideas.html' title='NLP Project Ideas'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrUIn9m-Wedp3O5V4Vdq6b1bKBMmqZd08hgiT3BSILp8lzEbTjFyktWawUE2em_Xb1vYLRURW8ewRjdG7uoL6vseMpkx3pUPM86NZ9fMqT_-VvYNLZAh6ZVluo4iHK2yXB-MpeEiNc5FajHkbfDxUt_VzT0yWQZIOJWIPZxH8qU2kquexdZmr2yoijPg/s72-c/NLP-image-scaled.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4777137970176756708.post-6542627644152944716</id><published>2023-04-08T20:00:00.005+05:30</published><updated>2023-06-23T00:25:32.406+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NLP"/><category scheme="http://www.blogger.com/atom/ns#" term="twitter sentiment analysis"/><title type='text'>Twitter Hashtag Sentiment Analysis</title><content type='html'>&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 36pt;&quot;&gt;Twitter Hashtag Sentiment Analysis&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2SuTNlv7ElbS8KB49wOU7Lsn9R3jwHUjpIKJhNVJXValnTDzSrJMi9IYnYqtWpOSCHSHIGtQOLgeOK-hO8lkQcAqprsMIn1zykUDALitemsFKo3KyTa6AihcyG26l2MKCDpJJc0DM3sDMhlIJj60Ly--CTO6iAQlHkB7kQgNcU7MricvgKjoy2lVmIw/s1280/maxresdefault.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2SuTNlv7ElbS8KB49wOU7Lsn9R3jwHUjpIKJhNVJXValnTDzSrJMi9IYnYqtWpOSCHSHIGtQOLgeOK-hO8lkQcAqprsMIn1zykUDALitemsFKo3KyTa6AihcyG26l2MKCDpJJc0DM3sDMhlIJj60Ly--CTO6iAQlHkB7kQgNcU7MricvgKjoy2lVmIw/w341-h192/maxresdefault.jpg&quot; width=&quot;341&quot; /&gt;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt; text-align: left;&quot;&gt;Twitter is what&#39;s happening and what people are talking about right now. It is a global platform for public self-expression and conversation in real-time. It provides a network that connects users to people, information, ideas, opinions, and news.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;This project provides different functions to analyze tweets and segregate them on the basis of the sentiment of each tweet. We can search for any Twitter hashtag and any number of tweets. Using this we can get an overview of people’s reactions to many topics and events. It can also help Data Analysts for getting information out of a particular hashtag.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;The language used for creating this project in Python.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;&lt;b&gt;Introduction:&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;Sentiment analysis is a natural language processing technique that involves the use of algorithms and machine learning models to identify, extract, and classify subjective information from text, such as opinions, attitudes, emotions, and feelings. It is used to analyze the sentiment or tone of a piece of text, typically by categorizing it as positive, negative, or neutral. &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;Sentiment analysis is commonly used in various applications, including customer feedback analysis, brand reputation management, social media monitoring, political analysis and market research.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;Overall, sentiment analysis is a valuable tool for businesses, researchers, and individuals who want to gain insights into how people feel and think about a particular topic or brand.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;On Twitter, a hashtag is a word or phrase preceded by the hash symbol (#) that is used to identify a specific topic or theme. When a user includes a hashtag in their tweet, it makes it easier for others to discover and join in on the conversation about that topic. Users can click on a hashtag to view all tweets that include that specific hashtag, even if they don&#39;t follow the user who tweeted it.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;Hashtags can also be used to participate in or follow specific events, campaigns, or social movements on Twitter. They can help to increase the reach and visibility of a tweet and make it more likely to be seen by a larger audience.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;Libraries Used:&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;nltk: The Natural Language Toolkit (NLTK) is a platform used for building Python programs that work with human language data for applying in statistical natural language processing (NLP). It contains text processing libraries for tokenization, parsing, classification, stemming, tagging and semantic reasoning.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;snscrape: Snscrape is a scraper for social networking services (SNS). It scrapes things like user profiles, hashtags, or searches and returns the discovered items.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;googletrans: Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;string: String module contains some constants, utility function, and classes for string manipulation.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;re: A Regular Expressions (RegEx) is a special sequence of characters that uses a search pattern to find a string or set of strings.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;wordcloud: Word Cloud is a data visualization technique used for representing text data in which the size of each word indicates its frequency or importance.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;matplotib: Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;tkinter: Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;Code(sentimentAnalysis.py):&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;import snscrape.modules.twitter as sntwitter&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;from googletrans import Translator&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;import string&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;import re&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;from wordcloud import WordCloud&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;import matplotlib.pyplot as plt&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;from nltk.corpus import stopwords&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;from nltk.tokenize import word_tokenize&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;from nltk.sentiment.vader import SentimentIntensityAnalyzer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def stop_word_removal(sent):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stop_words = set(stopwords.words(&quot;english&quot;))&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;word_tokens = word_tokenize(sent)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;swr = [word for word in word_tokens if word.lower() not in stop_words]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;clear = &#39; &#39;.join(swr)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return clear&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# Extracting Tweets and translating them in English&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def orig_tweets(hashtag, num):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tweets = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;translator = Translator()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for tweet in sntwitter.TwitterSearchScraper(hashtag).get_items():&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if len(tweets) == num:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;translated = translator.translate(tweet.rawContent, dest=&quot;en&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tweets.append(translated.text)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return tweets&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# Cleaning the extracted tweets&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def clean_tweets(tweets):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleared = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for i in range(len(tweets)):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sent = tweets[i]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lower_case = sent.lower()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lower_case = stop_word_removal(lower_case)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleaning = lower_case.translate(str.maketrans(&#39;&#39;, &#39;&#39;, string.punctuation))&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleaning = re.sub(r&#39;@[A-Za-z0-9]+&#39;, &#39;&#39;, cleaning)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleaning = re.sub(r&#39;#&#39;, &#39;&#39;, cleaning)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleaning = re.sub(r&#39;RT[\s]+&#39;, &#39;&#39;, cleaning)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleaning = re.sub(r&#39;https?:\/\/\S+&#39;, &#39;&#39;, cleaning)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleared.append(cleaning)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return cleared&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# Performing sentiment analysis on the cleaned Tweets&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def senti(ctweets):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sent_analyzer = SentimentIntensityAnalyzer()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sentimentsList = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for text in ctweets:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;analysis = sent_analyzer.polarity_scores(text)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sentiment = analysis[&quot;compound&quot;]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sentimentsList.append(sentiment)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return sentimentsList&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# Segregating tweets into Positive, Negative and Neutral&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def segregate_tweets(sen, tweets):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;positive = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;posiPol = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;negative = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;negPol = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;neutral = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;neutPol = []&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for i in range(len(sen)):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if sen[i] &amp;gt;= 0.5:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;posiPol.append(sen[i])&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;positive.append(tweets[i])&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elif sen[i] &amp;lt;= -0.5:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;negPol.append(sen[i])&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;negative.append(tweets[i])&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;neutPol.append(sen[i])&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;neutral.append(tweets[i])&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return positive, posiPol, negative, negPol, neutral, neutPol&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# For plotting a bar graph&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def bar_graph(p, ne, n, h):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values = [p, ne, n]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;attributes = [&quot;Positive&quot;, &quot;Neutral&quot;, &quot;Negative&quot;]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.figure(figsize=(10, 5))&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.bar(attributes, values, color=&#39;maroon&#39;, width=0.4)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.title(&quot;Bar Graph of #&quot; + h)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.xlabel(&quot;Emotions&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.ylabel(&quot;Number of Tweets&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.show()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# For plotting a pie chart&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def pie_chart(p, ne, n, h):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values = [p, ne, n]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;attributes = [&quot;Positive&quot;, &quot;Neutral&quot;, &quot;Negative&quot;]&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.title(&quot;Pie distribution of #&quot; + h)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.pie(values, labels=attributes, autopct=&#39;%2.1f%%&#39;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.show()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;# For creating a word cloud&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;def word_cloud(text):&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wordcloud = WordCloud(width=800, height=400, random_state=21, max_font_size=110).generate(text)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.figure(figsize=(10, 5))&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.imshow(wordcloud, interpolation=&quot;bilinear&quot;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.axis(&#39;off&#39;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;plt.show()&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;Code(analysisWindow.py)&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;from tkinter import *&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;from tkinter import messagebox&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;import sentimentAnalysis as sa&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;window = Tk()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;window.title(&quot;Twitter Sentiment Analysis&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;window.geometry(&#39;530x250&#39;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;positive_tweets = []&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;negative_tweets = []&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;neutral_tweets = []&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;all_words = &quot;&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;hashtag_label = Label(window, text=&quot;Enter a Twitter Hashtag&quot;, fg=&quot;blue&quot;, font=(&quot;Arial&quot;, 16))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;hashtag_label.grid(row=0, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;hashtag = Entry(window, background=&quot;white&quot;, fg=&quot;black&quot;, font=(&quot;Arial&quot;, 16))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;hashtag.grid(row=0, column=1, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;num_label = Label(window, text=&quot;Number of Tweets&quot;, fg=&quot;blue&quot;, font=(&quot;Arial&quot;, 16))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;num_label.grid(row=1, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;tweet_num = Entry(window, background=&quot;white&quot;, fg=&quot;black&quot;, font=(&quot;Arial&quot;, 16))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;tweet_num.grid(row=1, column=1, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;def analyzing():&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; try:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; global all_words, positive_tweets, neutral_tweets, negative_tweets&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hash_text = hashtag.get()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num = int(tweet_num.get())&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tweets = sa.orig_tweets(hash_text, num)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cleaned_tweets = sa.clean_tweets(tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all_words = &#39; &#39;.join(cleaned_tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; polarity = sa.senti(cleaned_tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; positive_tweets, positive_polarity, negative_tweets, negative_polarity, neutral_tweets, neutral_polarity = sa.segregate_tweets(polarity, tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sa.bar_graph(len(positive_tweets), len(neutral_tweets), len(negative_tweets), hash_text)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sa.pie_chart(len(positive_tweets), len(neutral_tweets), len(negative_tweets), hash_text)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; except:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; messagebox.showerror(&quot;Error&quot;, &quot;Wrong Input&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;analyze = Button(window, text=&quot;Analyze&quot;, fg=&quot;red&quot;, background=&quot;yellow&quot;, font=(&quot;Arial&quot;, 16), command=analyzing)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;analyze.grid(row=3, column=1, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;def show_tweets():&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; win = Tk()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; win.title(&quot;Tweets&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; win.geometry(&#39;1000x650&#39;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; main_frame = Frame(win)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; main_frame.pack(fill=BOTH, expand=1)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; canvas = Canvas(main_frame)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; canvas.pack(side=LEFT, fill=BOTH, expand=1)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; scbar = Scrollbar(main_frame, orient=VERTICAL, command=canvas.yview)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; scbar.pack(side=RIGHT, fill=Y)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; canvas.configure(yscrollcommand=scbar.set)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; canvas.bind(&#39;&amp;lt;Configure&amp;gt;&#39;, lambda e: canvas.configure(scrollregion=canvas.bbox(&quot;all&quot;)))&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; second_frame = Frame(canvas)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; canvas.create_window((0, 0), window=second_frame, anchor=&quot;nw&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; l1 = &quot;Positive Tweets(&quot; + str(len(positive_tweets)) + &quot;)&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; l2 = &quot;Negative Tweets(&quot; + str(len(negative_tweets)) + &quot;)&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; l3 = &quot;Neutral Tweets(&quot; + str(len(neutral_tweets)) + &quot;)&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; posi_list = &quot;Tweet--&amp;gt; &quot; + &#39;\nTweet--&amp;gt; &#39;.join(positive_tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; neg_list = &quot;Tweet--&amp;gt; &quot; + &#39;\nTweet--&amp;gt; &#39;.join(negative_tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; neu_list = &quot;Tweet--&amp;gt; &quot; + &#39;\nTweet--&amp;gt; &#39;.join(neutral_tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; p_label = Label(second_frame, text=l1, fg=&quot;green&quot;, font=(&quot;Arial&quot;, 18), background=&quot;yellow&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; p_label.grid(row=0, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; p_tweets = Text(second_frame, fg=&quot;black&quot;, font=(&quot;Arial&quot;, 16), background=&quot;white&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; p_tweets.grid(row=1, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; p_tweets.insert(&quot;1.0&quot;, posi_list)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; n_label = Label(second_frame, text=l2, fg=&quot;red&quot;, font=(&quot;Arial&quot;, 18), background=&quot;black&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; n_label.grid(row=2, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; n_tweets = Text(second_frame, fg=&quot;black&quot;, font=(&quot;Arial&quot;, 16), background=&quot;white&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; n_tweets.grid(row=3, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; n_tweets.insert(&quot;1.0&quot;, neg_list)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; nu_label = Label(second_frame, text=l3, fg=&quot;blue&quot;, font=(&quot;Arial&quot;, 18), background=&quot;lightblue&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; nu_label.grid(row=4, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; nu_tweets = Text(second_frame, fg=&quot;black&quot;, font=(&quot;Arial&quot;, 16), background=&quot;white&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; nu_tweets.grid(row=5, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; nu_tweets.insert(&quot;1.0&quot;, neu_list)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;see_tweets = Button(window, text=&quot;Show Tweets&quot;, fg=&quot;black&quot;, background=&quot;green&quot;, font=(&quot;Arial&quot;, 16), command=show_tweets)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;see_tweets.grid(row=4, column=0, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;def show_word_cloud():&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; if len(all_words) &amp;gt; 0:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sa.word_cloud(all_words)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; messagebox.showwarning(&quot;Warning&quot;, &quot;Analyze a hashtag first&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;wordCloud = Button(window, text=&quot;Word Cloud&quot;, fg=&quot;black&quot;, background=&quot;lightblue&quot;, font=(&quot;Arial&quot;, 16), command=show_word_cloud)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;wordCloud.grid(row=4, column=1, padx=10, pady=10)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;span style=&quot;font-family: Calisto MT; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calisto MT;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;window.mainloop()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;Output:&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;After entering the hashtag and the number press analyze.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhijkmuqDJItQLjYkmKwKqhHs1oTecH5gFU_7UXaZ3uzu1xFA75kMTGrMa50gR56m-DEmADKfXoX0fbRYZozQWv7Zit7ZSItpyGkTgISbW1laMX-LEY3tDtefb_yTmunZ7S2yAERP5l0MoNEnqhA5__1xCrx5rF80vQNQ1GjsCbRjkYHjG9Pq5bdR0phA/s544/Picture1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;299&quot; data-original-width=&quot;544&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhijkmuqDJItQLjYkmKwKqhHs1oTecH5gFU_7UXaZ3uzu1xFA75kMTGrMa50gR56m-DEmADKfXoX0fbRYZozQWv7Zit7ZSItpyGkTgISbW1laMX-LEY3tDtefb_yTmunZ7S2yAERP5l0MoNEnqhA5__1xCrx5rF80vQNQ1GjsCbRjkYHjG9Pq5bdR0phA/s320/Picture1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;Right after the analyzing process is finished the bar graph and pie chart is presented.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhibj5O5YFWVj2y5HImlaa8KiRfFrWyg8CmyQbpJZKcuG5OBKQByQupPWAp5KJxuPllNQd-J9VLH3EjYU5sN_18LatsvxzdS9xWz870kio9sAiPUyu46-fXo7FcmhdfL2a6SnMcjtJP7osU8e_9sj2CsXuNrbmN5Uy02SCmLScDQhUKPrVir3ZhvxepQ/s648/Picture2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;553&quot; data-original-width=&quot;648&quot; height=&quot;273&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhibj5O5YFWVj2y5HImlaa8KiRfFrWyg8CmyQbpJZKcuG5OBKQByQupPWAp5KJxuPllNQd-J9VLH3EjYU5sN_18LatsvxzdS9xWz870kio9sAiPUyu46-fXo7FcmhdfL2a6SnMcjtJP7osU8e_9sj2CsXuNrbmN5Uy02SCmLScDQhUKPrVir3ZhvxepQ/s320/Picture2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 18.6667px;&quot;&gt;For viewing all the tweets press Show Tweets button.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDRrPHScmLeiFqn3i7Ws_RXc-EgYzpeNKN1FV-rBoVuCPkJ6a2g7TexaFKyvYrIBLlqYE6tzIEFt_x4ju7WsS8FJ6QZfMYHy3GqQuA8GXX48evBRFLwLWIf8zIligI0GyURkNYpphzwJjRemXIigZoeaaYgUiBICroL0ursKAlta8CzFG_CyE14G8U0g/s931/Picture3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;724&quot; data-original-width=&quot;931&quot; height=&quot;249&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDRrPHScmLeiFqn3i7Ws_RXc-EgYzpeNKN1FV-rBoVuCPkJ6a2g7TexaFKyvYrIBLlqYE6tzIEFt_x4ju7WsS8FJ6QZfMYHy3GqQuA8GXX48evBRFLwLWIf8zIligI0GyURkNYpphzwJjRemXIigZoeaaYgUiBICroL0ursKAlta8CzFG_CyE14G8U0g/s320/Picture3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; text-align: left;&quot;&gt;And for a wordcloud of the data press Wordcloud button.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhO-oJjiBwrFL_6VSSByw2-EluVQudSsyLcRcylNecP1lOQyQy8aaHBb7jw9AW1g5PdmfDX3qzq0kiAUKYVO-wVslcQytZ7keTOgJ04JXOlRHea85hKqQ3-UJc1NpEENfiAckV8poKLhncu93WDUmWTltkt2AcINA205tYuyp8UjiSeJHVdGewJzWCMQ/s1003/Picture4.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;573&quot; data-original-width=&quot;1003&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhO-oJjiBwrFL_6VSSByw2-EluVQudSsyLcRcylNecP1lOQyQy8aaHBb7jw9AW1g5PdmfDX3qzq0kiAUKYVO-wVslcQytZ7keTOgJ04JXOlRHea85hKqQ3-UJc1NpEENfiAckV8poKLhncu93WDUmWTltkt2AcINA205tYuyp8UjiSeJHVdGewJzWCMQ/s320/Picture4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;Conclusion:&lt;/span&gt;&lt;/u&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;The code performs well and deliver the desired output. If the data is large the speed of process will be slow. Overall, it is fit for conducting sentiment analysis at a small level.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calisto MT&amp;quot;; font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &#39;Calisto MT&#39;; font-size: 14pt; mso-bidi-font-family: &#39;Times New Roman&#39;; mso-fareast-font-family: Calibri; mso-font-kerning: 1.0000pt; mso-spacerun: &#39;yes&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://compsciflix.blogspot.com/feeds/6542627644152944716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://compsciflix.blogspot.com/2023/04/twitter-hashtag-sentiment-analysis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/6542627644152944716'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/4777137970176756708/posts/default/6542627644152944716'/><link rel='alternate' type='text/html' href='https://compsciflix.blogspot.com/2023/04/twitter-hashtag-sentiment-analysis.html' title='Twitter Hashtag Sentiment Analysis'/><author><name>Asst. Prof. Sunita Rai</name><uri>http://www.blogger.com/profile/15982481869805446440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1ewpjTF-VaiyO7NR-F4NVbG8D1F0dpylZRwTmzkJ3xd24FwnC2QHj9vn7u7kAlYq2v3s3LgxgFZcs-WofOwjH_DkjZJikSBV278q7TMT0Jx05Ngt2kSzvZ9t7kaZiAJy3vFI-K9hHVPOZaMVvqoD7lAJb8oD-8AgGSQEz6HxI7Ofz/s220/channels4_profile.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2SuTNlv7ElbS8KB49wOU7Lsn9R3jwHUjpIKJhNVJXValnTDzSrJMi9IYnYqtWpOSCHSHIGtQOLgeOK-hO8lkQcAqprsMIn1zykUDALitemsFKo3KyTa6AihcyG26l2MKCDpJJc0DM3sDMhlIJj60Ly--CTO6iAQlHkB7kQgNcU7MricvgKjoy2lVmIw/s72-w341-h192-c/maxresdefault.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>