<?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: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-3128337004360550284</id><updated>2012-02-16T19:02:33.948-08:00</updated><title type='text'>Gagan Ichake</title><subtitle type='html'>Hare Krishna</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-9131039477719125848</id><published>2010-05-19T22:22:00.000-07:00</published><updated>2010-05-19T22:23:13.733-07:00</updated><title type='text'>Index Of Run Commands In Windows XP</title><content type='html'>&lt;span style="font-variant: normal; font-style: normal; font-family: verdana,sans-serif; color: rgb(0, 0, 0); font-size: 12px; font-weight: normal;"&gt;SQL Client Configuration - cliconfg&lt;br /&gt; System Configuration Editor - sysedit&lt;br /&gt;System Configuration Utility -  msconfig&lt;br /&gt;System File Checker Utility (Scan Immediately)- sfc /scannow&lt;br /&gt;System  File Checker Utility (Scan Once At Next Boot)- sfc /scanonce&lt;br /&gt;System  File Checker Utility (Scan On Every Boot) - sfc /scanboot&lt;br /&gt; System File Checker Utility (Return to Default Setting)- sfc /revert&lt;br /&gt;System  File Checker Utility (Purge File Cache)- sfc /purgecache&lt;br /&gt;System File  Checker Utility (Set Cache Size to size x)-sfc/cachesize=x&lt;br /&gt;System  Information - msinfo32.&lt;br /&gt; Task Manager – taskmgr&lt;br /&gt;System Properties - sysdm.cpl&lt;br /&gt;Task Manager –  taskmgr&lt;br /&gt;TCP Tester - tcptest&lt;br /&gt;Telnet Client - telnet&lt;br /&gt;Tweak UI  (if installed) - tweakui&lt;br /&gt;User Account Management- nusrmgr.cpl&lt;br /&gt;Utility  Manager - utilman&lt;br /&gt;&lt;br /&gt;Windows Address Book - wab&lt;br /&gt;Windows Address Book Import Utility -  wabmig&lt;br /&gt;Windows Backup Utility (if installed)- ntbackup&lt;br /&gt;Windows  Explorer - explorer&lt;br /&gt;Windows Firewall- firewall.cpl&lt;br /&gt;Windows  Magnifier- magnify&lt;br /&gt; Windows Management Infrastructure - wmimgmt.msc&lt;br /&gt;Windows Media Player -  wmplayer&lt;br /&gt;Windows Messenger - msmsgs&lt;br /&gt;Windows Picture Import Wizard  (need camera connected)- wiaacmgr&lt;br /&gt;Windows System Security Tool –  syskey&lt;br /&gt; Windows Update Launches - wupdmgr&lt;br /&gt;Windows Version (to show which  version of windows)- winver&lt;br /&gt;Windows XP Tour Wizard - tourstart&lt;br /&gt;Wordpad  - write&lt;br /&gt;Password Properties - password.cpl&lt;br /&gt;Performance Monitor -  perfmon.msc&lt;br /&gt; Phone and Modem Options - telephon.cpl&lt;br /&gt;Phone Dialer - dialer&lt;br /&gt;Pinball  &lt;a rel="nofollow" style="color: rgb(0, 102, 0); text-decoration: none;" name="128b00ab58471e4a_128afdf1ef88e198_128af260ca056bf9_128aee3d6258f707_12862c548a54c815_AdBriteInlineAd_Game"&gt;Game&lt;/a&gt;  - pinball&lt;br /&gt; Power Configuration - powercfg.cpl&lt;br /&gt;Printers and Faxes - control  printers&lt;br /&gt;Printers Folder – printers&lt;br /&gt;Private Character Editor -  eudcedit&lt;br /&gt;&lt;br /&gt;Quicktime (If Installed)- QuickTime.cpl&lt;br /&gt;Real Player  (if installed)- realplay&lt;br /&gt; Regional Settings - intl.cpl&lt;br /&gt;Registry Editor - regedit&lt;br /&gt;Registry  Editor - regedit32&lt;br /&gt;Remote Access Phonebook - rasphone&lt;br /&gt;Remote  Desktop - mstsc&lt;br /&gt;Removable Storage - ntmsmgr.msc&lt;br /&gt;Removable Storage  Operator Requests - ntmsoprq.msc&lt;br /&gt; Resultant Set of Policy (XP Prof) - rsop.msc&lt;br /&gt;Scanners and Cameras -  sticpl.cpl&lt;br /&gt;Scheduled Tasks - control schedtasks&lt;br /&gt;Security Center -  wscui.cpl&lt;br /&gt;Services - services.msc&lt;br /&gt;Shared Folders - fsmgmt.msc&lt;br /&gt;Shuts  Down Windows - shutdown&lt;br /&gt; Sounds and Audio - mmsys.cpl&lt;br /&gt;Spider Solitare Card Game - spider&lt;br /&gt;&lt;br /&gt;Malicious  Software Removal Tool - mrt&lt;br /&gt;Microsoft Access (if installed) -  access.cpl&lt;br /&gt;Microsoft Chat - winchat&lt;br /&gt;Microsoft Excel (if installed)  - excel&lt;br /&gt; Microsoft Frontpage (if installed)- frontpg&lt;br /&gt;Microsoft Movie Maker -  moviemk&lt;br /&gt;Microsoft Paint - mspaint&lt;br /&gt;Microsoft Powerpoint (if  installed)- powerpnt&lt;br /&gt;Microsoft Word (if installed)- winword&lt;br /&gt;Microsoft  Syncronization Tool - mobsync&lt;br /&gt; Minesweeper Game - winmine&lt;br /&gt;Mouse Properties - control mouse&lt;br /&gt;Mouse  Properties - main.cpl&lt;br /&gt;Nero (if installed)- nero&lt;br /&gt;Netmeeting - conf&lt;br /&gt;Network  Connections - control netconnections&lt;br /&gt;Network Connections - ncpa.cpl&lt;br /&gt; Network Setup Wizard - netsetup.cpl&lt;br /&gt;Notepad - notepad&lt;br /&gt;Nview  Desktop Manager (If Installed)- nvtuicpl.cpl&lt;br /&gt;Object Packager -  packager&lt;br /&gt;ODBC Data Source Administrator- odbccp32.cpl&lt;br /&gt;On Screen  Keyboard - osk&lt;br /&gt;Opens AC3 Filter (If Installed) - ac3filter.cpl&lt;br /&gt;Outlook Express - msimn&lt;br /&gt;&lt;br /&gt;Paint – pbrush&lt;br /&gt;Keyboard Properties -  control keyboard&lt;br /&gt;IP Configuration (Display Connection Configuration) -  ipconfi/all&lt;br /&gt;IP Configuration (Display DNS Cache Contents)- ipconfig  /displaydns&lt;br /&gt; IP Configuration (Delete DNS Cache Contents)- ipconfig /flushdns&lt;br /&gt;IP  Configuration (Release All Connections)- ipconfig /release&lt;br /&gt;IP  Configuration (Renew All Connections)- ipconfig /renew&lt;br /&gt;IP  Configuration(RefreshesDHCP&amp;amp;Re-RegistersDNS)-ipconfig/registerdns&lt;br /&gt; IP Configuration (Display DHCP Class ID)- ipconfig/showclassid&lt;br /&gt;IP  Configuration (Modifies DHCP Class ID)- ipconfig /setclassid&lt;br /&gt;Java  Control Panel (If Installed)- jpicpl32.cpl&lt;br /&gt;Java Control Panel (If  Installed)- javaws&lt;br /&gt; Local Security Settings - secpol.msc&lt;br /&gt;Local Users and Groups -  lusrmgr.msc&lt;br /&gt;Logs You Out Of Windows - logoff.....&lt;br /&gt;Accessibility  Controls - access.cpl&lt;br /&gt;Accessibility Wizard - accwiz&lt;br /&gt;Add Hardware -  Wizardhdwwiz.cpl&lt;br /&gt; Add/Remove Programs - appwiz.cpl&lt;br /&gt;Administrative Tools control -  admintools&lt;br /&gt;Adobe Acrobat (if installed) - acrobat&lt;br /&gt;Adobe Designer  (if installed)- acrodist&lt;br /&gt;Adobe Distiller (if installed)- acrodist&lt;br /&gt;Adobe  ImageReady (if installed)- imageready&lt;br /&gt; Adobe Photoshop (if installed)- photoshop&lt;br /&gt;Automatic Updates -  wuaucpl.cpl&lt;br /&gt;Bluetooth Transfer Wizard – fsquirt&lt;br /&gt;&lt;br /&gt;Calculator -  calc&lt;br /&gt;Certificate Manager - certmgr.msc&lt;br /&gt;Character Map - charmap&lt;br /&gt;Check  Disk Utility - chkdsk&lt;br /&gt; Clipboard Viewer - clipbrd&lt;br /&gt;Command Prompt - cmd&lt;br /&gt;Component Services  - dcomcnfg&lt;br /&gt;Computer Management - compmgmt.msc&lt;br /&gt;Control Panel -  control&lt;br /&gt;Date and Time Properties - timedate.cpl&lt;br /&gt;DDE Shares -  ddeshare&lt;br /&gt;Device Manager - devmgmt.msc&lt;br /&gt;Direct X Control Panel (If Installed)- directx.cpl&lt;br /&gt;Direct X  Troubleshooter- dxdiag&lt;br /&gt;Disk Cleanup Utility- cleanmgr&lt;br /&gt;Disk  Defragment- dfrg.msc&lt;br /&gt;Disk Management- diskmgmt.msc&lt;br /&gt;Disk Partition  Manager- diskpart&lt;br /&gt; Display Properties- control desktop&lt;br /&gt;Display Properties- desk.cpl&lt;br /&gt;Display  Properties (w/Appearance Tab Preselected)- control color&lt;br /&gt;Dr. Watson  System Troubleshooting Utility- drwtsn32&lt;br /&gt;Driver Verifier Utility-  verifier&lt;br /&gt; Event Viewer- eventvwr.msc&lt;br /&gt;Files and Settings Transfer Tool- migwiz&lt;br /&gt;File  Signature Verification Tool- sigverif&lt;br /&gt;Findfast- findfast.cpl&lt;br /&gt;Firefox  (if installed)- firefox&lt;br /&gt;Folders Properties- control folders&lt;br /&gt;Fonts- control fonts&lt;br /&gt;Fonts Folder- fonts&lt;br /&gt;Free Cell Card Game- freecell&lt;br /&gt;Game  Controllers- joy.cpl&lt;br /&gt;Group Policy Editor (XP Prof)- gpedit.msc&lt;br /&gt;&lt;br /&gt;Hearts  Card Game- mshearts&lt;br /&gt;Help and Support- helpctr&lt;br /&gt;HyperTerminal-  hypertrm&lt;br /&gt;Iexpress Wizard- iexpress&lt;br /&gt;Indexing Service- ciadv.msc&lt;br /&gt;Internet Connection Wizard- icwconn1&lt;br /&gt;Internet  Explorer- iexplore&lt;br /&gt;Internet Setup Wizard- inetwiz&lt;br /&gt;Internet  Properties- inetcpl.cpl&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-9131039477719125848?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/9131039477719125848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/05/index-of-run-commands-in-windows-xp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/9131039477719125848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/9131039477719125848'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/05/index-of-run-commands-in-windows-xp.html' title='Index Of Run Commands In Windows XP'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-8362566701194770543</id><published>2010-05-10T02:10:00.000-07:00</published><updated>2010-06-11T03:22:26.984-07:00</updated><title type='text'>Java/J2EE/SQL Interview question</title><content type='html'>&lt;span style="font-weight: bold;"&gt;The following are the common questions I have faced in many interviews -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.    Difference b/w Interface &amp;amp; Abstract class.&lt;br /&gt;2.    Can we create object of an Abstract class?&lt;br /&gt;3.    What is inheritance, Polymorphism and Encapsulation?&lt;br /&gt;4.    Write the basic steps to make a JDBC connection.&lt;br /&gt;5.    What is the difference between CreateStatement, PrepareStatement and CallableStatement?&lt;br /&gt;6.    Knowledge of basic Java collections. What is the difference b/w Vector and ArrayList.&lt;br /&gt;7.    Describe your current project. Draw database scchema of your current project.&lt;br /&gt;8.    What is Indexing? What are the different types of Indexes?&lt;br /&gt;9.    What are the aggregate functions in sql?&lt;br /&gt;10.    What is Primary key and Composite key?&lt;br /&gt;11.    What is Cascading in database design? And what its use?&lt;br /&gt;12.    What is the life cycle of a Thread?&lt;br /&gt;13.    What are the different states of a Thread?&lt;br /&gt;14.    How Threads can communicate with each other?&lt;br /&gt;15.    What is Synchronization? Type of Synchronization.&lt;br /&gt;16.    Is your application Thread safe? How to implement it ?&lt;br /&gt;17.    How do you implement Garbage collection in your project?&lt;br /&gt;18.    Do you know about Functions and Procedures?&lt;br /&gt;19.    What kind of design patterns you know or have used? Describe them.&lt;br /&gt;20.    Do you know about Struts Validation framework? How to implements it?&lt;br /&gt;21.    Can the Struts Validation framework be used for both client side and server side validation.&lt;br /&gt;22.    What is validation-rules.xml and validation.xml?&lt;br /&gt;23.    What are Struts tag libraries? What is the use of Struts tag libraries? Describe each in brief?&lt;br /&gt;24.    What is the difference b/w final, finally and finalize?&lt;br /&gt;25.    If there is no exception generated then the finally block will be  called or not?&lt;br /&gt;26.    What are the checked exceptions and unchecked exceptions?&lt;br /&gt;27.    In which order will you catch these three exceptions – 1. ClassCastException 2. NullPointerException 3.Exception.&lt;br /&gt;28.    What will happen if we declare a member as final, a method as final and a class as final.&lt;br /&gt;29.    White an example for Form Validation in validation.xml.&lt;br /&gt;30.    What are the different type of tags in web.xml?&lt;br /&gt;31.    Write a web.xml for a Struts application.&lt;br /&gt;32.    Do you know about DynaValidationForm calss?&lt;br /&gt;33.    How the client side validation and server side validation is implemented through Struts Validation Framework?&lt;br /&gt;34.    What is the life cycle of a Servlet?&lt;br /&gt;35.    What is the syntax of Servlet’s init() method?&lt;br /&gt;36.    Can we call the init() and destroy() method of a Servlet?&lt;br /&gt;37.    What is the difference b/w Servlet Context and Servlet Config?&lt;br /&gt;38.    What is the difference b/w Servlet Context and Page Context?&lt;br /&gt;39.    Which version of Java you are using and why?&lt;br /&gt;40.    What is the output of the followings –&lt;br /&gt;Public class A{&lt;br /&gt;Public void method{&lt;br /&gt;System.out.pritnln(“In A”);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Public calss B extends A{&lt;br /&gt;Public void method{&lt;br /&gt;System.out.pritnln(“In B”);&lt;br /&gt;}&lt;br /&gt;Public void method1{&lt;br /&gt;System.out.pritnln(“In method1 of B”);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Public class extends A, B{&lt;br /&gt;Public void method{&lt;br /&gt;System.out.pritnln(“In C”);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;o    A a = new A();&lt;br /&gt;a.method();&lt;br /&gt;&lt;br /&gt;o    A a = new B();&lt;br /&gt;a.method();&lt;br /&gt;a.method1();&lt;br /&gt;&lt;br /&gt;o    B b = new A();&lt;br /&gt;b.method();&lt;br /&gt;&lt;br /&gt;o    B b = new B();&lt;br /&gt;b.method();&lt;br /&gt;&lt;br /&gt;o    C c = new C();&lt;br /&gt;c.method()&lt;br /&gt;&lt;br /&gt;41.    What is the output of the followings  -&lt;br /&gt;Public final class A{&lt;br /&gt;Public void method(){&lt;br /&gt;System.out.pritnln(“In A”);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Public class B{&lt;br /&gt;Final int b=10;&lt;br /&gt;Public void method(){&lt;br /&gt;System.out.pritnln(“In B, b=”+b);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Public class C extends A{&lt;br /&gt;Public void method(){&lt;br /&gt;System.out.pritnln(“In C”);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Public class D extends B{&lt;br /&gt;Int b=20&lt;br /&gt;Public void method(){&lt;br /&gt;System.out.pritnln(“In D, b=”+b);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;o    A a = new C();&lt;br /&gt;a.method();&lt;br /&gt;&lt;br /&gt;o    D d = new D();&lt;br /&gt;d.method();&lt;br /&gt;&lt;br /&gt;42.    Write a query to find the name of the person how has the second largest salary amount form the employee table.&lt;br /&gt;43.    Which Normal Forms you have used in designing your database?&lt;br /&gt;44.    Do you know or write triggers?&lt;br /&gt;45.    What is Serialization and Serialization Objects?&lt;br /&gt;46.    Is it possible for Serializable class to specify that some of its fields do not get serialized (saved or restored). If yes then how?&lt;br /&gt;47.    What are the different types of JDBC drivers?&lt;br /&gt;48.    What is the difference b/w an Interface and Abstract class?&lt;br /&gt;49.    If you extend an Abstract class then can create an object of the implementing class? What rules do you have to follow?&lt;br /&gt;50.    What are Wrapper classes?&lt;br /&gt;51.    What is Marker Interface?&lt;br /&gt;52.    What is Overloading? To which Overloading related - Inheritance or Polymorphism?&lt;br /&gt;&lt;br /&gt;53.    What is Overriding? To which Overriding related - Inheritance or Polymorphism?&lt;br /&gt;54.    What is the difference b/w function Overloading and Overriding?&lt;br /&gt;55.    If you are overriding a method which throws an exception of certain type then is it necessary to throw the same exception by the overridden class?&lt;br /&gt;E.g. public ArrayList getNetSalary(int id) throws SqlException{ … }&lt;br /&gt;56.    To which the following  example related to - Overloading or Overriding – (Ans.- Overriding)&lt;br /&gt;Public void method(int i, int j)&lt;br /&gt;Public int method(int i, int j)&lt;br /&gt;57.    Have you worked on AJAX, where and why? What are the basic step for AJAX to work?&lt;br /&gt;58.    How you fetch the data in AJAX, as HTM text or XML? How you read the XML file to render the data?&lt;br /&gt;59.    Do you use eclipse or similar IDE tool.&lt;br /&gt;60.    What is the difference b/w sendRedirect and forward? Where they are benefited?&lt;br /&gt;61.    In how many ways you can maintain client’s state/session? (URL writing, Cookies, Session object)&lt;br /&gt;62.    How many implicit objects are there in JSPs.&lt;br /&gt;63.    What is the difference b/w JSP include (&lt;jsp:include page="””/"&gt;) and include directive (&lt;%@ include file=”” %&gt;)?&lt;br /&gt;64.    In an MVC architecture which J2EE component (JSP, Servlet etc.) plays what role?&lt;br /&gt;65.    What type of design patterns you are using, describe them?&lt;br /&gt;66.    What kind of JSP scopes are there? Elaborate them.&lt;br /&gt;67.    What parameters the init() method of a Servlet takes?&lt;br /&gt;68. System Development Life Cycle.&lt;br /&gt;69. Type Inner Classes.&lt;br /&gt;69. How do you display error in a JSP page through Struts framework?&lt;br /&gt;70. How do you load message resources in Struts framework?&lt;br /&gt;&lt;/jsp:include&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-8362566701194770543?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/8362566701194770543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/05/javaj2eesql-interview-question.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/8362566701194770543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/8362566701194770543'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/05/javaj2eesql-interview-question.html' title='Java/J2EE/SQL Interview question'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-2804975488304775687</id><published>2010-05-10T00:01:00.000-07:00</published><updated>2010-05-10T02:06:10.482-07:00</updated><title type='text'>Java Wrapper Classes</title><content type='html'>Each of Java's eight primitive data types has a class dedicated to it. These are known as wrapper&lt;br /&gt;classes, because they "wrap" the primitive data type into an object of that class. So, there is an&lt;br /&gt;Integer class that holds an int variable, there is a Double class that holds a double&lt;br /&gt;variable, and so on. The wrapper classes are part of the java.lang package, which is imported&lt;br /&gt;by default into all Java programs.&lt;br /&gt;&lt;br /&gt;Wrapper Classes are used broadly with Collection classes in the java.util package and with the classes in the  java.lang.reflect reflection package.&lt;br /&gt;&lt;br /&gt;Following table lists the primitive types and the corresponding wrapper classes:&lt;br /&gt;-----------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Primitive&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Wrapper&lt;/span&gt;&lt;br /&gt;-----------------------------&lt;br /&gt;boolean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Boolean&lt;br /&gt;byte&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Byte&lt;br /&gt;char&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Character&lt;br /&gt;double&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Double&lt;br /&gt;float&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Float&lt;br /&gt;int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Integer&lt;br /&gt;long&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Long&lt;br /&gt;short&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;java.lang.Short&lt;br /&gt;-----------------------------&lt;br /&gt;&lt;br /&gt;The following discussion focuses on the Integer wrapper&lt;br /&gt;class, but applies in a general sense to all eight wrapper classes. Consult the Java API&lt;br /&gt;documentation for more details.&lt;br /&gt;The following two statements illustrate the difference between a primitive data type and an object of a wrapper class:&lt;br /&gt;&lt;br /&gt;int x = 25;&lt;br /&gt;Integer y = new Integer(33);&lt;br /&gt;&lt;br /&gt;The first statement declares an int variable named x and initializes it with the value 25. The&lt;br /&gt;second statement instantiates an Integer object. The object is initialized with the value 33 and&lt;br /&gt;a reference to the object is assigned to the object variable y.&lt;br /&gt;&lt;br /&gt;Clearly x and y differ by more than their values: x is a variable that holds a value; y is an object&lt;br /&gt;variable that holds a reference to an object. As noted earlier, data fields in objects are not, in&lt;br /&gt;general, directly accessible. So, the following statement using x and y as declared above is not&lt;br /&gt;allowed:&lt;br /&gt;&lt;br /&gt;int z = x + y; // wrong!&lt;br /&gt;&lt;br /&gt;The data field in an Integer object is only accessible using the methods of the Integer class.&lt;br /&gt;One such method — the intValue() method — returns an int equal to the value of the&lt;br /&gt;object, effectively "unwrapping" the Integer object:&lt;br /&gt;&lt;br /&gt;int z = x + y.intValue(); // OK!&lt;br /&gt;&lt;br /&gt;Note the format of the method call. The intValue() method is an instance method, because it&lt;br /&gt;is called through an instance of the class — an Integer object. The syntax uses dot notation,&lt;br /&gt;where the name of the object variable precedes the dot.&lt;br /&gt;&lt;br /&gt;Some of Java's classes include only instance methods, some include only class methods, some&lt;br /&gt;include both. The Integer class includes both instance methods and class methods. The class&lt;br /&gt;methods provide useful services; however, they are not called through instances of the class.&lt;br /&gt;But, this is not new. We met a class method of the Integer class earlier. The statement&lt;br /&gt;&lt;br /&gt;int x = Integer.parseInt("1234");&lt;br /&gt;&lt;br /&gt;converts the string "1234" into the integer 1,234 and assigns the result to the int variable x.&lt;br /&gt;The method parseInt() is a class method. It is not called through an instance of the class.&lt;br /&gt;&lt;br /&gt;Although dot notation is used above, the term "Integer." identifies the class where the method&lt;br /&gt;is defined, rather than name of an Integer object. This is one of the trickier aspects of&lt;br /&gt;distinguishing instance methods from class methods. For an instance method, the dot is preceded&lt;br /&gt;by the name of an object variable. For a class method, the dot is preceded by the name of a class.&lt;br /&gt;&lt;br /&gt;It is interesting that the parseInt() method accepts a String argument and returns an int.&lt;br /&gt;Neither the argument nor the returned value is an Integer object. So, the earlier comment that&lt;br /&gt;class methods "provide useful services" is quite true. They do not operate on instance variables;&lt;br /&gt;they provide services that are of general use. The parseInt() method converts a String to&lt;br /&gt;an int, and this is a useful service — one we have called upon in previous programs.&lt;br /&gt;&lt;br /&gt;Another useful Integer class method is the toString() method. The following statement&lt;br /&gt;&lt;br /&gt;String s = Integer.toString(1234);&lt;br /&gt;&lt;br /&gt;converts the int constant 1,234 to a String object and returns a reference to the object. We&lt;br /&gt;have already met this method through the following shorthand notation:&lt;br /&gt;&lt;br /&gt;String s = "" + 1234;&lt;br /&gt;&lt;br /&gt;In general, the data fields in objects are private and are only accessible through methods of the&lt;br /&gt;class. However, class definitions sometimes include constants that are "public", and, therefore,&lt;br /&gt;accessible anywhere the class is accessible. Java's wrapper classes include publicly defined&lt;br /&gt;constants identifying the range for each type. For example, the Integer class has constants&lt;br /&gt;called MIN_VALUE and MAX_VALUE equal to 0x80000000 and 0x7fffffff respectively. These&lt;br /&gt;values are the hexadecimal equivalent of the most-negative and most-positive values represented by 32-bit integers. The table of ranges shown earlier was obtained from a simple program called FindRanges that prints these constants. The listing is given here&lt;br /&gt;&lt;br /&gt;1 public class FindRanges&lt;br /&gt;2 {&lt;br /&gt;3 public static void main(String[] args)&lt;br /&gt;4 {&lt;br /&gt;5 System.out.println("Integer range:");&lt;br /&gt;6 System.out.println(" min: " + Integer.MIN_VALUE);&lt;br /&gt;7 System.out.println(" max: " + Integer.MAX_VALUE);&lt;br /&gt;8 System.out.println("Double range:");&lt;br /&gt;9 System.out.println(" min: " + Double.MIN_VALUE);&lt;br /&gt;10 System.out.println(" max: " + Double.MAX_VALUE);&lt;br /&gt;11 System.out.println("Long range:");&lt;br /&gt;12 System.out.println(" min: " + Long.MIN_VALUE);&lt;br /&gt;13 System.out.println(" max: " + Long.MAX_VALUE);&lt;br /&gt;14 System.out.println("Short range:");&lt;br /&gt;15 System.out.println(" min: " + Short.MIN_VALUE);&lt;br /&gt;16 System.out.println(" max: " + Short.MAX_VALUE);&lt;br /&gt;17 System.out.println("Byte range:");&lt;br /&gt;18 System.out.println(" min: " + Byte.MIN_VALUE);&lt;br /&gt;19 System.out.println(" max: " + Byte.MAX_VALUE);&lt;br /&gt;20 System.out.println("Float range:");&lt;br /&gt;21 System.out.println(" min: " + Float.MIN_VALUE);&lt;br /&gt;22 System.out.println(" max: " + Float.MAX_VALUE);&lt;br /&gt;23 }&lt;br /&gt;24 }&lt;br /&gt;&lt;br /&gt;This program generates the following output:&lt;br /&gt;&lt;br /&gt;Integer range:&lt;br /&gt;min: -2147483648&lt;br /&gt;max: 2147483647&lt;br /&gt;Double range:&lt;br /&gt;min: 4.9E-324&lt;br /&gt;max: 1.7976931348623157E308&lt;br /&gt;Long range:&lt;br /&gt;min: -9223372036854775808&lt;br /&gt;max: 9223372036854775807&lt;br /&gt;Short range:&lt;br /&gt;min: -32768&lt;br /&gt;max: 32767&lt;br /&gt;Byte range:&lt;br /&gt;min: -128&lt;br /&gt;max: 127&lt;br /&gt;Float range:&lt;br /&gt;min: 1.4E-45&lt;br /&gt;max: 3.4028235E38&lt;br /&gt;&lt;br /&gt;In the case of float and double, the minimum and maximum values are those closest to plus&lt;br /&gt;or minus zero or plus or minus infinity, respectively.&lt;br /&gt;&lt;br /&gt;The most common methods of the Integer wrapper class are summarized in Table 1. Similar&lt;br /&gt;methods for the other wrapper classes are found in the Java API documentation.&lt;br /&gt;&lt;br /&gt;Table 1. Methods of the Integer Wrapper Class&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Purpose&lt;/span&gt;&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Constructors&lt;/span&gt;&lt;br /&gt;Integer(i)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;constructs an Integer object equivalent to the integer i&lt;br /&gt;Integer(s)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;constructs an Integer object equivalent to the string s&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Class Methods&lt;/span&gt;&lt;br /&gt;parseInt(s)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns a signed decimal integer value equivalent to string s&lt;br /&gt;toString(i)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns a new String object representing the integer i&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Instance Methods&lt;/span&gt;&lt;br /&gt;byteValue()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns the value of this Integer as a byte&lt;br /&gt;doubleValue()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns the value of this Integer as an double&lt;br /&gt;floatValue()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns the value of this Integer as a float&lt;br /&gt;intValue()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns the value of this Integer as an int&lt;br /&gt;longValue()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns the value of this Integer as a long&lt;br /&gt;shortValue()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns the value of this Integer as a short&lt;br /&gt;toString()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;returns a String object representing the value of this Integer&lt;br /&gt;--------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;In the descriptions of the instance methods, the phrase "this Integer" refers to the instance&lt;br /&gt;variable on which the method is acting. For example, if y is an Integer object variable, the&lt;br /&gt;expression y.doubleValue() returns the value of "this Integer", or y, as a double.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-2804975488304775687?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/2804975488304775687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/05/java-wrapper-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2804975488304775687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2804975488304775687'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/05/java-wrapper-classes.html' title='Java Wrapper Classes'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-548151015234393480</id><published>2010-05-07T01:52:00.000-07:00</published><updated>2010-05-07T02:19:38.331-07:00</updated><title type='text'>How to delete a folder with no name</title><content type='html'>If you have created a folder with no name by renaming a folder with &lt;span style="font-style: italic;"&gt;alt + 0160&lt;/span&gt; OR &lt;span style="font-style: italic;"&gt;alt + 255&lt;/span&gt; then you will find difficult to delete it in Vista.&lt;br /&gt;&lt;br /&gt;To delete it you have use command from (run: cmd)&lt;br /&gt;In command prompt go to the parent directory of the "no name" folder. Then type &lt;span style="font-style: italic;"&gt;dir /x&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That should show you all the files and folders in that directory.  The  one&lt;br /&gt;that you named (alt + 0160 OR &lt;span style="font-style: italic;"&gt;alt + 255&lt;/span&gt;)  should appear with no name in the normal  list of&lt;br /&gt;files, but the column before that should show it as "0A00~1".  That is  the&lt;br /&gt;Short File Name, also known as the SFN or the 8.3 file name.&lt;br /&gt;&lt;br /&gt;Now use&lt;span style="font-style: italic;"&gt;  ren 0A00~1 newfolder &lt;/span&gt;to rename it. (ren = rename)&lt;br /&gt;&lt;br /&gt;Now you have renamed your "no name" folder with&lt;span style="font-style: italic;"&gt; newfolder&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now type &lt;span style="font-style: italic;"&gt;rd 0A00~1&lt;/span&gt; to delete it. (rd = remove directory)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-548151015234393480?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/548151015234393480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/05/how-to-delete-folder-with-no-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/548151015234393480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/548151015234393480'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/05/how-to-delete-folder-with-no-name.html' title='How to delete a folder with no name'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-5681883653820387466</id><published>2010-04-12T06:50:00.000-07:00</published><updated>2010-04-12T06:55:23.228-07:00</updated><title type='text'>Java Marker interface</title><content type='html'>Marker interface is a interface which don’t have any method.It is used to tag the implementing class based on their purpose.Marker interface is a Java interface which doesn’t actually define any fields. It is just used to “mark” Java classes which support a certain capability –the class marks itself as implementing the interface. For example, the java.lang.Cloneable interface.&lt;br /&gt;In java language programming, interfaces with no methods are known as marker interfaces or tagged interface.Marker Interfaces are implemented by the classes or their super classes in order to add some functionality.Marker interfaces are understood by the JVM. The JVM takes care of how to deal with a class that implements that marker interface&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why we use marker interface.&lt;/span&gt;&lt;br /&gt;The marker interfaces are used to provide certain functionality to classes you code. Take for instance the Cloneable interface. This interface is implemented by the JVM itself and allows copies of objects to be created without the developer having to write code for this purpose. User written marker interfaces can also be used for inheritance purposes.Marker Interfaces are used to mark the capability of a class as implementing a specific interface at run-time.&lt;br /&gt;&lt;br /&gt;Examples of marker Interface.&lt;br /&gt;&lt;br /&gt;java.lang.Cloneable&lt;br /&gt;java.io.Serializable&lt;br /&gt;java.util.EventListener&lt;br /&gt;&lt;br /&gt;-----------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;java.lang.Cloneable Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;public interface Cloneable&lt;br /&gt;&lt;br /&gt;A class implements the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instances of that class.&lt;br /&gt;&lt;br /&gt;Invoking Object's clone method on an instance that does not implement the Cloneable interface results in the exception CloneNotSupportedException being thrown.&lt;br /&gt;&lt;br /&gt;By convention, classes that implement this interface should override Object.clone (which is protected) with a public method. See Object.clone() for details on overriding this method.&lt;br /&gt;&lt;br /&gt;Note that this interface does not contain the clone method. Therefore, it is not possible to clone an object merely by virtue of the fact that it implements this interface. Even if the clone method is invoked reflectively, there is no guarantee that it will succeed.&lt;br /&gt;&lt;br /&gt;Now,&lt;br /&gt;&lt;br /&gt;Consider the following call to the clone() method on an object o:&lt;br /&gt;&lt;br /&gt;SomeObject o = new SomeObject();&lt;br /&gt;SomeObject ref = (SomeObject)(o.clone());&lt;br /&gt;&lt;br /&gt;If the class SomeObject does not implement the interface Cloneable (and Cloneable is not implemented by any of the superclasses that SomeObject inherits from), the compiler will mark this line as an error. This is because the clone()  method may only be called by objects of type "Cloneable." Hence, even though Cloneable is an empty interface, it serves an important purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-5681883653820387466?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/5681883653820387466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/04/java-marker-interface.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/5681883653820387466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/5681883653820387466'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/04/java-marker-interface.html' title='Java Marker interface'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-6275157464549789147</id><published>2010-04-05T04:37:00.000-07:00</published><updated>2010-04-05T04:39:41.041-07:00</updated><title type='text'>XML : junk after document element</title><content type='html'>&lt;p&gt;I’ve got a JSP script outputting XML that’s called from an Ajax  script.  When I was testing the PHP output I got the error &lt;strong&gt;junk after document element&lt;/strong&gt; after trying to add  another section to the XML.  &lt;/p&gt; &lt;p&gt;What turned out the be the cause is that in adding the section I  wound up with two root elements, so in effect there weren’t any root  elements.  I wrapped the whole thing in another element and it worked  perfectly.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-6275157464549789147?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/6275157464549789147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/04/xml-junk-after-document-element.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/6275157464549789147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/6275157464549789147'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/04/xml-junk-after-document-element.html' title='XML : junk after document element'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-980571393456107551</id><published>2010-04-05T03:43:00.000-07:00</published><updated>2010-04-05T03:44:31.254-07:00</updated><title type='text'>MySQL : String comparisons are not case sensitive</title><content type='html'>The following two statements illustrate that string comparisons are not case sensitive unless one of the operands is a binary string:&lt;br /&gt;&lt;br /&gt;mysql&gt; SELECT 'abc' LIKE 'ABC';&lt;br /&gt;        -&gt; 1&lt;br /&gt;mysql&gt; SELECT 'abc' LIKE BINARY 'ABC';&lt;br /&gt;        -&gt; 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-980571393456107551?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/980571393456107551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2010/04/mysql-string-comparisons-are-not-case.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/980571393456107551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/980571393456107551'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2010/04/mysql-string-comparisons-are-not-case.html' title='MySQL : String comparisons are not case sensitive'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-2739447450689152060</id><published>2009-09-22T07:24:00.000-07:00</published><updated>2009-09-22T07:28:41.946-07:00</updated><title type='text'>Java: String index out of range</title><content type='html'>If you try a substring with an index greater than the length of the string then - String index out of range - exception is be thrown by Java.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-2739447450689152060?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/2739447450689152060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/09/java-string-index-out-of-range.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2739447450689152060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2739447450689152060'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/09/java-string-index-out-of-range.html' title='Java: String index out of range'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-193686367505374729</id><published>2009-09-17T06:42:00.000-07:00</published><updated>2009-09-17T07:04:22.691-07:00</updated><title type='text'>How to drop Not Null constraint</title><content type='html'>SQL&gt;&lt;br /&gt;&lt;br /&gt;ALTER TABLE table_name MODIFY column [datatype] NULL&lt;table_name&gt;&lt;column&gt;&lt;column\&gt;&lt;datatype\&gt;&lt;table_name&gt;&lt;column&gt;&lt;datatype&gt;;&lt;br /&gt;&lt;br /&gt;&lt;datatype&gt;  &lt;/datatype&gt;&lt;/datatype&gt;&lt;/column&gt;&lt;/table_name&gt;&lt;/datatype\&gt;&lt;/column\&gt;&lt;/column&gt;datatype is &lt;table_name\&gt;&lt;column\&gt;&lt;datatype\&gt;&lt;table_name&gt;&lt;column&gt;&lt;datatype&gt;&lt;datatype&gt;optional if you only want to modify the Not Null constraint. Doing this will allow Oracle to enter null in the &lt;/datatype&gt;&lt;/datatype&gt;&lt;/column&gt;&lt;/table_name&gt;&lt;/datatype\&gt;&lt;/column\&gt;&lt;/table_name\&gt;column &lt;table_name\&gt;&lt;column\&gt;&lt;datatype\&gt;&lt;table_name&gt;&lt;column&gt;&lt;datatype&gt;&lt;datatype&gt; &lt;column&gt; if no value is provided.&lt;/column&gt;&lt;/datatype&gt;&lt;/datatype&gt;&lt;/column&gt;&lt;/table_name&gt;&lt;/datatype\&gt;&lt;/column\&gt;&lt;/table_name\&gt;&lt;/table_name&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-193686367505374729?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/193686367505374729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/09/how-to-drop-not-null-constraint.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/193686367505374729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/193686367505374729'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/09/how-to-drop-not-null-constraint.html' title='How to drop Not Null constraint'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-4640731319608914059</id><published>2009-09-17T06:28:00.000-07:00</published><updated>2009-09-17T06:40:39.446-07:00</updated><title type='text'>Oracle date do not support "0000-00-00"</title><content type='html'>The date string "0000-00-00" is invalid in Oracle, so it should not be used. However, the date "0001-01-01" is valid in both Oracle. But MySQL support "0000-00-00" value as a default value for date.&lt;br /&gt;&lt;br /&gt;Instead Oracle date column accept only null value if date is not available.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-4640731319608914059?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/4640731319608914059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/09/oracle-date-do-not-support-0000-00-00.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4640731319608914059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4640731319608914059'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/09/oracle-date-do-not-support-0000-00-00.html' title='Oracle date do not support &quot;0000-00-00&quot;'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-6965515764052053245</id><published>2009-07-23T23:11:00.000-07:00</published><updated>2009-08-11T02:13:07.698-07:00</updated><title type='text'>JSP compilation</title><content type='html'>The JSP pages are compliled into Servlet classes the first the JSP in invoked.&lt;br /&gt;&lt;br /&gt;        Like Servlet, JSP pages operate within a container. The JSP container provides the same services as a Servlet container. But requires the additional steps of conversion to Servlet code and compilation before the JSP pages are executed.&lt;br /&gt;&lt;br /&gt;       Tomcat server includes both Servlet and compiled JSP pages(named Catanilna), and the compiler for JSP pages called Jasper compiler. The combination of JSP container and Servlet container is known as a Web Container.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-6965515764052053245?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/6965515764052053245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/07/jsp-compilation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/6965515764052053245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/6965515764052053245'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/07/jsp-compilation.html' title='JSP compilation'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-2863443338425554748</id><published>2009-07-23T22:29:00.000-07:00</published><updated>2009-07-23T23:05:17.638-07:00</updated><title type='text'>Primary key, Candidate key, Unique key</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Primary Key:&lt;/span&gt;&lt;br /&gt;The primary key of a relational table uniquely identifies each record in the table. A Primary key can not be NULL at all. Primary keys may consist of a single attribute or multiple attributes in combination.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Candidate Key:&lt;/span&gt;&lt;br /&gt;An attribute/key is a candidate key if it is able to be a Primary key.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Foreign key:&lt;/span&gt;&lt;br /&gt;A Foreign key of a relational table is a Primary key in another table such that&lt;br /&gt;the Foreign key should be a proper subset of the Primary key, i.e each and every in the Foreign key can only come from the Primary key.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Unique Key:&lt;/span&gt;&lt;br /&gt;A Unique key is of a relational table uniquely identifies each record in the table but is can be NULL.&lt;br /&gt;&lt;br /&gt;Important Facts:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Every candidate key can be a primary key.&lt;/li&gt;&lt;li&gt;Every candidate key is always a unique key.&lt;/li&gt;&lt;li&gt;This &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;implies&lt;/span&gt; every primary key is also a unique key&lt;/li&gt;&lt;li&gt;But every unique key can not always be a primary/candidate  key.&lt;/li&gt;&lt;li&gt;Because a primary key can not be a NULL value but a unique key can be a NULL value.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-2863443338425554748?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/2863443338425554748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/07/primary-key-candidate-key-unique-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2863443338425554748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2863443338425554748'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/07/primary-key-candidate-key-unique-key.html' title='Primary key, Candidate key, Unique key'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-4786057710540488447</id><published>2009-07-15T02:01:00.000-07:00</published><updated>2009-07-15T02:51:03.025-07:00</updated><title type='text'>MySQL 4.1 : TIMEDIFF( , ) : java.sql.SQLException : Illegal hour value for java.sql.Time type</title><content type='html'>MySQL's TIMEDIFF runs well on MySQl Shell but is an sql exception when using with JDBC.&lt;br /&gt;&lt;span class="CODE"&gt;The problem is that the &lt;/span&gt;TIMEDIFF(expr1,expr2) function returns returns           &lt;em class="replaceable"&gt;&lt;code&gt;expr1&lt;/code&gt;&lt;/em&gt; –           &lt;em class="replaceable"&gt;&lt;code&gt;expr2&lt;/code&gt;&lt;/em&gt; expressed as a time value. This value is handled by &lt;span class="CODE"&gt; java.sql.Time&lt;/span&gt;. But TIMEDIFF( , ) may return (for example) 12:27:58 or 48:30:58 as the case may be. For first value it works but for the second value it is not a proper time value according to &lt;span class="CODE"&gt;java.sql.Time, hence the exception.&lt;br /&gt;&lt;br /&gt;However &lt;/span&gt;this is a known bug in mysql 5.0&lt;br /&gt;&lt;br /&gt;A workaround of this problem is to convert this query to return a string.&lt;br /&gt;E.g. you can query like this&lt;br /&gt;&lt;br /&gt;CONCAT('',TIMEDIFF(expr1,expr2))&lt;br /&gt;&lt;br /&gt;Then the returned value will be a string instead of a time value and JDBC will not parse it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-4786057710540488447?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/4786057710540488447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/07/mysql-41-timediff-javasqlsqlexception.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4786057710540488447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4786057710540488447'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/07/mysql-41-timediff-javasqlsqlexception.html' title='MySQL 4.1 : TIMEDIFF( , ) : java.sql.SQLException : Illegal hour value for java.sql.Time type'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-8405791367858423140</id><published>2009-07-07T05:42:00.000-07:00</published><updated>2009-07-07T06:20:21.116-07:00</updated><title type='text'>Subnet Masking</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Subnet mask&lt;/span&gt;&lt;br /&gt;A subnet mask is a mechanism used to split a network into subnetworks; it can be used to reduce the traffic on each subnetwork by confining traffic to only the subnetwork(s) for which it is intended, thereby eliminating issues of associated congestion on other subnetwork(s) and reducing congestion in the network as a whole. Each subnet functions as though it were independent, keeping traffic local and forwarding traffic to another subnetwork only if the address of the data is external to the subnetwork.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Subnetting Concept&lt;/span&gt;&lt;br /&gt;Subnetting an IP network allows for the flow of network traffic to be segregated based on a network configuration. It essentially organizes the hosts into logical groups, and provides for improving network security and performance. The most common reason for subnetting IP networks is to control network traffic. Traditionally, in an Ethernet network, it is very common for all nodes on a segment to see all the packets transmitted by all the other nodes on that segment, which introduces collisions, and the resulting retransmissions under heavy traffic loads. For additional information on subnetting, see RFC 1817, and RFC 1812.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Class Address Ranges&lt;/span&gt;&lt;br /&gt;Class A - 1.0.0.0 to 126.0.0.0&lt;br /&gt;Class B - 128.0.0.0 to 191.255.0.0&lt;br /&gt;Class C - 192.0.1.0 to 223.255.255.0&lt;br /&gt;Class D* - 224.0.0.0 to 239.255.255.255&lt;br /&gt;Class E* - 240.0.0.0 to 255.255.255.255&lt;br /&gt;Class A, Class B, and Class C are the three classes of addresses used on IP networks in common practice. Class D addresses are reserved for multicast. Class E addresses are simply reserved, meaning they should not be used on IP networks (used on a limited basis by some research organizations for experimental purposes).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Reserved Address Ranges&lt;/span&gt;&lt;br /&gt;Address ranges below are reserved by IANA for private intranets, and not routable to the Internet. For additional information, see RFC 1918.&lt;br /&gt;10.0.0.0 - 10.255.255.255 (10/8 prefix)&lt;br /&gt;172.16.0.0 - 172.31.255.255 (172.16/12 prefix)&lt;br /&gt;192.168.0.0 - 192.168.255.255 (192.168/16 prefix)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Other reserved addresses&lt;/span&gt;&lt;br /&gt;127.0.0.0 is reserved for loopback and IPC on the localhost.&lt;br /&gt;224.0.0.0 - 239.255.255.255 is reserved for multicast addresses.&lt;br /&gt;255.255.255.255 is the limited broadcast address (limited to all other nodes on the LAN)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Subnet Calculator Explanation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the host-id is cancelled, i.e. when the bits reserved for the machines on the network are replaced by zeros (for example 194.28.12.0), something called a network address is obtained. This address cannot be allocated to any of the computers on the network.&lt;br /&gt;When the net-id is cancelled, i.e. when the bits reserved for the network are replaced by zeros, a machine address is obtained. This address represents the machine specified by the host-ID which is found on the current network.&lt;br /&gt;When all the bits of the host-id are at 1, the address obtained is called the broadcast address. This a specific address, enabling a message to be sent to all the machines on the network specified by the net-ID.&lt;br /&gt;Conversely, when all the bits of the net-id are at 1, the address obtained is called the multicast address.&lt;br /&gt;Finally the address 127.0.0.1 is called the loopback address because it indicates the localhost.&lt;br /&gt;&lt;br /&gt;The Network part of the IP address is deduced by operating a binary AND between the IP address and the Network Mask of the Class. The binary AND will let "as-is" all binary values combined with "1"s and will zero all others (see "Binary operators").&lt;br /&gt;For example, for Class A:&lt;br /&gt;&lt;br /&gt;IP address : aaaaaaaa.bbbbbbbb.cccccccc.dddddddd&lt;br /&gt;Network mask: 11111111.00000000.00000000.00000000&lt;br /&gt;Binary AND --------------------------------------&lt;br /&gt;Network : aaaaaaaa.00000000.00000000.00000000&lt;br /&gt;&lt;br /&gt;The Host part of the IP address is deduced by operating a binary AND between the IP address and the Network Mask of the Class inversed (binary NOT).&lt;br /&gt;For example, for the same Class A:&lt;br /&gt;IP address : aaaaaaaa.bbbbbbbb.cccccccc.dddddddd&lt;br /&gt;Network mask inversed: 00000000.11111111.11111111.11111111&lt;br /&gt;Binary AND --------------------------------------&lt;br /&gt;Host : 00000000.bbbbbbbb.cccccccc.dddddddd&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;                                      Dot-decimal Address |        Operator |    Binary&lt;br /&gt;                                      -----------------------------------------------------------------------------------------------&lt;br /&gt;IP address                    | 192.168.5.10 |-| 11000000.10101000.00000101.00001010&lt;br /&gt;&lt;br /&gt;Subnet Mask                | 255.255.255.0 |-| 11111111.11111111.11111111.00000000&lt;br /&gt;&lt;br /&gt;Subnet Mask Inversed |                 0.255.255.255 | Binary NOT  | 00000000.11111111.11111111.11111111&lt;br /&gt;&lt;br /&gt;Network ID/Portion  192.168.5.0 |       Binary AND   | 11000000.10101000.00000101.00000000&lt;br /&gt;&lt;br /&gt;Host ID/Portion          0.0.0.10            | Binary AND   | 00000000.00000000.00000000.00001010&lt;br /&gt;&lt;br /&gt;This calculator will calculate the subnet mask to use, given a TCP/IP network address and the number of subnets or nodes per subnet required.&lt;br /&gt;&lt;br /&gt;To create the subnet mask, first remember that the purpose of the subnet mask is to separate the (32 bit) ip address into the network prefix and the host number. If a bit in the subnet mask is 1, the corresponding bit in the IP address is part of the network address; if the bit in the subnet mask is 0, the corresponding bit in the IP address is part of the host address.&lt;br /&gt;&lt;br /&gt;First depict the ip address in binary. Take 61.246.19.18 and convert to binary:&lt;br /&gt;ip address: 00111101.11110110.00010011.00010010&lt;br /&gt;&lt;br /&gt;First we determine what class of address it is:&lt;br /&gt;•    If the first bit is 0 it is a Class A address.&lt;br /&gt;•    If the first two bits are 10 it is a Class B address.&lt;br /&gt;•    If the first three bits are 110 it is a Class C address.&lt;br /&gt;•    If the first four bits are 1110 it is a Class D multicast address.&lt;br /&gt;•    If the first four bits are 1111 it is a Class E experimental address&lt;br /&gt;&lt;br /&gt;Your example is a Class A address. The default subnet mask for a Class A address is:&lt;br /&gt;subnet mask: 11111111.00000000.00000000.00000000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The formula for figuring out the number of 'host' bits in a subnet mask is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2^n=number of nodes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;n is number of ‘0’s from the right side of the mask.&lt;br /&gt;If you know the number of host/nodes, you need to find 'n'.&lt;br /&gt;&lt;br /&gt;if you want 64 node(s), you want to leave 6 - '0' bits in the subnet mask since 64 = 2 ^ 6.&lt;br /&gt;&lt;br /&gt;This will give you the following subnet mask:&lt;br /&gt;subnet mask: 11111111.11111111.11111111.11000000&lt;br /&gt;Which is referred to as /26 or in dotted decimal notation as 255.255.255.192&lt;br /&gt;&lt;br /&gt;The Subnet Mask and Class determines how many subnets and hosts you get (i.e. how you subnet you network).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;The number of hosts is: 2^(number of host bits)-2&lt;/span&gt;&lt;br /&gt;Class | Number of possible networks | Maximum number of computers on each one&lt;br /&gt;A | 126 | 16777214&lt;br /&gt;B | 16384 | 65534&lt;br /&gt;C | 2097152 | 254&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notations:&lt;br /&gt;o    Dotted decimal notation a.b.c.d&lt;br /&gt;o    We denote a mask address as /x if number of ‘1’s in the mask address is x.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-8405791367858423140?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/8405791367858423140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/07/subnet-masking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/8405791367858423140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/8405791367858423140'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/07/subnet-masking.html' title='Subnet Masking'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-4179689407005590924</id><published>2009-07-07T05:28:00.000-07:00</published><updated>2009-07-07T05:37:10.613-07:00</updated><title type='text'>How to Formate USB Pen Drive</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Option 1:&lt;/span&gt; By Operating System&lt;br /&gt;&lt;br /&gt;For Windows Machine -&lt;br /&gt;Open My computer&gt;right click&gt;manage&gt;disk management&lt;br /&gt;select the pen drive there separately and format it.&lt;br /&gt;&lt;br /&gt;If it doesn't works then again go to same location select your pen drive and opt for delete logical drive&lt;br /&gt;&lt;br /&gt;then again right click to form a new partition or logical drive…select-form a new logical drive- and again format it completely.&lt;br /&gt;&lt;br /&gt;Note: don’t opt for quick format, let it format completely.&lt;br /&gt;&lt;br /&gt;Hope this solves your problem.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Option 2:&lt;/span&gt; By Online Formatting&lt;br /&gt;&lt;br /&gt;Find the serial/model no. of your pen drive on its body.&lt;br /&gt;Search the web site of the company your pen drive is from.&lt;br /&gt;See if the they provide any online formatting/recovery facility.&lt;br /&gt;If yes, follow the instruction.&lt;br /&gt;This should format your pen drive.&lt;br /&gt;&lt;br /&gt;I personally have formatted my pen drive by this method. (When I was not able to format it by the first option.)&lt;br /&gt;&lt;br /&gt;I have a USB Flash Pen Drive of Transcend Company. I went to the online recovery service at-&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.transcendusa.com/Products/online_recovery_1.asp"&gt;http://www.transcendusa.com/Products/online_recovery_1.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And followed the Instructions after proving my Transcend S/N.&lt;br /&gt;&lt;br /&gt;You also may be able to download a USB manager which does this.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Option 3:&lt;/span&gt; By semi installation process&lt;br /&gt;&lt;br /&gt;If you have Windows machine go for an re-installation process and at the end you will get the option to format the drive, but ensure not to touch any other drive previously exist. Otherwise you will lose you data and OS. This is where you would select the NTFS option for the pen drive; it may be given any logical name. As soon as windows has formatted it and gave the drive a file structure it should then work.&lt;br /&gt;This called the semi installation process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-4179689407005590924?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/4179689407005590924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/07/how-to-formate-usb-pen-drive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4179689407005590924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4179689407005590924'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/07/how-to-formate-usb-pen-drive.html' title='How to Formate USB Pen Drive'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-2856306163946838158</id><published>2009-03-03T04:46:00.000-08:00</published><updated>2009-03-03T05:13:43.296-08:00</updated><title type='text'>Disable CSS in Dreamweaver CS3</title><content type='html'>To disable CSS formatting temporarily, choose Edit, Preferences (Dreamweaver, Preferences on a Mac version). In the Preferences dialog box, disable the "Use CSS Instead of HTML" Tags option from the General category. Now you Dreamweaver will add all formattings in HTML tags, directly.&lt;br /&gt;&lt;br /&gt;Step - 1&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_W6Vg6Wevg5c/Sa0rp2O_jUI/AAAAAAAAAJ8/6WjWctKu3Rk/s1600-h/disablecss1.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5308947533672713538" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 216px; CURSOR: hand; HEIGHT: 320px" alt="" src="http://2.bp.blogspot.com/_W6Vg6Wevg5c/Sa0rp2O_jUI/AAAAAAAAAJ8/6WjWctKu3Rk/s320/disablecss1.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;step - 2&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_W6Vg6Wevg5c/Sa0rp23DIuI/AAAAAAAAAJ0/rhlVI-2lumk/s1600-h/disablecss2.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5308947533840720610" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 234px" alt="" src="http://2.bp.blogspot.com/_W6Vg6Wevg5c/Sa0rp23DIuI/AAAAAAAAAJ0/rhlVI-2lumk/s320/disablecss2.JPG" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-2856306163946838158?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/2856306163946838158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/03/disable-css-in-dreamweaver-cs3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2856306163946838158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/2856306163946838158'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/03/disable-css-in-dreamweaver-cs3.html' title='Disable CSS in Dreamweaver CS3'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_W6Vg6Wevg5c/Sa0rp2O_jUI/AAAAAAAAAJ8/6WjWctKu3Rk/s72-c/disablecss1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-4930427885379240106</id><published>2009-02-24T21:41:00.000-08:00</published><updated>2009-02-27T02:19:43.360-08:00</updated><title type='text'>National Informatics Center (NIC) exam 22 Feb 2009</title><content type='html'>&lt;p&gt;&lt;ul&gt;&lt;li&gt;It was a 2 hours paper.&lt;br /&gt;&lt;li&gt;The paper was divided into two parts – Part A, Part B.&lt;br /&gt;&lt;li&gt;The whole paper was objective type.&lt;br /&gt;&lt;li&gt;Total number of questions-100.&lt;br /&gt;&lt;li&gt;Part A – 75 questions.&lt;br /&gt;&lt;li&gt;Part B – 25 questions.&lt;br /&gt;&lt;li&gt;Total marks of the paper – 150 marks.&lt;br /&gt;&lt;li&gt;Part A – 1 mark for one question.&lt;br /&gt;&lt;li&gt;Part B – 3 marks for one question.&lt;br /&gt;&lt;li&gt;All questions had negative marking on wrong answer.&lt;br /&gt;&lt;li&gt;Negative marking -1/3 mark of the total mark(s) allotted for the a particular question.&lt;br /&gt;&lt;li&gt;The whole paper had only technical questions. No quantitative, No reasoning, No verbal or non-verbal questions were asked. It was a fully technical paper. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;strong&gt;Question I could remember are :&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Q1. How many maximum number of node a Binary tree can have ?&lt;br /&gt;&lt;br /&gt;Q2. FDDI ring topology.&lt;br /&gt;&lt;br /&gt;Q3. Hit ratio for cache memory.&lt;br /&gt;&lt;br /&gt;Q4. Time complexity of B+ search.&lt;br /&gt;&lt;br /&gt;Q5. Detail knowledge of all seven layers in networking.&lt;br /&gt;&lt;br /&gt;Q6. If we are having 56kbps net connection and downloading a file which takes X(not remember) time to download then what is the maximum size of the file may be ?&lt;br /&gt;&lt;br /&gt;Q7. CPU time scheduling algorithms (FCFS- primitive, non-primitive....)&lt;br /&gt;&lt;br /&gt;Q8. Calculating “page fault” by the given string of page numbers.&lt;br /&gt;&lt;br /&gt;Q9. Paging, swapping and virtual memory.&lt;br /&gt;&lt;br /&gt;Q10. CPU burst time numerical.&lt;br /&gt;&lt;br /&gt;Q11. Which is latest smallest processor developed by Intel ? ( a. Dual core b. Core 2 Dual c. Atom)&lt;br /&gt;&lt;br /&gt;Q12. Give the out of programs in C, C++, Java.&lt;br /&gt;&lt;br /&gt;Q13. Numerical of Shift Operator. There were 3 questions on right shift operator.&lt;br /&gt;Specially numbers given were negative decimal. So we must know how to represent a negative decimal number in binary format.&lt;br /&gt;&lt;br /&gt;Q14. If you have to upgrade a clients PC from Windows 2000 to XP. But want to convert the file system from FAT to NTFC then what you will do. (a.&lt;br /&gt;Choose the file system during installation. b. Reformat the hard disk and convert it to NTFS).&lt;br /&gt;&lt;br /&gt;Q15. How you we can access the global member of one file within another file of a same program.Ans External specifies (a. Using global declaration. b. using External specifies. c. using Auto specifies.)&lt;br /&gt;&lt;br /&gt;Q16. Breath first search.&lt;br /&gt;&lt;br /&gt;Q17. Which network can provide constant bandwidth during message delivery between transmitter and receiver. ( a. packet switched n/w b. circuit switched n/w )&lt;br /&gt;&lt;br /&gt;Q18. Convert the given infix notation in to postfix notation.&lt;br /&gt;&lt;br /&gt;Q19. int x = 0x00fd; byte y = byte(x); println(y); (Java)&lt;br /&gt;&lt;br /&gt;Q20. C nested Structure, pointer to structure, inner structure creating instance of outer structure.&lt;br /&gt;&lt;br /&gt;Q21. Full form of ACID property of a dbms.&lt;br /&gt;&lt;br /&gt;Q22. All Normal Forms of DBMS (First normal form, Second, Third, Biscode, Forth, Fifth).&lt;br /&gt;&lt;br /&gt;Q23. Find the Canonical cover for the given fictional dependencies – A-&gt;BC, A-&gt;C, B-&gt;C, AB-&gt;C.&lt;br /&gt;&lt;br /&gt;Q24. To remove a node from a Binary tree, which order would be fallowed to place the children’s of this of this node.&lt;br /&gt;&lt;br /&gt;Q25. What software testing exactly means ? (a. Measure the performance the software b. Find the errors in the software c. To insure that the software does what it is developed to do.)&lt;br /&gt;&lt;br /&gt;Q26. Some sort form were give and we have to give it’s exact full form.&lt;br /&gt;&lt;br /&gt;Q27. Algo:&lt;br /&gt;Start&lt;br /&gt;Read p;&lt;br /&gt;Read q;&lt;br /&gt;if(p+q &gt;100)&lt;br /&gt;Print “Too big”;&lt;br /&gt;Else&lt;br /&gt;if(p&gt;50)&lt;br /&gt;Print “P is big”&lt;br /&gt;End&lt;br /&gt;How many test are required to test all conditions of the program?&lt;br /&gt;&lt;br /&gt;Q28. A Static Class can override –Ans. A static class only (a. non-static class b. a static class c. a final class d. an abstract class).&lt;br /&gt;&lt;br /&gt;Q29. Question related to subclass and super class.&lt;br /&gt;&lt;br /&gt;Q24. A sub class can access the members of the super class which are – (a. public b. private c. private and protected d. public and protected).&lt;br /&gt;&lt;br /&gt;Q25. void *ptr;&lt;br /&gt;Struct mystruct{&lt;br /&gt;int x;&lt;br /&gt;float y;&lt;br /&gt;};&lt;br /&gt;Struct mystruct ms;&lt;br /&gt;ptr = ms;&lt;br /&gt;To increment in ptr we use ?&lt;br /&gt;&lt;br /&gt;Q26. Link list reversal algorithm. An algorithm was given and we are asked to choose what is the purpose of this algorithm. It was Link list reversal algorithm.&lt;br /&gt;&lt;br /&gt;Q27.For entering password before reading or writing on a MS Word file which is the right path for encryption . (a. menu bar -&gt; tools -&gt; option -&gt; security b. menu bar -&gt; option -&gt; tools -&gt; security c. menu bar -&gt; edit -&gt; security -&gt; option).&lt;br /&gt;&lt;br /&gt;Q28. Which one is a spooling device. Ans: printer (a. mouse b. keyboard c. printer .monitor) [Spooling :Process of storing computer output before sending it to the printer, permitting the computer to be used for other purposes. In the absence of an adequate buffer or spooling device, the computer user will experience delays in other functions while the printer is operating.]&lt;br /&gt;&lt;br /&gt;Q29. There were two transactions given vis. T1 and T2. And we are ask –&lt;br /&gt;a. T1 and T2 are not serialized b. Both are not serialized c. Both are serializable d. Both are not serializable.&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Q30. There were about three questions on IEEE 802.3 (Ethernet). Specially on IEEE 802.3 Wireless LAN.&lt;br /&gt;&lt;br /&gt;Q31. CSMA/CD.&lt;br /&gt;&lt;br /&gt;Q32. What is the maximum data transfer speed of a pen drive. (a. 420mbps b. 520mbps c. 260mbps d.1024mbps). &lt;/p&gt;&lt;p&gt;Q33. storage area network (SAN) and Network-attached storage (NAS).&lt;/p&gt;&lt;p&gt;Q34. OSI model 7 layers – table matching on the basis of what functions each layer performs.&lt;/p&gt;&lt;p&gt;Q35. Sliding window protocol.&lt;/p&gt;&lt;p&gt;Q36. Which is not an IDE (Integrated Development Environment)? (a. Eclips b. Netbeans c. Visual Studio d. GNOME)&lt;/p&gt;&lt;p&gt;Q37. Calculate a processors data transfer rate on the give valus and conditions.&lt;br /&gt;&lt;br /&gt;Q38. Which is not an OOPs language ? (a. .NET b. Java c. C++ d. Smart Talk)&lt;br /&gt;&lt;br /&gt;Q39. How many hosts can be configured with mask address 255.255.255.0.&lt;/p&gt;&lt;p&gt;Q40. Which is loopback address ? (a. 255.255.255.0 b. 127.0.0.1 c. 0.0.0.1 d. 255.255.255.255)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-4930427885379240106?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/4930427885379240106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/02/national-informatics-center-nic-exam-22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4930427885379240106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/4930427885379240106'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/02/national-informatics-center-nic-exam-22.html' title='National Informatics Center (NIC) exam 22 Feb 2009'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-7383814071351305816</id><published>2009-02-17T00:14:00.001-08:00</published><updated>2009-02-17T00:14:43.714-08:00</updated><title type='text'>Difference between web server and Application server</title><content type='html'>A web server refers to a server which normally listens at port 80 and serves uphtml pages, images, etc... The html pages are usually static pages unless they contain JavaScript. An application which uses servlets and jsps requires anapplication server such as Tomcat, WebSphere, WebLogic, etc.... These application servers include a "web container". Basically the "web container"is a software which implements the "servlet contract". If you look at the api documentation for javax.servlet and javax.servlet.http, you will see that the mostimportant objects (e.g. ServletRequest, ServletResponse, Servlet, HttpSession, etc...)are interfaces not classes. The reason for this is that each application serverimplements its own classes which implement these interfaces.&lt;br /&gt;Typically, a Web server refers to an execution infrastructure that handlesHTTP requests and responses; a servlet container refers to a component that handles the lifecycle for servlets; an application server refers to a framework(servlet container, EJB container, JSP engine, MQ container, etc.) for handling Web applications. However, a Web container has a couple of meanings dependingon the source. Most refer to a Web container as the part of an application serverthat manages servlets, JavaServer Pages (JSP) files, and other Web-tier components.Some refer to a Web container as the infrastructure for managing the lifecycle forWeb services.&lt;br /&gt;For example:Apache Web Server is what your browser connects to, Tomcat Web Container is whatApache WeB Server connects to ask for servlets to be processed. However, Tomcat now includes a web server so you can cut out the middle man. You might not want to do this on a large production environment.Tomcat can run either in stand-alone mode or "connected" to Apache.In stand-alonemode, Tomcat can process servlets (and JSPs) and can serve static content as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-7383814071351305816?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/7383814071351305816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/02/difference-between-web-server-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/7383814071351305816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/7383814071351305816'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/02/difference-between-web-server-and.html' title='Difference between web server and Application server'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-967307190322957873</id><published>2009-02-17T00:13:00.000-08:00</published><updated>2009-02-17T00:24:07.991-08:00</updated><title type='text'>A List of JDBC Drivers</title><content type='html'>If you need to access a database with Java, you need a driver. This is a list of the drivers available, what database they can access, who makes it, and how to contact them.&lt;br /&gt;&lt;br /&gt;IBM DB2&lt;br /&gt;jdbc:db2://&lt;host&gt;:&lt;port&gt;/&lt;db&gt;&lt;br /&gt;COM.ibm.db2.jdbc.app.DB2Driver&lt;br /&gt;&lt;br /&gt;JDBC-ODBC Bridge&lt;br /&gt;jdbc:odbc:&lt;db&gt;&lt;br /&gt;sun.jdbc.odbc.JdbcOdbcDriver&lt;br /&gt;&lt;br /&gt;Microsoft SQL Server&lt;br /&gt;jdbc:weblogic:mssqlserver4:&lt;db&gt;@&lt;host&gt;:&lt;port&gt;&lt;br /&gt;weblogic.jdbc.mssqlserver4.Driver&lt;br /&gt;&lt;br /&gt;Oracle Thin&lt;br /&gt;jdbc:oracle:thin:@&lt;host&gt;:&lt;port&gt;:&lt;sid&gt;&lt;br /&gt;oracle.jdbc.driver.OracleDriver&lt;br /&gt;&lt;br /&gt;PointBase Embedded Server&lt;br /&gt;jdbc:pointbase://embedded[:&lt;port&gt;]/&lt;db&gt;&lt;br /&gt;com.pointbase.jdbc.jdbcUniversalDriver&lt;br /&gt;&lt;br /&gt;Cloudscape&lt;br /&gt;jdbc:cloudscape:&lt;db&gt;&lt;br /&gt;COM.cloudscape.core.JDBCDriver&lt;br /&gt;&lt;br /&gt;Cloudscape RMI&lt;br /&gt;jdbc:rmi://&lt;host&gt;:&lt;port&gt;/jdbc:cloudscape:&lt;db&gt;&lt;br /&gt;RmiJdbc.RJDriver&lt;br /&gt;&lt;br /&gt;Firebird (JCA/JDBC Driver)&lt;br /&gt;jdbc:firebirdsql:[//&lt;host&gt;[:&lt;port&gt;]/]&lt;db&gt;&lt;br /&gt;org.firebirdsql.jdbc.FBDriver&lt;br /&gt;&lt;br /&gt;IDS Server&lt;br /&gt;jdbc:ids://&lt;host&gt;:&lt;port&gt;/conn?dsn='&lt;odbc_dsn_name&gt;'&lt;br /&gt;ids.sql.IDSDriver&lt;br /&gt;&lt;br /&gt;Informix Dynamic Server&lt;br /&gt;jdbc:informix-sqli://&lt;host&gt;:&lt;port&gt;/&lt;db&gt;:INFORMIXSERVER=&lt;server_name&gt;&lt;br /&gt;com.informix.jdbc.IfxDriver&lt;br /&gt;&lt;br /&gt;InstantDB (v3.13 and earlier)&lt;br /&gt;jdbc:idb:&lt;db&gt;&lt;br /&gt;jdbc.idbDriver&lt;br /&gt;&lt;br /&gt;InstantDB (v3.14 and later)&lt;br /&gt;jdbc:idb:&lt;db&gt;&lt;br /&gt;org.enhydra.instantdb.jdbc.idbDriver&lt;br /&gt;&lt;br /&gt;Interbase (InterClient Driver)&lt;br /&gt;jdbc:interbase://&lt;host&gt;/&lt;db&gt;&lt;br /&gt;interbase.interclient.Driver&lt;br /&gt;&lt;br /&gt;Hypersonic SQL (v1.2 and earlier)&lt;br /&gt;jdbc:HypersonicSQL:&lt;db&gt;&lt;br /&gt;hSql.hDriver&lt;br /&gt;&lt;br /&gt;Hypersonic SQL (v1.3 and later)&lt;br /&gt;jdbc:HypersonicSQL:&lt;db&gt;&lt;br /&gt;org.hsql.jdbcDriver&lt;br /&gt;&lt;br /&gt;Microsoft SQL Server (JTurbo Driver)&lt;br /&gt;jdbc:JTurbo://&lt;host&gt;:&lt;port&gt;/&lt;db&gt;&lt;br /&gt;com.ashna.jturbo.driver.Driver&lt;br /&gt;&lt;br /&gt;Microsoft SQL Server (Sprinta Driver)&lt;br /&gt;jdbc:inetdae:&lt;host&gt;:&lt;port&gt;?database=&lt;db&gt;&lt;br /&gt;com.inet.tds.TdsDriver&lt;br /&gt;&lt;br /&gt;Microsoft SQL Server 2000 (Microsoft Driver)&lt;br /&gt;jdbc:microsoft:sqlserver://&lt;host&gt;:&lt;port&gt;[;DatabaseName=&lt;db&gt;]&lt;br /&gt;com.microsoft.jdbc.sqlserver.SQLServerDriver&lt;br /&gt;&lt;br /&gt;MySQL (MM.MySQL Driver)&lt;br /&gt;jdbc:mysql://&lt;host&gt;:&lt;port&gt;/&lt;db&gt;&lt;br /&gt;org.gjt.mm.mysql.Driver&lt;br /&gt;&lt;br /&gt;Oracle OCI 8i&lt;br /&gt;jdbc:oracle:oci8:@&lt;sid&gt;&lt;br /&gt;oracle.jdbc.driver.OracleDriver&lt;br /&gt;&lt;br /&gt;Oracle OCI 9i&lt;br /&gt;jdbc:oracle:oci:@&lt;sid&gt;&lt;br /&gt;oracle.jdbc.driver.OracleDriver&lt;br /&gt;&lt;br /&gt;PostgreSQL (v6.5 and earlier)&lt;br /&gt;jdbc:postgresql://&lt;host&gt;:&lt;port&gt;/&lt;db&gt;&lt;br /&gt;postgresql.Driver&lt;br /&gt;&lt;br /&gt;PostgreSQL (v7.0 and later)&lt;br /&gt;jdbc:postgresql://&lt;host&gt;:&lt;port&gt;/&lt;db&gt;&lt;br /&gt;org.postgresql.Driver&lt;br /&gt;&lt;br /&gt;Sybase (jConnect 4.2 and earlier)&lt;br /&gt;jdbc:sybase:Tds:&lt;host&gt;:&lt;port&gt;&lt;br /&gt;com.sybase.jdbc.SybDriver&lt;br /&gt;&lt;br /&gt;Sybase (jConnect 5.2)&lt;br /&gt;jdbc:sybase:Tds:&lt;host&gt;:&lt;port&gt;&lt;br /&gt;com.sybase.jdbc2.jdbc.SybDriver&lt;br /&gt;&lt;br /&gt;To test your driver once it's installed, try the following code:&lt;br /&gt;{&lt;br /&gt;Class.forName("Driver name");&lt;br /&gt;Connection con = DriverManager.getConnenction("jdbcurl","username","password"); //other manipulation using jdbc commands&lt;br /&gt;}&lt;br /&gt;catch(Exception e){}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-967307190322957873?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/967307190322957873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/02/list-of-jdbc-drivers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/967307190322957873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/967307190322957873'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/02/list-of-jdbc-drivers.html' title='A List of JDBC Drivers'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3128337004360550284.post-1530828326466398778</id><published>2009-02-17T00:12:00.000-08:00</published><updated>2009-07-23T04:31:08.967-07:00</updated><title type='text'>What is Daemon thread</title><content type='html'>Any Java thread can be a &lt;em&gt;daemon&lt;/em&gt; thread. Daemon threads are service providers for other threads running in the same process as the daemon thread. For example, the HotJava browser uses up to four daemon threads named "Image Fetcher" to fetch images from the file system or network for any thread that needs one. The &lt;code&gt;run()&lt;/code&gt; method for a daemon thread is typically an infinite loop that waits for a service request. It sits idly in the background until it is invoked to perform its task.&lt;p&gt; When the only remaining threads in a process are daemon threads, the interpreter exits. This makes sense because when only daemon threads remain, there is no other thread for which a daemon thread can provide a service. &lt;/p&gt;&lt;p&gt; To specify that a thread is a daemon thread, call the &lt;code&gt;setDaemon&lt;/code&gt; method with the argument &lt;code&gt;true&lt;/code&gt;. To determine if a thread is a daemon thread, use the accessor method &lt;code&gt;isDaemon&lt;/code&gt;.   &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3128337004360550284-1530828326466398778?l=gaganichake.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gaganichake.blogspot.com/feeds/1530828326466398778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gaganichake.blogspot.com/2009/02/what-is-daemon-thread.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/1530828326466398778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3128337004360550284/posts/default/1530828326466398778'/><link rel='alternate' type='text/html' href='http://gaganichake.blogspot.com/2009/02/what-is-daemon-thread.html' title='What is Daemon thread'/><author><name>Gagan Ichake</name><uri>http://www.blogger.com/profile/05422491735721418271</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_W6Vg6Wevg5c/TBdNyamG8KI/AAAAAAAAA3E/eNObaRjd1hQ/S220/Image0562.jpg'/></author><thr:total>0</thr:total></entry></feed>
