<?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-1883847119127615758</id><updated>2011-08-13T07:00:47.125-07:00</updated><category term='Jar'/><category term='String'/><category term='Java'/><title type='text'>Java's Chronicle</title><subtitle type='html'>get to know about Java!!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-9121033246160000686</id><published>2010-06-22T07:47:00.000-07:00</published><updated>2010-06-22T07:47:03.301-07:00</updated><title type='text'>Eclipse key board shortcuts -Techies</title><content type='html'>&lt;strong&gt;Eclipse key board shortcuts :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+space. Autocomplete.&lt;/strong&gt;&lt;br /&gt;This will recommend a list of classes they will fit what you have typed so far. If there is only one match, it will just print it out for you. After it does print it out for you, it will include the import for you. If something is ever missing the import at the top, I will just go to the Class declaration and just hit Ctrl+space.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+O : Import packages:&lt;/strong&gt;&lt;br /&gt;This is very much required when we have to import packages for classes. (Organizing)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+R. Open resource.&lt;/strong&gt;&lt;br /&gt;I cannot live without this shortcut. It is such a time saver. Whenever you are trying to find a specific class, just start typing it and it will populate which classes match that criteria. Once you found it, select it and there you go! It also works great if you are new to a framework and need to find certain classes or if you partly recall the class name but not 100% sure.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+O. Show inherited members.&lt;/strong&gt;&lt;br /&gt;This is another one that works great when you are working with classes with a massive lump of methods attached to it. You COULD do this within the Package Explorer, but no one likes touching that mouse! You can even type to filter down your methods. If you have methods with the same name and just different parameters, this also works great. Just type in part of the method name and get a few overview and access to each of the methods.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+H. Loads search box.&lt;/strong&gt;&lt;br /&gt;I cant tell you how often this saves me. This isnt just a ‘find’ box, this does a ‘find in files’ within the File Search tab. Within here, you can specify what you are looking for in the files, what you file types you want to search in, etc. There are other types of search you can use, but I have not run into a case where I need them. Have you?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+C. Comments a block of code.&lt;/strong&gt;&lt;br /&gt;This is perfect for debugging. It is strange because really when you think about it, you are only talking about having something put a /* at the begging of what you selected and a */ at the end of what you selected. However, I use this a lot more often than you would expect.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+D. Delete a line.&lt;/strong&gt;&lt;br /&gt;Self explanatory. Extremely useful. If I didn’t have that, I’d have to waste time with Shift+End, Delete!.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+E. Menu for opened files.&lt;/strong&gt;&lt;br /&gt;This will bring up a list of opened files that you have. Not only that, it will also allow you to type in your class names to narrow down your choices.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+E : Window for Opened files:&lt;/strong&gt;&lt;br /&gt;This key is used to view all the files opened in the editor , where it will be easy to identify &amp;amp; open the files .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+1: &lt;/strong&gt;&lt;br /&gt;Is used for renaming variables at a time through out the file. Will be useful when we want to rename the variable name where the variable being used at many places.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F4. Shows class hierarchy.&lt;/strong&gt;&lt;br /&gt;This is extremely useful when you are new to a with a massive framework and you really want to get a sense of how things are all connect, who extends what, etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F3 and Ctrl+Left Mouse Click. Shows declaration.&lt;/strong&gt;&lt;br /&gt;I enjoy using this when I am working with larger files or anything with long methods (which always irks me). It can get extremely annoying to see where some variables are declared. All you have to do is high light the variable then hit F3. Sometimes I will hold control and hover over variable names if I am having a problem.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F5, F6, F7, F8. In debug mode.&lt;/strong&gt;&lt;br /&gt;There three shortcuts are probably used more than anything. I wanted to group them all into one section.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F5 – Step Into. &lt;/strong&gt;When you are debugging an application and you come across a function call, F5 will step into that function and proceed from there.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F6 – Step.&lt;/strong&gt; This allow you to debug line by line. However, this will not step into any functions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F7 – Step out.&lt;/strong&gt; If you are debugging in a function and you want to step out of it to where the function was called, this is what is used.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;F8 – Skip to next breakpoint&lt;/strong&gt;. If there arent any other break points to high, you will be just running the application until your application hits another breakpoint, taking you back into debug mode.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Alt+leftarrow or Alt+rightarrow.&lt;/strong&gt; Jump back to a line, Jump forward to a line.&lt;br /&gt;According to eclipse, this is “Next word, Previous word’. I am not sure what that means. All I know if I am stepping into functions, debugging through multiple files and breakpoints, this is a life saver. It allows me to retrace my steps, step by step. If I go back with Alt+leftarrow, I can go right back to where I was with Alt+rightarray.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+L.&lt;/strong&gt; Displays all shortcuts.&lt;br /&gt;Self explanitory. Dig in and find your favorite!This last one is not about using a shortcut. It is about what you have to do to turn it of. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+W or Ctrl+F4:&lt;/strong&gt; close the single file.&lt;br /&gt;This is used to close the current file that is opened in the editor.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+W or Ctrl+Shift+F4 &lt;/strong&gt;: Close all the files:&lt;br /&gt;When many files we have opened this is very much useful to close all the files opened in the editor in a single shot.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Alt + left key : &lt;/strong&gt;Navigation&lt;br /&gt;This is used to navigate from one page to another page in the left direction .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Alt+right key :&lt;/strong&gt; the same as above for right navigation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+/ &lt;/strong&gt;: comment&lt;br /&gt;This is used to add the block level comment in a page.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+\ : remove comment&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ctrl+Shift+F : Formatting contents&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Save your time using keyboard....... &lt;br /&gt;&amp;nbsp; &lt;br /&gt;Rocking, &lt;br /&gt;Shyamala&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-9121033246160000686?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/9121033246160000686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/06/eclipse-key-board-shortcuts-techies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/9121033246160000686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/9121033246160000686'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/06/eclipse-key-board-shortcuts-techies.html' title='Eclipse key board shortcuts -Techies'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-461102411422138073</id><published>2010-06-19T07:51:00.000-07:00</published><updated>2010-06-19T07:51:18.253-07:00</updated><title type='text'>ECLIPSE DEBUGGING TUTORIAL</title><content type='html'>Debugging Using eclipse :&lt;br /&gt;&lt;br /&gt;Let us consider one simple Java project :&lt;br /&gt;&lt;br /&gt;Where i have created in the following manner.&lt;br /&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3UvVh-40xf0/TBzQH_xohbI/AAAAAAAACj8/yb-5Q3VHpTQ/s1600/s.bmp" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" qu="true" src="http://2.bp.blogspot.com/_3UvVh-40xf0/TBzQH_xohbI/AAAAAAAACj8/yb-5Q3VHpTQ/s320/s.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&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;Presently it is in java perspective.......&lt;br /&gt;&lt;br /&gt;we can change the perspective into debugging by clicking WINDOW--&amp;gt;Open perspective ---&amp;gt; and go&lt;br /&gt;&lt;br /&gt;to other and select “Debug”.&lt;br /&gt;&lt;br /&gt;Then : &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3UvVh-40xf0/TBzSYvHELyI/AAAAAAAACkE/cK4GYBlJlKw/s1600/s1.bmp" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="172" qu="true" src="http://1.bp.blogspot.com/_3UvVh-40xf0/TBzSYvHELyI/AAAAAAAACkE/cK4GYBlJlKw/s320/s1.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&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;We can add the break point lines by double clicking on the line in source code...&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;You can observe clearly there are areas EXECUTION STACK,WATCH VARIABLES AND EXPRESSION AREA,SOURCE CODE Area,and as well CONSOLE SCREEN.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Observe the following screen shot to add watch expression as well as execution environmen&lt;/em&gt;t&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3UvVh-40xf0/TBzTvdPlLHI/AAAAAAAACkM/T5zfXFfU9pU/s1600/s3.bmp" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" qu="true" src="http://1.bp.blogspot.com/_3UvVh-40xf0/TBzTvdPlLHI/AAAAAAAACkM/T5zfXFfU9pU/s320/s3.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&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;ul&gt;&lt;li&gt;&amp;nbsp;&amp;nbsp;By using F11 key we can start debugging any Java application.&lt;/li&gt;&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Here in this case i have added two watch expression one is “i” value and another is “str1” value.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp; By using F6 key we can do step by step execution of a program.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;By using F8 key we can skip the current break point it will be jumping into the next break point start.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&amp;nbsp;&lt;strong&gt;Observe the next screen shot which shows the values of “i” &amp;amp; str1&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3UvVh-40xf0/TBzVqYg0WiI/AAAAAAAACkU/z9TAYkUqVRs/s1600/s4.bmp" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" qu="true" src="http://4.bp.blogspot.com/_3UvVh-40xf0/TBzVqYg0WiI/AAAAAAAACkU/z9TAYkUqVRs/s320/s4.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&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;Thats it ..............&lt;br /&gt;&lt;br /&gt;This is simple debugging of Java application.&lt;br /&gt;&lt;br /&gt;JUST SCROLL DOWN........&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3UvVh-40xf0/TBzWrXlX_-I/AAAAAAAACkc/8crRNSU7gcU/s1600/s5.bmp" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="185" qu="true" src="http://3.bp.blogspot.com/_3UvVh-40xf0/TBzWrXlX_-I/AAAAAAAACkc/8crRNSU7gcU/s320/s5.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&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;This is how it will be after termination of Program...which stops with THREAD....&lt;br /&gt;&lt;br /&gt;Very much required as a developer to know how to use Eclipse debugging ......as in the real world applications development no body will prefer using System.out.println();......&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So be the best by learning &amp;amp; practicing this .....&lt;br /&gt;&lt;br /&gt;Keep Rocking &lt;br /&gt;Shyamala&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-461102411422138073?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/461102411422138073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/06/eclipse-debugging-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/461102411422138073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/461102411422138073'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/06/eclipse-debugging-tutorial.html' title='ECLIPSE DEBUGGING TUTORIAL'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3UvVh-40xf0/TBzQH_xohbI/AAAAAAAACj8/yb-5Q3VHpTQ/s72-c/s.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-3278565267403741533</id><published>2010-04-13T22:05:00.000-07:00</published><updated>2010-04-13T22:12:31.115-07:00</updated><title type='text'>Displaying IP Address of the system using Runtime</title><content type='html'>Runtime is a class which is specifically made for the purpose to run any kind of process using "exec" method&lt;br /&gt;&lt;br /&gt;import java.io.*;&lt;br /&gt;class DisplayIP{&lt;br /&gt; public static void main(String args[]){&lt;br /&gt;&lt;br /&gt;  Runtime runtime = Runtime.getRuntime(); &lt;br /&gt;  try{&lt;br /&gt;  Process process = runtime.exec(&lt;span style="font-weight:bold;"&gt;"cmd.exe /c ipconfig"&lt;/span&gt;);&lt;br /&gt;  InputStream in = process.getInputStream();&lt;br /&gt;  int ch = in.read();&lt;br /&gt;  while(ch!=-1){&lt;br /&gt;  System.out.print((char)ch);&lt;br /&gt;  ch=in.read();&lt;br /&gt;  }&lt;br /&gt;                in.close();&lt;br /&gt;  }&lt;br /&gt;  catch(IOException e){&lt;br /&gt;  System.out.println(e);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Still any doubt !!! check out by clicking the link&lt;br /&gt;http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html&lt;br /&gt;Cheers&lt;br /&gt;Shyamala&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-3278565267403741533?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/3278565267403741533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/04/displaying-ip-address-of-system-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/3278565267403741533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/3278565267403741533'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/04/displaying-ip-address-of-system-using.html' title='Displaying IP Address of the system using Runtime'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-6118720273612676339</id><published>2010-04-13T00:14:00.000-07:00</published><updated>2010-04-13T00:27:51.538-07:00</updated><title type='text'>Deep Copy vs Shallow Copy in C++</title><content type='html'>Usually in c++ we will be more confused about these constructors about deep copying &amp; shallow copying.....&lt;br /&gt;&lt;br /&gt;Here is a simple example where there is a class called String where we have to strings which is used to store firstname ,lastname  and the age of the person.&lt;br /&gt;&lt;br /&gt;Where in case of this I am creating the Object of String with the name s1 which after reading the details I am assigning it to one more Object s2.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;iostream.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;class String&lt;br /&gt;{&lt;br /&gt; char *firstname; // declaring pointer to store string&lt;br /&gt; char *lastname;&lt;br /&gt; int age;&lt;br /&gt;&lt;br /&gt; public:&lt;br /&gt;  String()&lt;br /&gt;  {&lt;br /&gt;  firstname = new char[30];&lt;br /&gt;  lastname = new char[30];&lt;br /&gt;  age=0;&lt;br /&gt;  }&lt;br /&gt;  void read()&lt;br /&gt;  {&lt;br /&gt;  cout&amp;lt;&amp;lt;"\n Enter name:";&lt;br /&gt;  cin&amp;gt;&amp;gt;firstname&amp;gt;&amp;gt;lastname;&lt;br /&gt;  cout&amp;lt;&amp;lt;"\n age :";&lt;br /&gt;  cin&amp;gt;&amp;gt;age;&lt;br /&gt;  }&lt;br /&gt;  void print()&lt;br /&gt;  {&lt;br /&gt;  cout&amp;lt;&amp;lt;"\n name is "&amp;lt;&amp;lt;firstname&amp;lt;&amp;lt;" "&amp;lt;&amp;lt;lastname;&lt;br /&gt;  cout&amp;lt;&amp;lt;"\n Age :"&amp;lt;&amp;lt;age;&lt;br /&gt;  }&lt;br /&gt;  ~String()&lt;br /&gt;  {&lt;br /&gt;   delete[]firstname;&lt;br /&gt;   delete[]lastname;&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt; clrscr();&lt;br /&gt;&lt;br /&gt; String s1;&lt;br /&gt; s1.read();&lt;br /&gt; s1.print();&lt;br /&gt;&lt;br /&gt; String s2=s1; //assigning the object s1 to s2 &lt;br /&gt; s2.print();&lt;br /&gt;&lt;br /&gt; s1.read();&lt;br /&gt;&lt;br /&gt; s1.print();&lt;br /&gt; s2.print();&lt;br /&gt;&lt;br /&gt; getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;U can observe after u make any changes to the s1 object with the Strings that is firstname,lastname it will be reflected in s2 object also.&lt;br /&gt;&lt;br /&gt;So by default there is one copy constructor given for you in your c++ classes which will be of this prototype which just assigns the values using "=" operator.&lt;br /&gt;&lt;br /&gt;Prototype of Copy constructor:&lt;br /&gt;     ClassName(ClassName &amp;Object){&lt;br /&gt;       }&lt;br /&gt;This is &lt;span style="font-weight:bold;"&gt;"SHALLOW COPYING"&lt;/span&gt;&lt;br /&gt;For the above class :&lt;br /&gt;         String(String &amp;s){&lt;br /&gt;           firstname=s.firstname;&lt;br /&gt;           lastname=s.lastname;&lt;br /&gt;           age = s.age;&lt;br /&gt;         }&lt;br /&gt;&lt;br /&gt;To over come this problem where it should be allocated with the own memory allocations just keep this below code and observe which is called &lt;span style="font-weight:bold;"&gt;"DEEP COPYING"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; String(String &amp;s)&lt;br /&gt; {&lt;br /&gt;  cout&amp;lt;&amp;lt;"\n copying......";&lt;br /&gt;  int l1= strlen(s.firstname)+1;&lt;br /&gt;  int l2= strlen(s.lastname)+1;&lt;br /&gt;  firstname = new char[l1];&lt;br /&gt;  lastname = new char[l2];&lt;br /&gt;  strcpy(firstname,s.firstname);&lt;br /&gt;  strcpy(lastname,s.lastname);&lt;br /&gt;  age=s.age;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SHALLOW COPYING IS DEFAULT DONE .......WHICH OVERLOADS "=" operators.&lt;br /&gt;&lt;br /&gt;DEEP COPYING YOU SHOULD WRITE ON YOUR OWN!!&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Shyamala&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-6118720273612676339?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/6118720273612676339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/04/deep-copy-vs-shallow-copy-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/6118720273612676339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/6118720273612676339'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/04/deep-copy-vs-shallow-copy-in-c.html' title='Deep Copy vs Shallow Copy in C++'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-4271732375762543328</id><published>2010-04-10T04:40:00.000-07:00</published><updated>2010-04-10T04:41:26.726-07:00</updated><title type='text'>SCJP Questions</title><content type='html'>Question 1 :&lt;br /&gt;class Demo{&lt;br /&gt; public static void main(String args){&lt;br /&gt; System.out.println("welcome to java");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;What will be the output of the program:&lt;br /&gt;a)   Error at compile time    b)  Error at Runtime&lt;br /&gt;c)   prints welcome to java    d) No Error and no output&lt;br /&gt;&lt;br /&gt;===============================================================&lt;br /&gt;Question 2:&lt;br /&gt;Which of the following are legal statements in Java?&lt;br /&gt;a) float f=1/3;      b) float f=1.01;&lt;br /&gt;c) int i=1/3;      d) double d=999d;&lt;br /&gt;&lt;br /&gt;===============================================================&lt;br /&gt;Question 3:&lt;br /&gt;What will happen when you compile and run the following code?&lt;br /&gt;public class MyClass{  &lt;br /&gt; static int i;  &lt;br /&gt; public static void main(String argv[]){  &lt;br /&gt; System.out.println(i);  &lt;br /&gt; }  &lt;br /&gt;}  &lt;br /&gt;a) Error Variable i may not have been initialized   c) 1&lt;br /&gt;b) null         d) 0 &lt;br /&gt;&lt;br /&gt;===============================================================&lt;br /&gt;Question 4:&lt;br /&gt;class Demo{&lt;br /&gt; static void print(){&lt;br /&gt; System.out.println("Hello");&lt;br /&gt; }&lt;br /&gt; public static void main(String args){&lt;br /&gt;  Demo d =null;&lt;br /&gt;  d.print();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;a)   Error at compile time    b)  Error at Runtime &lt;br /&gt;c)   prints Hello     d) No Error and no output&lt;br /&gt;&lt;br /&gt;===============================================================Question 5:&lt;br /&gt;Which of the following statements are true?&lt;br /&gt;a) A byte can represent between -128 to 127 &lt;br /&gt;b) A byte can represent between -256 to 256&lt;br /&gt;c) A byte can represent between -127 to 128 &lt;br /&gt;d) A char can represent between -2x2 pow 16 2 x2 pow 16 - 1&lt;br /&gt;&lt;br /&gt;===============================================================Question 6:&lt;br /&gt;Which of the following statements are true?&lt;br /&gt;a) Constructors cannot have a visibility modifier  &lt;br /&gt;b) Constructors can only have a primitive return type&lt;br /&gt;c) Constructors can be marked public and protected, but not private &lt;br /&gt;d) Constructors are not inherited&lt;br /&gt;&lt;br /&gt;===============================================================Question 7:&lt;br /&gt;What will happen when you attempt to compile and run the following class? &lt;br /&gt;class Base{  &lt;br /&gt;Base(int i){  &lt;br /&gt;    System.out.println("Base");  &lt;br /&gt;    }  &lt;br /&gt;}  &lt;br /&gt;class Severn extends Base{  &lt;br /&gt;public static void main(String argv[]){  &lt;br /&gt;        Severn s = new Severn();  &lt;br /&gt;    }  &lt;br /&gt;void Severn(){  &lt;br /&gt;         System.out.println("Severn");  &lt;br /&gt;    }  &lt;br /&gt;}  &lt;br /&gt;a) Compilation and output of the string "Severn" at runtime &lt;br /&gt;b) Compilation and no output at runtime&lt;br /&gt;c) Compile time error&lt;br /&gt;d) Compilation and output of the string "Base"&lt;br /&gt;&lt;br /&gt;===============================================================Question 8:&lt;br /&gt;Given the following code&lt;br /&gt;class Base {}  &lt;br /&gt;   &lt;br /&gt;class Agg extends Base{  &lt;br /&gt;        public String getFields(){  &lt;br /&gt;         String name =  "Agg";  &lt;br /&gt;        return name;  &lt;br /&gt;        }  &lt;br /&gt;}  &lt;br /&gt;public class Avf{  &lt;br /&gt;public static void main(String argv[]){  &lt;br /&gt;        Base a = new Agg();  &lt;br /&gt;        //Here  &lt;br /&gt;        }  &lt;br /&gt;}  &lt;br /&gt;What code placed after the comment //Here will result in calling the getFields method resulting in the output of the string "Agg"?  &lt;br /&gt;a) System.out.println(a.getFields()); &lt;br /&gt;b) System.out.println((Base) a.getFields());&lt;br /&gt;c) System.out.println(a.name); &lt;br /&gt;d) System.out.println( ((Agg) a).getFields());&lt;br /&gt;&lt;br /&gt;===============================================================Question 9:&lt;br /&gt;What will happen when you attempt to compile and run the following code? &lt;br /&gt;public class Inc{  &lt;br /&gt;public static void main(String argv[]){  &lt;br /&gt;                Inc inc = new Inc();  &lt;br /&gt;                int i =0;   &lt;br /&gt;                inc.fermin(i);  &lt;br /&gt;                i = i++;  &lt;br /&gt;                System.out.println(i);  &lt;br /&gt;        }  &lt;br /&gt;        void fermin(int i){  &lt;br /&gt;                i++;  &lt;br /&gt;        }  &lt;br /&gt;}  &lt;br /&gt;a) Compile time error  b) Output of 1&lt;br /&gt;c) Output of 2   d) Output of 0&lt;br /&gt; &lt;br /&gt;===============================================================Question 10:&lt;br /&gt;Given the following class  &lt;br /&gt;public class Ombersley{  &lt;br /&gt;public static void main(String argv[]){  &lt;br /&gt;        boolean b1 = true;  &lt;br /&gt;        if((b1 ==true) || place(true)){  &lt;br /&gt;                System.out.println("Hello Crowle");  &lt;br /&gt;                }  &lt;br /&gt;        }  &lt;br /&gt;   &lt;br /&gt;        public static boolean place(boolean location){  &lt;br /&gt;        if(location==true){  &lt;br /&gt;                System.out.println("Borcetshire");  &lt;br /&gt;                }  &lt;br /&gt;        System.out.println("Powick");  &lt;br /&gt;        return true;  &lt;br /&gt;        }  &lt;br /&gt;}  &lt;br /&gt;What will happen when you attempt to compile and run it?&lt;br /&gt;a) Compile time error &lt;br /&gt;b) Output of Borcetshire and Powick followed by "Hello Crowle"&lt;br /&gt;c) Output of "Hello Crowle" &lt;br /&gt;d) No output&lt;br /&gt;===============================================================Question 11:&lt;br /&gt;What will happen when you attempt to compile and run the following code?  &lt;br /&gt;public class Sandys{  &lt;br /&gt;private int court;  &lt;br /&gt;public static void main(String argv[]){  &lt;br /&gt;        Sandys s = new Sandys(99);  &lt;br /&gt;        System.out.println(s.court);  &lt;br /&gt;        }  &lt;br /&gt;Sandys(int ballcount){  &lt;br /&gt;        court=ballcount;  &lt;br /&gt;        }  &lt;br /&gt;}  &lt;br /&gt;a) Compile time error, the variable court is defined as private&lt;br /&gt;b) Compile time error, s is not initialized when the System.out method is called  &lt;br /&gt;c) Compilation and execution with no output&lt;br /&gt;d) Compilation and run with an output of 99&lt;br /&gt;===============================================================&lt;br /&gt;Question 12:&lt;br /&gt;Given the following code  &lt;br /&gt;class Base{  &lt;br /&gt;static int oak=99;  &lt;br /&gt;}  &lt;br /&gt;public class Doverdale extends Base{  &lt;br /&gt;public static void main(String argv[]){  &lt;br /&gt;        Doverdale d = new Doverdale();  &lt;br /&gt;        d.amethod();  &lt;br /&gt;        }  &lt;br /&gt;        public void amethod(){  &lt;br /&gt;        //Here  &lt;br /&gt;        }         &lt;br /&gt;}  &lt;br /&gt;Which of the following if placed after the comment //Here, will compile and modify the value of the variable oak?  &lt;br /&gt;a) super.oak=1;     b) Base.oak=22;&lt;br /&gt;c) oak=33;     d) oak=50.1;&lt;br /&gt;===============================================================Question 13:&lt;br /&gt;Which of the following statements are true?&lt;br /&gt;a) A method cannot be overloaded to be less public in a child class&lt;br /&gt;b) To be overridden a method only needs the same name and parameter types&lt;br /&gt;c) To be overridden a method must have the same name, parameter and return types&lt;br /&gt;d) An overridden method must have the same name, parameter names and parameter types&lt;br /&gt;===============================================================Question 14:&lt;br /&gt;You want to loop through an array and stop when you come to the last element. Being a good java programmer and forgetting everything you ever knew about C/C++ you know that arrays contain information about their size. Which of the following can you use?&lt;br /&gt;&lt;br /&gt;a)myarray.length();&lt;br /&gt;b)myarray.length;&lt;br /&gt;c)myarray.size&lt;br /&gt;d)myarray.size();&lt;br /&gt;===============================================================Question 15:&lt;br /&gt;What will happen when you attempt to compile and run this program&lt;br /&gt;public class Outer{&lt;br /&gt;public String name = "Outer";&lt;br /&gt;public static void main(String argv[]){&lt;br /&gt;        Inner i = new Inner();&lt;br /&gt;        i.showName();&lt;br /&gt;    }//End of main&lt;br /&gt;        private class Inner{&lt;br /&gt;        String name =new String("Inner");&lt;br /&gt;                void showName(){&lt;br /&gt;                        System.out.println(name);&lt;br /&gt;                }&lt;br /&gt;        }//End of Inner class&lt;br /&gt;}&lt;br /&gt;a) Compile and run with output of "Outer"&lt;br /&gt;b) Compile and run with output of "Inner"&lt;br /&gt;c) Compile time error because Inner is declared as private&lt;br /&gt;d) Compile time error because of the line creating the instance of Inner&lt;br /&gt;===============================================================Question 16:&lt;br /&gt;Given the following class definition, which of the following methods could be legally placed after the comment  //Here&lt;br /&gt;&lt;br /&gt;public class Rid{&lt;br /&gt;        public void amethod(int i, String s){}&lt;br /&gt;        //Here&lt;br /&gt;}&lt;br /&gt;a)public void amethod(String s, int i){}&lt;br /&gt;b)public int amethod(int i, String s){}&lt;br /&gt;c)public void amethod(int i, String mystring){}&lt;br /&gt;d) public void Amethod(int i, String s) {}&lt;br /&gt;===============================================================Question 17:&lt;br /&gt;public class Test7{&lt;br /&gt;     public Test7(){}&lt;br /&gt;     public Test7(Test7 ref){&lt;br /&gt;         this (ref,"Hai");&lt;br /&gt;     }&lt;br /&gt;     public Test7(Test7 ref,String str){ &lt;br /&gt;         ref.Test7(str);&lt;br /&gt;         System.out.println("Hi");&lt;br /&gt;     }&lt;br /&gt;     public void Test7(String str){&lt;br /&gt;         System.out.println(str);&lt;br /&gt;     }&lt;br /&gt;     public static void main(String[] args){&lt;br /&gt;         Test7 t = new Test7();&lt;br /&gt;         Test7 t7 = new Test7(t); &lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt;a) HI       b) hai&lt;br /&gt;c) Hai Hi      d) Hi Hai&lt;br /&gt;===============================================================Question 18:&lt;br /&gt;What will be the output of the following program?&lt;br /&gt;&lt;br /&gt;class Sup1{&lt;br /&gt;      public Sup1(){&lt;br /&gt;           System.out.println("Hai");&lt;br /&gt;      }&lt;br /&gt;      private Sup1(String str){&lt;br /&gt;          System.out.println(str);&lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public class Test5 extends Sup1{&lt;br /&gt;      private Test5(String str){&lt;br /&gt;           System.out.println(str);&lt;br /&gt;           super();&lt;br /&gt;      }&lt;br /&gt;      public static void main(String[] args) {&lt;br /&gt;          Test5 t5 = new Test5("HI");&lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;a) Hai,Hi,Hi    b) Hai,Hi&lt;br /&gt;c) Hi,Hi    d) Compiler Error&lt;br /&gt;===============================================================Question 19:&lt;br /&gt;class VarArgOne {&lt;br /&gt; public static void printArgs(String s, int ... i, String s) {   //line1&lt;br /&gt;  for(int j : i) {                                                  //line 2&lt;br /&gt;    System.out.print(j +  " " + s);                     //line 3&lt;br /&gt;  }          &lt;br /&gt; }&lt;br /&gt; public static void main(String ... args) {                  //line 4&lt;br /&gt;   printArgs("exam", 12, 34, "scjp");                                 //line 5&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;a) Compilation fails due to error at line 1.&lt;br /&gt;b) Compilation fails due to error at line 2.&lt;br /&gt;c) Compilation fails due to error at line 4.&lt;br /&gt;d) Compilation fails due to error at both line 1 and line 4.&lt;br /&gt;e) Compiles fine and Prints output "12 scjp 34 scjp".&lt;br /&gt;===============================================================Question 20:&lt;br /&gt;class A{ &lt;br /&gt; private void print(){&lt;br /&gt; System.out.println("===print in A===");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class B extends A{&lt;br /&gt; void print(){&lt;br /&gt; System.out.println("===print in B===");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class M{&lt;br /&gt; public static void main(String args[]){&lt;br /&gt; A ref = new B();&lt;br /&gt; ref.print();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;What happens when we try to compile the above program:&lt;br /&gt;a)Error at compile time     b)Error at run time&lt;br /&gt;c)prints print in A     d) prints print in B &lt;br /&gt;===============================================================Question 21 :&lt;br /&gt;interface I{&lt;br /&gt; void print();&lt;br /&gt;}&lt;br /&gt;class A{ &lt;br /&gt; static void print(){&lt;br /&gt; System.out.println("===print in A===");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class B extends A implements I{&lt;br /&gt; public void print(){&lt;br /&gt; System.out.println("===print in A===");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;class M{&lt;br /&gt; public static void main(String args[]){&lt;br /&gt; A ref = new B();&lt;br /&gt; ref.print();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;What will be the output &amp; Write explanation?&lt;br /&gt;===============================================================Question 22:&lt;br /&gt;What all gets printed when the following code is compiled and run? Select the three correct answers.&lt;br /&gt;public class xyz {&lt;br /&gt;   public static void main(String args[]) {&lt;br /&gt;      for(int i = 0; i &lt; 2; i++) {&lt;br /&gt;         for(int j = 2; j&gt;= 0; j--) {&lt;br /&gt;            if(i == j) break;&lt;br /&gt;            System.out.println("i=" + i + " j="+j);&lt;br /&gt;         }&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;===============================================================Question 23:&lt;br /&gt;What is the result of compiling and running the following program. Select the one correct answer.&lt;br /&gt;class test {&lt;br /&gt;  public static void main(String args[]) {&lt;br /&gt;        int[] arr = {1,2,3,4};&lt;br /&gt;        call_array(arr[0], arr);&lt;br /&gt;        System.out.println(arr[0] + "," + arr[1]);        &lt;br /&gt;    }&lt;br /&gt;    static void call_array(int i, int arr[]) {&lt;br /&gt;        arr[i] = 6;&lt;br /&gt;        i = 5;&lt;br /&gt;    }    &lt;br /&gt;}&lt;br /&gt;   a. 1,2        b. 5,2&lt;br /&gt;   c. 1,6        d. 5,6&lt;br /&gt;===============================================================Question 24:&lt;br /&gt;Assume that class A extends class B, which extends class C. Also all the three classes implement the method test(). How can a method in a class A invoke the test() method defined in class C (without creating a new instance of class C). Select the one correct answer.&lt;br /&gt;   a. test();&lt;br /&gt;   b. super.test();&lt;br /&gt;   c. super.super.test();&lt;br /&gt;   d. ::test();&lt;br /&gt;   e. C.test();&lt;br /&gt;   f. It is not possible to invoke test() method defined in C from a method in A.&lt;br /&gt;===============================================================Question 25:&lt;br /&gt;Which of the following are legal array declarations. Select the three correct answers.&lt;br /&gt;   a. int i[5][];       b. int i[][];&lt;br /&gt;   c. int []i[];       d. int i[5][5];&lt;br /&gt;   e. int[][] a;&lt;br /&gt;===============================================================&lt;br /&gt;  ALL THE BEST&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-4271732375762543328?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/4271732375762543328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/04/scjp-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4271732375762543328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4271732375762543328'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/04/scjp-questions.html' title='SCJP Questions'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-4137587991228121247</id><published>2010-04-10T04:34:00.000-07:00</published><updated>2010-04-10T04:39:14.726-07:00</updated><title type='text'>Difference Between String VS StringBuffer VS StringBuilder</title><content type='html'>Shown below is an example that concatanates 10000 strings using the '+'  operator, StringBuffer, and StringBuilder, and prints the operation time in &lt;strong&gt;nanoseconds&lt;/strong&gt;. The ability to get time in nanoseconds is another feature that was added in JDK 1.5.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public class &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;StringConcatanations &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public static final &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;int &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;MAX_ITER = &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;10000&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public static &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;void &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;[] &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;args&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;concatenate&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;concatenateWithStringBuffer&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;concatenateWithStringBuilder&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public static &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;void &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;concatenate&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.out.println&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Concatanating using the + operator"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;String s1 = &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;s1Time = getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;for&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;int &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;i=&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;i&lt;max_iter;i++&gt;&lt;/max_iter;i++&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;      &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;s1 = s1 + &lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"abc"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;e1Time = getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.out.println&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Time: " &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;+ &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;e1Time - s1Time&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public static &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;void &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;concatenateWithStringBuffer&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.out.println&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Concatanating using StringBuffer"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;StringBuffer sb = &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;new &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;StringBuffer&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;s2Time = getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;for&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;int &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;i=&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;i&lt;max_iter;i++&gt;&lt;/max_iter;i++&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;      &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;sb.append&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"abc"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;e2Time = getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.out.println&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Time: " &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;+ &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;e2Time - s2Time&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public static &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;void &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;concatenateWithStringBuilder&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.out.println&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Concatanating using StringBuilder"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;StringBuilder sBuilder = &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;new &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;StringBuilder&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;s3Time = getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;for&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;int &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;i=&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;i&lt;max_iter;i++&gt;&lt;/max_iter;i++&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;      &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;sBuilder.append&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"abc"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;e3Time = getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.out.println&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Time: " &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;+ &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;e3Time - s3Time&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;public static &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;long &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;getNanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;      &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;strong&gt;return &lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;System.nanoTime&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;/code&gt;            &lt;!--&lt;br /&gt;  end source code --&gt;       &lt;p&gt;&lt;br /&gt;Output:&lt;br /&gt;Concatanating using the + operator&lt;br /&gt;Time: 744597428&lt;br /&gt;Concatanating using StringBuffer&lt;br /&gt;Time: 1685131&lt;br /&gt;Concatanating using StringBuilder&lt;br /&gt;Time: 1317206&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Check out the time taken to append the String using "+" operator!!&lt;/p&gt;&lt;p&gt;As you can see, if you do not need thread safety, StringBuilder yeilds the best result, followed by Stringuffer, followed by the '+'  operator. However, if you do need thread safety, then StringBuffer is your natural choice.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Shyamala&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="text-align: left;" class="java" align="left"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-4137587991228121247?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/4137587991228121247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/04/difference-between-string-vs.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4137587991228121247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4137587991228121247'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/04/difference-between-string-vs.html' title='Difference Between String VS StringBuffer VS StringBuilder'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-335189295734706147</id><published>2010-03-15T00:55:00.000-07:00</published><updated>2010-03-15T00:59:54.073-07:00</updated><title type='text'>EL functions in JSP</title><content type='html'>&lt;span style="font-weight: bold;"&gt;EL Functions:&lt;/span&gt;&lt;br /&gt;Very simple used to invoke any functions with names.......&lt;br /&gt;&lt;br /&gt;For Ex:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;create a class as below:com.fun.Message&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;package com.fun;&lt;br /&gt;/*&lt;br /&gt;* A class Which contains the user defined funcion sayHello&lt;br /&gt;*/&lt;br /&gt;public class Message{&lt;br /&gt;&lt;br /&gt;   public static String sayHello(){&lt;br /&gt;&lt;br /&gt;       return "hello!!";&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Keep this .class under /WEB-INF/classes/com/fun/Message.class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Then we have to create TLD file which describes your functions :&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;myfucntions.tld:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;taglib&amp;gt;&lt;br /&gt;   &amp;lt;tlib-version&amp;gt;1.0&amp;lt;/tlib-version&amp;gt;&lt;br /&gt;   &amp;lt;jsp-version&amp;gt;1.1&amp;lt;/jsp-version&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;function&amp;gt;&lt;br /&gt;       &amp;lt;name&amp;gt;hello&amp;lt;/name&amp;gt;&lt;br /&gt;       &amp;lt;function-class&amp;gt;com.fun.Message&amp;lt;/function-class&amp;gt;&lt;br /&gt;       &amp;lt;function-signature&amp;gt;java.lang.String sayHello()&amp;lt;/function-signature&amp;gt;&lt;br /&gt;   &amp;lt;/function&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;function&amp;gt;&lt;br /&gt;       &amp;lt;name&amp;gt;rand&amp;lt;/name&amp;gt;&lt;br /&gt;       &amp;lt;function-class&amp;gt;java.lang.Math&amp;lt;/function-class&amp;gt;&lt;br /&gt;       &amp;lt;function-signature&amp;gt;long random()&amp;lt;/function-signature&amp;gt;&lt;br /&gt;   &amp;lt;/function&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;function&amp;gt;&lt;br /&gt;       &amp;lt;name&amp;gt;absolute&amp;lt;/name&amp;gt;&lt;br /&gt;       &amp;lt;function-class&amp;gt;java.lang.Math&amp;lt;/function-class&amp;gt;&lt;br /&gt;       &amp;lt;function-signature&amp;gt;int abs(int)&amp;lt;/function-signature&amp;gt;&lt;br /&gt;   &amp;lt;/function&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/taglib&amp;gt;&lt;br /&gt;&lt;br /&gt;You can observer this TLD is describing some predefined functions of java.lang.Math class also.&lt;br /&gt;&lt;br /&gt;Save this file as " myfunctions.tld" keep this under /WEB-INF folder of your application.&lt;br /&gt;&lt;br /&gt;"name" tag in function is necessary with that name only user is going to call the functions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Then at last create your jsp&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&amp;lt;%@page isELIgnored="false" %&amp;gt;&lt;br /&gt;&amp;lt;%@taglib uri="/WEB-INF/myfunctions.tld" prefix="f" %&amp;gt;&lt;br /&gt;&lt;br /&gt;${f:hello()}&lt;br /&gt;${f:rand()}&lt;br /&gt;${f:abso lute(10)}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rocking&lt;br /&gt;Shyamala&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-335189295734706147?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/335189295734706147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/03/el-functions-in-jsp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/335189295734706147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/335189295734706147'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/03/el-functions-in-jsp.html' title='EL functions in JSP'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-4035349436220142755</id><published>2010-03-09T22:42:00.000-08:00</published><updated>2010-03-09T22:58:35.535-08:00</updated><title type='text'>Difference between  @include  &amp; jsp:include</title><content type='html'>To get to know the difference between these two&lt;br /&gt;&lt;br /&gt;&lt;%@include file="" %&gt; is a directive&lt;br /&gt;&lt;br /&gt;Action tag:&lt;br /&gt;&lt;br /&gt;&amp;lt;jsp:include page="{relativeURL | &lt;%= expression %&gt;}" flush="true" /&amp;gt;&lt;br /&gt;or&lt;br /&gt;&amp;lt;jsp:include page="{relativeURL | &lt;%= expression %&gt;}" flush="true" &amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;jsp:param name="parameterName"&lt;br /&gt;&lt;br /&gt;      value="{parameterValue | &lt;%= expression %&gt;}" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/jsp:include&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;one.jsp&lt;br /&gt;=========&lt;br /&gt;&lt;br /&gt;&lt;%@page isELIgnored="false"%&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;jsp:declaration&amp;gt;int cnt=0;&amp;lt;/jsp:declaration&amp;gt;&lt;br /&gt;&amp;lt;jsp:expression&amp;gt;"Shyamala"+cnt++&amp;lt;/jsp:expression&amp;gt;&lt;br /&gt;&amp;lt;jsp:include page="two.jsp"/&amp;gt;&lt;br /&gt;&lt;br /&gt;two.jsp&lt;br /&gt;==========&lt;br /&gt;I am just included&lt;br /&gt;&lt;br /&gt;now go to work directory of tomcat and check out there will be two seperate servlets created&lt;br /&gt;&lt;br /&gt;and even u can observe one line in one_jsp.java file&lt;br /&gt;org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "two.jsp", out, false);&lt;br /&gt;&lt;br /&gt;which specifies the page is included at run time&lt;br /&gt;&lt;br /&gt;just change your one.jsp file as following&lt;br /&gt;&lt;br /&gt;one.jsp&lt;br /&gt;&lt;br /&gt;&lt;%@page isELIgnored="false"%&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;jsp:declaration&amp;gt;int cnt=0;&amp;lt;/jsp:declaration&amp;gt;&lt;br /&gt;&amp;lt;jsp:expression&amp;gt;"Shyamala"+cnt++&amp;lt;/jsp:expression&amp;gt;&lt;br /&gt;&lt;%@ include file="two.jsp"%&gt;&lt;br /&gt;&lt;br /&gt;you will not be created with two different java files in work directory the two.jsp contents also will be included in the same one_jsp.java file.&lt;br /&gt;&lt;br /&gt;That means it is done at the time of compilation!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rocking !!&lt;br /&gt;Shyamala&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-4035349436220142755?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/4035349436220142755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/03/difference-include-jspinclude.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4035349436220142755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4035349436220142755'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/03/difference-include-jspinclude.html' title='Difference between  @include  &amp; jsp:include'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-7471715087804544255</id><published>2010-02-20T02:09:00.000-08:00</published><updated>2010-02-20T02:34:56.258-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Calendar of a month using Java</title><content type='html'>import java.util.*;&lt;br /&gt;/*&lt;br /&gt;* Printing the calendar of a month where the user&lt;br /&gt;* Gives the input month , year&lt;br /&gt;* By Shyamala&lt;br /&gt;*/&lt;br /&gt;class CalendarForMonth{&lt;br /&gt;public static void main(String args[]){&lt;br /&gt;//A string array for months&lt;br /&gt;&lt;br /&gt;String months []={"Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"};&lt;br /&gt;&lt;br /&gt;//An integer for number of days in every month&lt;br /&gt;int nDays[]={31,28,31,30,31,30,31,31,30,31,30,31};&lt;br /&gt;&lt;br /&gt;//creating the instance of calendar&lt;br /&gt;Calendar calendar = Calendar.getInstance();&lt;br /&gt;&lt;br /&gt;Scanner in = new Scanner(System.in);&lt;br /&gt;//Take the input from the user Month,Year&lt;br /&gt;&lt;br /&gt;System.out.print("Enter month ,year :");&lt;br /&gt;int mon = in.nextInt(); int yr = in.nextInt();&lt;br /&gt;calendar.set(yr,mon-1,1); //setting date yr,mon,date consider first day&lt;br /&gt;&lt;br /&gt;if(yr%4==0){&lt;br /&gt;System.out.println("Leap year!!");&lt;br /&gt;//change the number of days Feb month as it is leap year&lt;br /&gt;nDays[1]=29;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;System.out.println("Calendar For "+calendar.get(Calendar.YEAR)+" == "+months[calendar.get(Calendar.MONTH)]);&lt;br /&gt;&lt;br /&gt;//printing the days&lt;br /&gt;System.out.print("S\tM\tTu\tW\tTh\tF\tSa");&lt;br /&gt;int day = calendar.get(Calendar.DAY_OF_WEEK);&lt;br /&gt;//System.out.println(day);&lt;br /&gt;System.out.println();&lt;br /&gt;&lt;br /&gt;//gives you the starting day&lt;br /&gt;int nline=0;&lt;br /&gt;//for getting new lines&lt;br /&gt;&lt;br /&gt;for(int i=1;i&lt;=nDays[mon-1];i++){&lt;br /&gt;System.out.print(i+"\t");&lt;br /&gt;nline++;&lt;br /&gt;if(nline%7==0)&lt;br /&gt;System.out.println("\n");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-7471715087804544255?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/7471715087804544255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/02/calendar-of-month-using-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/7471715087804544255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/7471715087804544255'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/02/calendar-of-month-using-java.html' title='Calendar of a month using Java'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-5267625090747908046</id><published>2010-01-18T05:23:00.000-08:00</published><updated>2010-01-18T05:40:01.279-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='String'/><title type='text'>String vs StringBuffer vs StringBuilder</title><content type='html'>&lt;strong&gt;&lt;span style="color:#009900;"&gt;Difference between String , StringBuffer and StringBuilder :&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Let us first write one sample program using Java String:&lt;br /&gt;&lt;br /&gt;Program:&lt;br /&gt;&lt;br /&gt;class Demo{&lt;br /&gt;public static void main(String args[]){&lt;br /&gt;String s ="shyamala";&lt;br /&gt;System.out.println("java"+s);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;compile the above program and run u get the output as : javashyamala&lt;br /&gt;then after this see the description about the bytecode using&lt;br /&gt;&lt;br /&gt;cmd/&gt; javap -c Demo&lt;br /&gt;&lt;br /&gt;Compiled from "Demo.java"&lt;br /&gt;class Demo extends java.lang.Object{&lt;br /&gt;Demo();&lt;br /&gt;Code:&lt;br /&gt;0: aload_0&lt;br /&gt;1: invokespecial #1; //Method java/lang/Object."&lt;init&gt;":()V&lt;br /&gt;4: return&lt;br /&gt;public static void main(java.lang.String[]);&lt;br /&gt;Code:&lt;br /&gt;0: ldc #2; //String shyamala&lt;br /&gt;2: astore_1&lt;br /&gt;3: getstatic #3; //Field java/lang/System.out:Ljava/io/PrintStream;&lt;br /&gt;&lt;strong&gt;6: new #4; //class java/lang/StringBuilder&lt;/strong&gt;&lt;br /&gt;9: dup&lt;br /&gt;10: invokespecial #5; //Method java/lang/StringBuilder."&lt;init&gt;":()V&lt;br /&gt;13: ldc #6; //String java&lt;br /&gt;&lt;strong&gt;15: invokevirtual #7; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;&lt;br /&gt;&lt;/strong&gt;18: aload_1&lt;br /&gt;&lt;strong&gt;19: invokevirtual #7; //Method java/lang/StringBuilder.append:(Ljava/lang/ String;)Ljava/lang/StringBuilder;&lt;br /&gt;&lt;/strong&gt;22: invokevirtual #8; //Method java/lang/StringBuilder.toString:()Ljava/lang/String;&lt;br /&gt;25: invokevirtual #9; //Method java/io/PrintStream.println:(Ljava/lang/String;)V&lt;br /&gt;28: return&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;observe the highlighted lines in the above bytecode where by inbuilt it is using StringBuilder class when it is creating string.When we are using "+" operator with the strings it invokes append method of stringBuilder.&lt;br /&gt;&lt;br /&gt;GC will be invoked manier times in case of String as once the string literal is not used again it should invoke Garbagecollector.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Other options include with javap:&lt;br /&gt;&lt;br /&gt;javap -c Demo&lt;br /&gt;to print Java1 Virtual Machine bytecodes,&lt;br /&gt;&lt;br /&gt;javap -l Demo&lt;br /&gt;to display line number and local variable tables (you need to compile perf.java with -g for this to work), and&lt;br /&gt;&lt;br /&gt;javap -p Demo&lt;br /&gt;to print private methods and fields in addition to the public ones.&lt;br /&gt;javap is a handy tool for digging beneath the surface to find out what's really going on in a .class file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;About string :&lt;br /&gt;1)Immutable class&lt;br /&gt;2) Not thread safe&lt;br /&gt;&lt;br /&gt;the performance is higher as it is using StringBuilder but when it is required frequent appending to a string better to go for stringBuffer which is mutable as well thread safety class.&lt;br /&gt;&lt;br /&gt;StringBuilder&lt;br /&gt;1) Mutable&lt;br /&gt;2)Not threadsafety&lt;br /&gt;&lt;br /&gt;StringBuffer:&lt;br /&gt;1)Mutable&lt;br /&gt;2)Threadsafety&lt;br /&gt;&lt;br /&gt;&lt;a href="http://java.sun.com/developer/TechTips/1998/tt0120.html#tip1"&gt;http://java.sun.com/developer/TechTips/1998/tt0120.html#tip1&lt;/a&gt;&lt;br /&gt;Thats it any queries get back to me!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-5267625090747908046?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/5267625090747908046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2010/01/string-vs-stringbuffer-vs-stringbuilder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/5267625090747908046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/5267625090747908046'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2010/01/string-vs-stringbuffer-vs-stringbuilder.html' title='String vs StringBuffer vs StringBuilder'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-7416873631659870836</id><published>2009-06-12T22:17:00.000-07:00</published><updated>2009-06-12T22:33:58.582-07:00</updated><title type='text'>Digital Clock Using "C"</title><content type='html'>This is Very simple&lt;br /&gt;&lt;br /&gt;                there is an header file called "dos.h" which contains predefined structures for time and date.&lt;br /&gt;       So i have declared here two variables of type&lt;br /&gt;&lt;br /&gt;                struct date d;&lt;br /&gt;                struct time t;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;to get the current system date and time call function getdate() &amp;amp; gettime() where these functions take date , time respectively.&lt;br /&gt;&lt;br /&gt;                 getdate(&amp;amp;d);&lt;br /&gt;                 gettime(&amp;amp;t);&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;PredefinedStructures :&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;date:&lt;/span&gt;&lt;br /&gt;struct date {  &lt;br /&gt;&lt;br /&gt;int da_year;     /* current year */  &lt;br /&gt;char da_day;     /* day of the month */&lt;br /&gt;char da_mon;     /* month (1 = Jan) */&lt;br /&gt;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;time:&lt;/span&gt;&lt;br /&gt;struct time {  &lt;br /&gt;unsigned char  ti_min;   /* minutes */  &lt;br /&gt;unsigned char  ti_hour;  /* hours */  &lt;br /&gt;unsigned char  ti_hund;  /* hundredths of seconds */&lt;br /&gt;unsigned char  ti_sec;   /* seconds */&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------&lt;br /&gt;&lt;div style="text-align: center;"&gt;                                                              &lt;span style="font-weight: bold; font-style: italic;"&gt;Program : Digital clock&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;-------------------------------------------------------------------------------------------&lt;br /&gt;#include&lt;conio.h&gt;"stdio.h"&lt;br /&gt;#include"dos.h"&lt;br /&gt;#include"conio.h"&lt;br /&gt;&lt;dos.h&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;  struct date d;&lt;br /&gt;  struct time t;&lt;br /&gt;  clrscr();&lt;br /&gt;&lt;br /&gt;  do{&lt;br /&gt;      getdate(&amp;amp;d);&lt;br /&gt;      gettime(&amp;amp;t);&lt;br /&gt;&lt;br /&gt;      gotoxy(15,11);&lt;br /&gt;      textcolor(YELLOW);&lt;br /&gt;      cprintf("***************************************");&lt;br /&gt;      gotoxy(15,13);&lt;br /&gt;      cprintf("          Digital Clock using C  ");&lt;br /&gt;      gotoxy(15,15);&lt;br /&gt;      cprintf("***************************************");&lt;br /&gt;      textcolor(WHITE);&lt;br /&gt;      gotoxy(35,17);&lt;br /&gt;      cprintf(" by shyamala ");&lt;br /&gt;      gotoxy(15,19);&lt;br /&gt;      textcolor(YELLOW);&lt;br /&gt;      cprintf("***************************************");&lt;br /&gt;&lt;br /&gt;      textcolor(WHITE);&lt;br /&gt;&lt;br /&gt;      gotoxy(23,24);&lt;br /&gt;      cprintf("Date(dd/mm/yy)   : %d/%d/%d",d.da_day,d.da_mon,d.da_year);&lt;br /&gt;      gotoxy(23,26);&lt;br /&gt;      cprintf("Time(hr/min/sec) : %d/%d/%d",t.ti_hour,t.ti_min,t.ti_sec);&lt;br /&gt;&lt;br /&gt;      gotoxy(27,30);&lt;br /&gt;&lt;br /&gt;      textcolor(RED);&lt;br /&gt;      cprintf("Dear User Hit Any key to Exit!!");&lt;br /&gt;&lt;br /&gt;      delay(100);&lt;br /&gt;  }&lt;br /&gt;  while(!kbhit());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;/dos.h&gt;&lt;/conio.h&gt;&lt;div style="text-align: center;"&gt;&lt;conio.h&gt;&lt;dos.h&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Ouput :&lt;/span&gt;&lt;/dos.h&gt;&lt;/conio.h&gt;&lt;br /&gt;&lt;conio.h&gt;&lt;dos.h&gt;&lt;/dos.h&gt;&lt;/conio.h&gt;&lt;/div&gt;&lt;conio.h&gt;&lt;dos.h&gt;------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/dos.h&gt;&lt;/conio.h&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3UvVh-40xf0/SjM5L77fl-I/AAAAAAAACK4/oeDQB2ocuLI/s1600-h/op.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 196px;" src="http://4.bp.blogspot.com/_3UvVh-40xf0/SjM5L77fl-I/AAAAAAAACK4/oeDQB2ocuLI/s320/op.bmp" alt="" id="BLOGGER_PHOTO_ID_5346680059847481314" 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;span style="font-weight: bold; font-style: italic;"&gt;Keep rocking&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Shyamala&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-7416873631659870836?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/7416873631659870836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2009/06/digital-clock-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/7416873631659870836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/7416873631659870836'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2009/06/digital-clock-using-c.html' title='Digital Clock Using &quot;C&quot;'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3UvVh-40xf0/SjM5L77fl-I/AAAAAAAACK4/oeDQB2ocuLI/s72-c/op.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-4109253288043929629</id><published>2009-06-09T21:36:00.000-07:00</published><updated>2009-06-09T21:37:27.523-07:00</updated><title type='text'>100 windows keyboard shortcuts list</title><content type='html'>&lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 15.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows key board shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 15.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;The General Shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;We’ll kickoff the list with some really general shortcuts that you often used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol start="1" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+C      (Copy)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+X      (Cut)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+V      (Paste) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+Z      (Undo) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;DELETE      (Delete) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT+DELETE      (Delete the selected item permanently without placing the item in the      Recycle Bin) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL      while dragging an item (Copy the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+SHIFT      while dragging an item (Create a shortcut to the &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;selected&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F2      key (Rename the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+RIGHT      ARROW (Move the insertion point to the beginning of the next word) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+LEFT      ARROW (Move the insertion point to the beginning of the previous word) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+DOWN      ARROW (Move the &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;insertion&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; point to the beginning of the      next paragraph) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+UP      ARROW (Move the insertion point to the beginning of the previous      paragraph) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+SHIFT      with any of the arrow keys (Highlight a block of text) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT      with any of the arrow keys (Select more than one item in a window or on      the desktop, or select text in a document) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+A      (Select all) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F3      key (Search for a file or a folder) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+ENTER      (View the properties for the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+F4      (Close the active item, or quit the active program) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+ENTER      (Display the properties of the selected object) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+SPACEBAR      (Open the shortcut menu for the active window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+F4      (Close the active document in programs that enable you to have multiple      documents open simultaneously) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+TAB      (Switch between the open items) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+ESC      (Cycle through items in the order that they had been opened) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F6      key (Cycle through the screen elements in a window or on the desktop) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F4      key (Display the &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;Address bar&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; list in My Computer or Windows      Explorer) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT+F10      (Display the shortcut menu for the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+SPACEBAR      (Display the System menu for the active window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+ESC      (Display the Start menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+Underlined      letter in a menu name (Display the corresponding menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Underlined      letter in a command name on an open menu (Perform the corresponding      command) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F10      key (Activate the &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;menu bar&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; in the active program) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;RIGHT      ARROW (Open the next menu to the right, or open a submenu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;LEFT      ARROW (Open the next menu to the left, or close a submenu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F5      key (Update the active window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;BACKSPACE      (View the folder one level up in My Computer or Windows Explorer) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ESC      (Cancel the current task) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT      when you insert a CD-ROM into the CD-ROM drive (Prevent the CD-ROM from      automatically playing)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 14.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Dialog Box Keyboard Shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="39" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+TAB      (Move forward through the tabs) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+SHIFT+TAB      (Move backward through the tabs) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;TAB      (Move forward through the options) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT+TAB      (Move backward through the options) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+Underlined      letter (Perform the corresponding command or select the corresponding      option) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ENTER      (Perform the command for the active option or button) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SPACEBAR      (Select or clear the check box if the active option is a check box) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Arrow      keys (Select a button if the active option is a group of option buttons) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F1      key (Display Help) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F4      key (Display the items in the active list) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;BACKSPACE      (Open a folder one level up if a folder is selected in the Save As or Open      dialog box)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 14.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Microsoft Natural Keyboard Shortcuts&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 13pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="50" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo (Display or hide the Start menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+BREAK (Display the System Properties dialog box) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+D (Display the desktop) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+M (Minimize all of the windows) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+SHIFT+M (Restore the minimized windows) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+E (Open My Computer) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+F (Search for a file or a folder) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+Windows      Logo+F (Search for computers) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+F1 (Display Windows Help) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+ L (Lock the keyboard) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+R (Open the Run &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;dialog box&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo+U (Open Utility Manager)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 15.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Accessibility Keyboard Shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="62" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Right      SHIFT for eight seconds (Switch FilterKeys either on or off) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Left      ALT+left SHIFT+PRINT SCREEN (Switch High Contrast either on or off) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Left      ALT+left SHIFT+NUM LOCK (Switch the MouseKeys either on or off) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT      &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;five times&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; (Switch the StickyKeys either      on or off) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;NUM      LOCK for five seconds (Switch the ToggleKeys either on or off) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows      Logo +U (Open Utility Manager) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 14.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Windows Explorer Keyboard Shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="68" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;END      (Display the bottom of the active window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;HOME      (Display the top of the active window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;NUM      LOCK+Asterisk sign (*) (Display all of the subfolders that are under the selected      folder) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;NUM      LOCK+Plus sign (+) (Display the contents of the selected folder) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;NUM      LOCK+Minus sign (-) (Collapse the selected folder) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;LEFT      ARROW (Collapse the current selection if it is expanded, or select the      parent folder) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;RIGHT      ARROW (Display the current selection if it is collapsed, or select the      first subfolder)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 14.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Shortcut Keys for Character Map&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="75" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;After      you double-click a character on the grid of characters, you can move      through the grid by using the keyboard shortcuts: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;RIGHT      ARROW (Move to the right or to the beginning of the next line) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;LEFT      ARROW (Move to the left or to the end of the previous line) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;UP      ARROW (Move up one row) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;DOWN      ARROW (Move down one row) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;PAGE      UP (Move up one screen at a time) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;PAGE      DOWN (Move down one screen at a time) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;HOME      (Move to the beginning of the line) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;END      (Move to the end of the line) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+HOME      (Move to the first character) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+END      (Move to the last character) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SPACEBAR      (Switch between Enlarged and Nor mal mode when a character is selected)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 14.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Microsoft Management Console (MMC) Main Window Keyboard Shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="87" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+O      (Open a saved console) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+N      (Open a new console) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+S      (Save the open console) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+M      (Add or remove a console item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+W      (Open a new window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F5      key (Update the content of all console windows) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+SPACEBAR      (Display the MMC window menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+F4      (Close the console) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+A      (Display the Action menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+V      (Display the View menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+F      (Display the File menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+O      (Display the Favorites menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 14.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;MMC Console Window Keyboard Shortcuts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="99" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+P      (Print the current page or active pane) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+Minus      sign (-) (Display the window menu for the active console window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;SHIFT+F10      (Display the Action shortcut menu for the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F1      key (Open the Help topic, if any, for the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F5      key (Update the content of all console windows) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+F10      (Maximize the active console window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+F5      (Restore the active console window) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+ENTER      (Display the Properties dialog box, if any, for the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;F2      key (Rename the selected item) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+F4      (Close the active console window. When a console has only one console      window, this shortcut closes the console)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 15.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Remote Desktop Connection Navigation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="109" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+ALT+END      (Open the micro$oft Windows &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;NT Security&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; dialog box) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+PAGE      UP (Switch between programs from left to right) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+PAGE      DOWN (Switch between programs from right to left) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+INSERT      (Cycle through the programs in most recently used order) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+HOME      (Display the Start menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+ALT+BREAK      (Switch the &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;client&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; computer between a window and a full screen) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ALT+DELETE      (Display the Windows menu) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+ALT+Minus      sign (-) (Place a snapshot of the active window in the client on the &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 9pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(34, 119, 221);"&gt;Terminal server&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; clipboard and provide the same functionality as      pressing PRINT SCREEN on a local computer.) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+ALT+Plus      sign (+) (Place a snapshot of the entire client window area on the Terminal      server clipboard and provide the same functionality as pressing ALT+PRINT      SCREEN on a local computer.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;b&gt;&lt;i style=""&gt;&lt;u&gt;&lt;span style="font-size: 15.5pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Internet Explorer navigation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ol start="118" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+B      (Open the Organize Favorites dialog box) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+E      (Open the Search bar) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+F      (Start the Find utility) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+H      (Open the History bar) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+I      (Open the Favorites bar) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+L      (Open the Open dialog box) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+N      (Start another instance of the browser with the same Web address) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+O      (Open the Open dialog box, the same as CTRL+L) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+P      (Open the Print dialog box) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+R      (Update the current Web page)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;CTRL+W      (Close the current window)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; line-height: 150%;"&gt;&lt;span style="font-size: 12pt; line-height: 150%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; line-height: 150%; font-weight: bold; font-style: italic;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; Keep Rocking&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify; line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Shyamala&lt;/span&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-4109253288043929629?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/4109253288043929629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2009/06/100-windows-keyboard-shortcuts-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4109253288043929629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/4109253288043929629'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2009/06/100-windows-keyboard-shortcuts-list.html' title='100 windows keyboard shortcuts list'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-1056709771823617647</id><published>2009-06-08T01:37:00.000-07:00</published><updated>2009-06-08T01:51:40.003-07:00</updated><title type='text'>JVM-Java Virtual Machine</title><content type='html'>&lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="line-height: 150%;font-size:16;" &gt;JVM- Java Virtual Machine&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="line-height: 150%;"&gt;&lt;span style="line-height: 150%;font-size:18;" &gt;A&lt;/span&gt;t the heart of the Java platform lies the Java Virtual Machine, or JVM. Most programming languages compile source code directly into machine code, suitable for execution on a particular microprocessor architecture. The difference with Java is that it uses bytecode - a special type of machine code. &lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;The designers of Java chose to use a combination of compilation and interpretation. Programs written in Java are compiled into machine language, but it is a machine language for a computer that doesn't really exist. This so-called "virtual" computer is known as the &lt;/span&gt;&lt;span class="newword"&gt;&lt;b style=""&gt;Java virtual machine&lt;/b&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;. The machine language for the Java virtual machine is called &lt;/span&gt;&lt;span class="newword"&gt;&lt;b style=""&gt;Java bytecode&lt;/b&gt;&lt;/span&gt;&lt;span style="color:black;"&gt;. There is no reason why Java bytecode could not be used as the machine language of a real computer, rather than a virtual computer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3UvVh-40xf0/SizO7WbfMBI/AAAAAAAACKM/VQr8f2PfTeQ/s1600-h/s.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 330px; height: 127px;" src="http://3.bp.blogspot.com/_3UvVh-40xf0/SizO7WbfMBI/AAAAAAAACKM/VQr8f2PfTeQ/s320/s.jpg" alt="" id="BLOGGER_PHOTO_ID_5344874376810410002" border="0" /&gt;&lt;/a&gt;A program written in Java could certainly be compiled into the machine language of a real computer. And programs written in other languages could be compiled into Java bytecode. However, it is the combination of Java and Java bytecode that is platform-independent, secure, and network-compatible while allowing you to program in a modern high-level object-oriented language.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div&gt;&lt;span style="color:black;"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;b style=""&gt;&lt;span style="line-height: 150%;font-size:14;color:black;"  &gt;“Java is WORA Write Once Run Anywhere”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;b style=""&gt;&lt;span style="line-height: 150%;font-size:14;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style=";font-size:14;color:blue;"  &gt;The Architecture of the Java Virtual Machine&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;span style=";font-size:14;color:blue;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;The behavior of a virtual machine instance is described in terms of subsystems, memory areas, data types, and instructions. These components describe an abstract inner architecture for the abstract Java virtual machine. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_s1026" type="#_x0000_t75" alt="" style="'position:absolute;margin-left:3.4pt;" wrapcoords="-110 -122 -110 21661 21710 21661 21710 -122 -110 -122" bordertopcolor="blue" borderleftcolor="blue" borderbottomcolor="blue" borderrightcolor="blue" filled="t" fillcolor="#36f" stroked="t" strokecolor="blue" strokeweight="1.5pt"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\shyamala\LOCALS~1\Temp\8\msohtmlclip1\01\clip_image003.png" href="http://www.artima.com/insidejvm/ed2/images/fig5-1.gif"&gt;  &lt;w:wrap type="square"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;Figure shows a block diagram of the Java virtual machine that includes the major subsystems and memory areas. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; line-height: 150%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3UvVh-40xf0/SizPs-mK8VI/AAAAAAAACKU/Rl_QNJ5wN3U/s1600-h/aa.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_3UvVh-40xf0/SizPs-mK8VI/AAAAAAAACKU/Rl_QNJ5wN3U/s320/aa.jpg" alt="" id="BLOGGER_PHOTO_ID_5344875229406228818" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;span style="color:black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;span style="color:black;"&gt;Figure The internal architecture of the Java virtual machine.&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;Each Java virtual machine has&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Wingdings;color:black;"  &gt;&lt;span style=""&gt;ü&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;a &lt;span style=""&gt;class loader subsystem&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="color:red;"&gt;:&lt;/span&gt;&lt;span style="color:black;"&gt; a mechanism for loading types (classes and interfaces) given fully qualified names. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Wingdings;color:black;"  &gt;&lt;span style=""&gt;ü&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style="color:black;"&gt;Java virtual machine organizes the memory it needs to execute a program into several &lt;/span&gt;&lt;i&gt;&lt;span style="color:red;"&gt;runtime data areas&lt;/span&gt;&lt;/i&gt;&lt;span style="color:red;"&gt;.&lt;/span&gt;&lt;span style="color:black;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=";font-family:Wingdings;color:black;"  &gt;&lt;span style=""&gt;ü&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;i style=""&gt;&lt;span style="color:red;"&gt;an &lt;span style=""&gt;execution engine&lt;/span&gt;:&lt;/span&gt;&lt;/i&gt;&lt;span style="color:black;"&gt; a mechanism responsible for executing the instructions contained in the methods of loaded classes. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="color:black;"&gt;Each instance of the Java virtual machine has one &lt;span style=""&gt;method area&lt;/span&gt; and one &lt;span style=""&gt;heap&lt;/span&gt;. These areas are shared by all threads running inside the virtual machine. As the program runs, the virtual machine places all objects the program instantiates onto the heap.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: 150%;"&gt;&lt;b style=""&gt;&lt;span style="line-height: 150%;font-size:14;color:black;"  &gt;&lt;span style=""&gt;                   &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;span style="line-height: 150%; color: rgb(0, 102, 255);font-size:14;" &gt;&lt;span style=""&gt; &lt;/span&gt;“Bytecode is independent , JVM is dependent.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;i style=""&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; line-height: 150%;" align="center"&gt;&lt;b style=""&gt;&lt;span style="line-height: 150%;font-size:14;color:black;"  &gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-1056709771823617647?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/1056709771823617647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2009/06/jvm-java-virtual-machine-t-heart-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/1056709771823617647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/1056709771823617647'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2009/06/jvm-java-virtual-machine-t-heart-of.html' title='JVM-Java Virtual Machine'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3UvVh-40xf0/SizO7WbfMBI/AAAAAAAACKM/VQr8f2PfTeQ/s72-c/s.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1883847119127615758.post-6828170561541667859</id><published>2009-06-05T21:43:00.000-07:00</published><updated>2009-06-05T22:07:02.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Jar'/><title type='text'>Creating Jar file (Java executables) - Very simple</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step 1: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;       Create a Hello.java class .&lt;/span&gt;&lt;br /&gt;      public class Hello{&lt;br /&gt;                  public static void main(String args[]){&lt;br /&gt;                  System.out.println("welcome to Java’s chronicle");&lt;br /&gt;      }&lt;br /&gt;  } &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step-2 :&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-weight: bold; font-style: italic;"&gt;Compile the above java file. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;              Cmd &gt; javac Hello.java&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step- 3:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;    Create a mainClass.txt with the following contents&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      Main-Class: Hello&lt;br /&gt;&lt;br /&gt;Note :&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;Remember the above must be terminated with carriage return coz some of the OS expects CR to create Manifest file.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:lucida grande;" &gt;Step- 4:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;    Go to command prompt create jar file&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;    Cmd &gt;  jar -cvmf  mainClass.txt  my1.jar   Hello.class&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;        success :&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;        added manifest&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;        adding: Hello.class(in = 411) (out= 282)(deflated 31%)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;    where :&lt;/span&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;        c-create jar&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;        v-verbose&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;        m-mainclassfile&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step 5:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;To list the contents of jar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cmd &gt; jar tf my1.jar&lt;br /&gt;&lt;br /&gt;  META-INF/&lt;br /&gt;  META-INF/MANIFEST.MF&lt;br /&gt;  Hello.class&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Step 6:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;    To Execute jar &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  Cmd &gt; java –jar my1.jar&lt;br /&gt;&lt;br /&gt;I just tried explaining in a layman terminology ...Hope it is useful&lt;br /&gt;Further any queries kindly get back to me......&lt;br /&gt;&lt;br /&gt;Keep Rocking&lt;br /&gt;Shyamala&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1883847119127615758-6828170561541667859?l=javachronicle.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javachronicle.blogspot.com/feeds/6828170561541667859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javachronicle.blogspot.com/2009/06/creating-jar-file-java-executables-very.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/6828170561541667859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1883847119127615758/posts/default/6828170561541667859'/><link rel='alternate' type='text/html' href='http://javachronicle.blogspot.com/2009/06/creating-jar-file-java-executables-very.html' title='Creating Jar file (Java executables) - Very simple'/><author><name>Shyamala Vydyam</name><uri>http://www.blogger.com/profile/15088445441937635752</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-4LwjaOrlvNY/Tfr64hNnz0I/AAAAAAAAC3E/Hnh-HHFR6Oo/s220/IMG_2577.jpg'/></author><thr:total>0</thr:total></entry></feed>
