<?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-3076994668108386717</id><updated>2011-11-27T17:38:05.104-08:00</updated><category term='operator'/><category term='seller'/><category term='AWT'/><category term='JSP'/><category term='public'/><category term='best'/><category term='swing'/><category term='free'/><category term='cookbook'/><category term='implenents'/><category term='PTC'/><category term='api'/><category term='scjp'/><category term='va-rita'/><category term='จาวา'/><category term='study java'/><category term='e-book'/><category term='book. 2010'/><category term='EJB'/><category term='download'/><category term='job'/><category term='interview java'/><category term='extends'/><category term='Separators'/><category term='servlet'/><category term='top'/><category term='O&apos;Reilly'/><category term='เรียนจาวา'/><category term='JVM'/><category term='scjp5'/><category term='JInternalFrame'/><category term='สอนจาวา'/><category term='java'/><category term='static'/><category term='java question'/><category term='program'/><category term='javaBean'/><category term='JFrame'/><category term='PTP'/><category term='head first'/><category term='interview'/><category term='Justin Cronin'/><category term='adsense'/><category term='HTML'/><category term='JSF'/><category term='java script'/><category term='J2EE'/><category term='google'/><category term='keywords'/><title type='text'>Java Tip and Trick</title><subtitle type='html'>Learn java step by step and free e-book to download</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8383845803281768909</id><published>2011-03-20T07:37:00.000-07:00</published><updated>2011-03-20T07:42:37.531-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='top'/><category scheme='http://www.blogger.com/atom/ns#' term='book. 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='best'/><category scheme='http://www.blogger.com/atom/ns#' term='Justin Cronin'/><category scheme='http://www.blogger.com/atom/ns#' term='seller'/><title type='text'></title><content type='html'>&lt;a href="http://ecx.images-amazon.com/images/P/0345504968.01._SL160_PIsitb-sticker-arrow-dp,TopRight,12,-18_PE43_OU01_SCLZZZZZZZ_V174469379_.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 127px; height: 193px;" src="http://ecx.images-amazon.com/images/P/0345504968.01._SL160_PIsitb-sticker-arrow-dp,TopRight,12,-18_PE43_OU01_SCLZZZZZZZ_V174469379_.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;The Passage by Justin Cronin&lt;/b&gt;  The Irresistible Henry House by Lisa Grunwald &lt;br /&gt;Justin Cronin's gorgeous writing brings depth and vitality to this ambitious, terrifying epic about a virus that nearly destroys the world. The Passage takes readers on a journey from the early days of the virus to the aftermath of the destruction, where packs of hungry infected scour the razed, charred cities looking for food, and the survivors eke out a bleak, brutal existence. Cronin doesn't shy away from identifying his "virals" as vampires, but they're a far cry from the angsty, romantic types you might expect, and they're inextricably linked to the one girl who could destroy them all. The Passage is a grand mashup of literary and supernatural, a stunning beginning to a trilogy that is sure to dazzle readers of both genres.  &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/feature.html?docId=1000398531&amp;tag=bestbook09-20"&gt;Click Here to see &amp; but all the best book of 2010&lt;/a href&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8383845803281768909?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8383845803281768909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2011/03/passage-by-justin-cronin-irresistible.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8383845803281768909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8383845803281768909'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2011/03/passage-by-justin-cronin-irresistible.html' title=''/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-6542663440024905622</id><published>2009-09-21T04:19:00.000-07:00</published><updated>2009-09-21T04:20:36.503-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EJB'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='free'/><category scheme='http://www.blogger.com/atom/ns#' term='e-book'/><category scheme='http://www.blogger.com/atom/ns#' term='head first'/><title type='text'>EJB E-book</title><content type='html'>Enterprise JavaBeans (EJB) technology is the server-side component architecture for Java Platform, Enterprise Edition (Java EE). EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology.&lt;br /&gt;&lt;br /&gt;Download free e-book&lt;br /&gt;&lt;br /&gt;&lt;a href="http://9ce5259c.linkbucks.com"&gt;EJB&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4a7f1add.linkbucks.com"&gt;EJB&lt;/a&gt;&lt;br /&gt;&lt;a href="http://d6503b09.linkbucks.com"&gt;EJB&lt;/a&gt;&lt;br /&gt;&lt;a href="http://75222433.linkbucks.com"&gt;CMP Bean in NetBeans 5.5.1 using MS SQL Server 2005&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ff854762.linkbucks.com"&gt;CMP Bean using Derby Database&lt;/a&gt;&lt;br /&gt;&lt;a href="http://d5d109ea.linkbucks.com"&gt;EJB [BMP].&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2b041ef0.linkbucks.com"&gt;EJB [Configure a DataSource]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://51a97665.linkbucks.com"&gt;EJB [Stateful SessionBean]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://b8f53958.linkbucks.com"&gt;EJB [Stateless SessionBean] Steps&lt;/a&gt;&lt;br /&gt;&lt;a href="http://f6d173d0.linkbucks.com"&gt;EJB [Stateless SessionBean]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://a2ab4902.linkbucks.com"&gt;Enhancements in Java 6&lt;/a&gt;&lt;br /&gt;&lt;a href="http://175df229.linkbucks.com"&gt;HeadFirst-EJB&lt;/a&gt;&lt;br /&gt;&lt;a href="http://6420050b.linkbucks.com"&gt;Internationalization in Java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://c79ebe50.linkbucks.com"&gt;Java Beans&lt;/a&gt;&lt;br /&gt;&lt;a href="http://c8009f73.linkbucks.com"&gt;ava Mail using Swing&lt;/a&gt;&lt;br /&gt;&lt;a href="http://9f6cddb5.linkbucks.com"&gt;MDB using SJS App Server 8.2 in NetBeans 5.0&lt;/a&gt;&lt;br /&gt;&lt;a href="http://03c5b314.linkbucks.com"&gt;Manning.EJB.3.in.Action.Apr.2007&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2e9ac6ff.linkbucks.com"&gt;Mastering Enterprise Java Beans&lt;/a&gt;&lt;br /&gt;&lt;a href="http://c17964ec.linkbucks.com"&gt;MasteringEJB3rdEd&lt;/a&gt;&lt;br /&gt;&lt;a href="http://c6a3d567.linkbucks.com"&gt;O'Reilly - Enterprise Java Beans&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2395d6a1.linkbucks.com"&gt;Wiley-EJB.and.JSP.Java.on.the.Edge&lt;/a&gt;&lt;br /&gt;&lt;a href="http://71b4af86.linkbucks.com"&gt;Enterprise JavaBeans, 3rd Edition&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3ed872fd.linkbucks.com"&gt;bitterEJB&lt;/a&gt;&lt;br /&gt;&lt;a href="http://0072a59b.linkbucks.com"&gt;java extreme programming cookbook&lt;/a&gt;&lt;br /&gt;&lt;a href="http://6af9aad2.linkbucks.com"&gt;proEJB3-javaPersistenceAPI&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-6542663440024905622?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/6542663440024905622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/09/ejb-e-book.html#comment-form' title='33 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/6542663440024905622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/6542663440024905622'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/09/ejb-e-book.html' title='EJB E-book'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>33</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-1661151842000744808</id><published>2009-09-21T04:16:00.000-07:00</published><updated>2009-09-21T04:18:12.524-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='free'/><category scheme='http://www.blogger.com/atom/ns#' term='e-book'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>Java E-book</title><content type='html'>A high-level programming language developed by Sun Microsystems. Java was originally called OAK, and was designed for handheld devices and set-top boxes. Oak was unsuccessful so in 1995 Sun changed the name to Java and modified the language to take advantage of the burgeoning World Wide Web.&lt;br /&gt;&lt;br /&gt;Java is an object-oriented language similar to C++, but simplified to eliminate language features that cause common programming errors. Java source code files (files with a .java extension) are compiled into a format called bytecode (files with a .class extension), which can then be executed by a Java interpreter. Compiled Java code can run on most computers because Java interpreters and runtime environments, known as Java Virtual Machines (VMs), exist for most operating systems, including UNIX, the Macintosh OS, and Windows. Bytecode can also be converted directly into machine language instructions by a just-in-time compiler (JIT).&lt;br /&gt;&lt;br /&gt;Java is a general purpose programming language with a number of features that make the language well suited for use on the World Wide Web. Small Java applications are called Java applets and can be downloaded from a Web server and run on your computer by a Java-compatible Web browser, such as Netscape Navigator or Microsoft Internet Explorer.&lt;br /&gt;&lt;br /&gt;Download Free E-book&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4a5ec6ef.linkbucks.com"&gt;O'Reilly - Java IO&lt;/a&gt;&lt;br /&gt;&lt;a href="http://da3d472d.linkbucks.com"&gt;1000_Java_Tips_low&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.storage.to/get/h24jd0Tw/Advanced Java 2 Platform How to Program (JDK 1.3, J2EE 1.2) 2001.pdf"&gt;Advanced Java 2 Platform How to Program (JDK 1.3, J2EE 1.2) 2001&lt;/a&gt;&lt;br /&gt;&lt;a href="http://653da75b.linkbucks.com"&gt;HeadFirst JAVA&lt;/a&gt;&lt;br /&gt;&lt;a href="http://30d4151b.linkbucks.com"&gt;Interactive programming in java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://6e68ec4f.linkbucks.com"&gt;J2EETutorial&lt;/a&gt;&lt;br /&gt;&lt;a href="http://de33fc14.linkbucks.com"&gt;J2ME_Game_Development_with_MIDP2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://8ff8ce68.linkbucks.com"&gt;Java - J2ME in a Nutshell __found_@_[redsamara.com]&lt;/a&gt;&lt;br /&gt;&lt;a href="http://383b38f6.linkbucks.com"&gt;Java 2 Bible Enterprise Edition&lt;/a&gt;&lt;br /&gt;&lt;a href="http://534f381c.linkbucks.com"&gt;Java 2 Network Security&lt;/a&gt;&lt;br /&gt;&lt;a href="http://8dbd76e3.linkbucks.com"&gt;Java 2--Complete Reference2&lt;/a&gt;&lt;br /&gt;&lt;a href="http://12bea212.linkbucks.com"&gt;Java 330_tips&lt;/a&gt;&lt;br /&gt;&lt;a href="http://f4837439.linkbucks.com"&gt;Java Bible Database Programming&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.storage.to/get/xNSqK1Fe/Java Programming with Oracle JDBC (2002).pdf"&gt;Java Programming with Oracle JDBC (2002)&lt;/a&gt;&lt;br /&gt;&lt;a href="http://33c390a7.linkbucks.com"&gt;Java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://d4f54c30.linkbucks.com"&gt;Java_Design_Objects__UML__and_Process&lt;/a&gt;&lt;br /&gt;&lt;a href="http://f80b39ab.linkbucks.com"&gt;Modeling the J2EE in UML and Rational Rose&lt;/a&gt;&lt;br /&gt;&lt;a href="http://a30d559e.linkbucks.com"&gt;O'Reilly - Developing Java Beans-1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://cb88fe7b.linkbucks.com"&gt;O'Reilly - Java 2d graphics&lt;/a&gt;&lt;br /&gt;&lt;a href="http://36930bc1.linkbucks.com"&gt;O'Reilly - Java Cryptography&lt;/a&gt;&lt;br /&gt;&lt;a href="http://f98dc73d.linkbucks.com"&gt;O'Reilly - Java Distributed Computing&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2d5f17dc.linkbucks.com"&gt;O'Reilly - Java Message Service&lt;/a&gt;&lt;br /&gt;&lt;a href="http://48bb0bc3.linkbucks.com"&gt;O'Reilly - Java RMI&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ad5387c4.linkbucks.com"&gt;O'Reilly - Java Threads 2nd&lt;/a&gt;&lt;br /&gt;&lt;a href="http://587019e8.linkbucks.com"&gt;O'Reilly - Java and XML&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4843fce9.linkbucks.com"&gt;O'Reilly - JavaServer Faces&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4b8bfe5a.linkbucks.com"&gt;O'Reilly Java Servlet Programming&lt;/a&gt;&lt;br /&gt;&lt;a href="http://63994d32.linkbucks.com"&gt;Teach_Yourself_Java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://36d56dbb.linkbucks.com"&gt;The Java Language Specification 3rd Ed&lt;/a&gt;&lt;br /&gt;&lt;a href="http://5c6e29c4.linkbucks.com"&gt;Think IN java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://08556f31.linkbucks.com"&gt;Wrox - Beginning Java 2 JDK 5 Edition - 2005&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fa105dfc.linkbucks.com"&gt;Wrox - Beginning Java 2 JDK 5 Edition - 2005&lt;/a&gt;&lt;br /&gt;&lt;a href="http://adb5482d.linkbucks.com"&gt;apress_-_bluetooth_for_java__2003&lt;/a&gt;&lt;br /&gt;&lt;a href="http://b317e374.linkbucks.com"&gt;core java 2, volume i fundamentals 5th&lt;/a&gt;&lt;br /&gt;&lt;a href="http://175382c3.linkbucks.com"&gt;core java 2, volume ii  advanced features&lt;/a&gt;&lt;br /&gt;&lt;a href="http://7f87e373.linkbucks.com"&gt;O'Reilly - Learning Java&lt;/a&gt;&lt;br /&gt;&lt;a href="http://369f0647.linkbucks.com"&gt;goodbook&lt;/a&gt;&lt;br /&gt;&lt;a href="http://afdb0898.linkbucks.com"&gt;j2MEstepbystep&lt;/a&gt;&lt;br /&gt;&lt;a href="http://8c5694c2.linkbucks.com"&gt;javacryptographyreilly&lt;/a&gt;&lt;br /&gt;&lt;a href="http://0e54dbf8.linkbucks.com"&gt;sybex-javafoundations&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-1661151842000744808?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/1661151842000744808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/09/java-e-book.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/1661151842000744808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/1661151842000744808'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/09/java-e-book.html' title='Java E-book'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-5873261020804093991</id><published>2009-09-12T20:19:00.000-07:00</published><updated>2009-09-12T20:23:11.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='swing'/><category scheme='http://www.blogger.com/atom/ns#' term='JInternalFrame'/><category scheme='http://www.blogger.com/atom/ns#' term='AWT'/><title type='text'>Easy way to study Java :: JInternalFrame</title><content type='html'>&lt;p&gt;Java Swing Tutorial Explaining the&lt;span class="style5"&gt; JInternalFrame&lt;/span&gt; class. A JInternalFrame is confined to a visible area of a container it is placed in. JInternalFrame a top level swing component that has a contentpane.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;It can be iconified — in this case the icon remains in the main application container.&lt;/li&gt;&lt;li&gt;It can be maximized — Frame consumes the main application&lt;/li&gt;&lt;li&gt;It can be closed using standard popup window controls&lt;/li&gt;&lt;li&gt;It can be layered&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h1&gt;JInternalFrame Source Code&lt;/h1&gt; &lt;table width="740" border="0" cellpadding="2" cellspacing="2"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td bgcolor="#fafadf"&gt; &lt;pre&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import javax.swing.JInternalFrame;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import javax.swing.JDesktopPane;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import javax.swing.JMenu;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import javax.swing.JMenuItem;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import javax.swing.JMenuBar;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import javax.swing.JFrame;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import java.awt.event.*;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;import java.awt.*;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;public class JInternalFrameDemo extends JFrame {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; JDesktopPane jdpDesktop;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; static int openFrameCount = 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; public JInternalFrameDemo() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  super("JInternalFrame Usage Demo");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // Make the main window positioned as 50 pixels from each edge of the&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // screen.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  int inset = 50;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  setBounds(inset, inset, screenSize.width - inset * 2,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;    screenSize.height - inset * 2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // Add a Window Exit Listener&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  addWindowListener(new WindowAdapter() {&lt;/span&gt;&lt;br /&gt;&lt;center style="color: rgb(0, 0, 0);"&gt;&lt;iframe src="http://www.itechpoint.com/adspro/index.php?process=ads&amp;amp;action=publicserve&amp;amp;adid=3" marginheight="0" marginwidth="0" vspace="0" hspace="0" scrolling="no" width="560" frameborder="0" height="200"&gt;&amp;amp;lt;font size=-1&amp;amp;gt;&lt;/iframe&gt;&lt;/center&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;   public void windowClosing(WindowEvent e) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;    System.exit(0);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  });&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // Create and Set up the GUI.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  jdpDesktop = new JDesktopPane();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // A specialized layered pane to be used with JInternalFrames&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  createFrame(); // Create first window&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  setContentPane(jdpDesktop);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  setJMenuBar(createMenuBar());&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // Make dragging faster by setting drag mode to Outline&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  jdpDesktop.putClientProperty("JDesktopPane.dragMode", "outline");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; protected JMenuBar createMenuBar() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  JMenuBar menuBar = new JMenuBar();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  JMenu menu = new JMenu("Frame");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  menu.setMnemonic(KeyEvent.VK_N);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  JMenuItem menuItem = new JMenuItem("New IFrame");&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  menuItem.setMnemonic(KeyEvent.VK_N);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  menuItem.addActionListener(new ActionListener() {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   public void actionPerformed(ActionEvent e) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;    createFrame();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  });&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  menu.add(menuItem);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  menuBar.add(menu);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  return menuBar;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; protected void createFrame() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  MyInternalFrame frame = new MyInternalFrame();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  frame.setVisible(true);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  // Every JInternalFrame must be added to content pane using JDesktopPane&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  jdpDesktop.add(frame);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  try {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   frame.setSelected(true);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  } catch (java.beans.PropertyVetoException e) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; public static void main(String[] args) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  JInternalFrameDemo frame = new JInternalFrameDemo();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  frame.setVisible(true);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; class MyInternalFrame extends JInternalFrame {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  static final int xPosition = 30, yPosition = 30;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  public MyInternalFrame() {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   super("IFrame #" + (++openFrameCount), true, // resizable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;     true, // closable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;     true, // maximizable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;     true);// iconifiable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   setSize(300, 300);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   // Set the window's location.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;   setLocation(xPosition * openFrameCount, yPosition&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;     * openFrameCount);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; }&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p class="style4"&gt;Output&lt;/p&gt; &lt;p class="style9"&gt;&lt;img src="http://www.javabeginner.com/images/jinternalframe.JPG" alt="" width="447" height="460" /&gt;&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;&lt;a onclick="javascript:pageTracker._trackPageview('/downloads/java-swing/../jinternalframe.zip');" href="http://www.javabeginner.com/jinternalframe.zip"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;Java JInternalFrame Hierarchy&lt;/h3&gt; &lt;p&gt;javax.swing&lt;br /&gt;&lt;span class="style5"&gt;Class JInternalFrame &lt;/span&gt;&lt;br /&gt;java.lang.Object&lt;br /&gt;|&lt;br /&gt;+–java.awt.Component&lt;br /&gt;|&lt;br /&gt;+–java.awt.Container&lt;br /&gt;|&lt;br /&gt;+–javax.swing.JComponent&lt;br /&gt;|&lt;br /&gt;+–javax.swing.JInternalFrame&lt;br /&gt;&lt;strong&gt;All Implemented Interfaces: &lt;/strong&gt;&lt;br /&gt;Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants&lt;/p&gt; &lt;h2&gt;JInternalFrame Constructor&lt;/h2&gt; &lt;p&gt;&lt;span class="style5"&gt;JInternalFrame()&lt;/span&gt;&lt;br /&gt;Creates a non-resizable, non-closable, non-maximizable, non-iconifiable JInternalFrame with no title.&lt;br /&gt;&lt;span class="style5"&gt;JInternalFrame(String title)&lt;/span&gt;&lt;br /&gt;Creates a non-resizable, non-closable, non-maximizable, non-iconifiable JInternalFrame with the specified title.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JInternalFrame(String title, boolean resizable)&lt;/span&gt;&lt;br /&gt;Creates a non-closable, non-maximizable, non-iconifiable JInternalFrame with the specified title and resizability.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JInternalFrame(String title, boolean resizable, boolean closable)&lt;/span&gt;&lt;br /&gt;Creates a non-maximizable, non-iconifiable JInternalFrame with the specified title, resizability, and closability.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)&lt;/span&gt;&lt;br /&gt;Creates a non-iconifiable JInternalFrame with the specified title, resizability, closability, and maximizability.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)&lt;/span&gt;&lt;br /&gt;Creates a JInternalFrame with the specified title, resizability, closability, maximizability&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-5873261020804093991?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/5873261020804093991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/09/easy-way-to-study-java-jinternalframe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/5873261020804093991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/5873261020804093991'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/09/easy-way-to-study-java-jinternalframe.html' title='Easy way to study Java :: JInternalFrame'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8152818880556163645</id><published>2009-09-12T20:17:00.000-07:00</published><updated>2009-09-12T20:19:03.372-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='swing'/><category scheme='http://www.blogger.com/atom/ns#' term='JFrame'/><category scheme='http://www.blogger.com/atom/ns#' term='AWT'/><title type='text'>East way to study Java :: JFrame</title><content type='html'>Java Swing Tutorial Explaining the JFrame class. The components added to the frame are referred to as its contents; these are managed by the contentPane. To add a component to a JFrame, we must use its contentPane instead.JFrame is a Window with border, title and buttons. When JFrame is set visible, an event dispatching thread is started. JFrame objects store several objects including a Container object known as the content pane. To add a component to a JFrame, add it to the content pane.&lt;br /&gt;&lt;p class="style1"&gt;JFrame Features&lt;/p&gt; &lt;p&gt;It’s a window with title, border, (optional) menu bar and user-specified components.&lt;br /&gt;It can be moved, resized, iconified.&lt;br /&gt;It is not a subclass of JComponent.&lt;br /&gt;Delegates responsibility of managing user-specified components to a content pane, an instance of JPanel.&lt;/p&gt; &lt;p class="style1"&gt;Centering JFrame’s&lt;/p&gt; &lt;p&gt;By default, a Jframe is displayed in the upper-left corner of the screen. To display a frame&lt;br /&gt;at a specified location, you can use the setLocation(x, y) method in the JFrame class. This&lt;br /&gt;method places the upper-left corner of a frame at location (x, y).&lt;/p&gt; &lt;p&gt;The Swing API keeps improving with abstractions such as the setDefaultCloseOperation method&lt;br /&gt;for the JFrame&lt;/p&gt; &lt;p class="style1"&gt;Crating a JFrame Window&lt;/p&gt; &lt;p&gt;Step 1:     Construct an object of the JFrame class.&lt;/p&gt; &lt;p&gt;Step 2:     Set the size of the Jframe.&lt;/p&gt; &lt;p&gt;Step 3:     Set the title of the Jframe to appear in the title bar (title bar will be blank if no title is set).&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Step 4:     Set the default close operation. When the user clicks the close button, the program stops running.&lt;/p&gt; &lt;p&gt;Step 5:     Make the Jframe visible.&lt;/p&gt; &lt;p class="style5"&gt;How to position JFrame on Screen?&lt;/p&gt; &lt;p&gt;frame.setLocationRelativeTo( &lt;span class="style13"&gt;null&lt;/span&gt; );&lt;/p&gt; &lt;h1&gt;&lt;span class="style1"&gt;JFrame Source Code&lt;/span&gt;&lt;/h1&gt; &lt;table style="color: rgb(0, 0, 0);" width="700" bgcolor="#fafadf" border="0" cellpadding="2" cellspacing="2"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;pre&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;&lt;br /&gt;public class JFrameDemo {&lt;br /&gt;&lt;br /&gt; public static void main(String s[]) {&lt;br /&gt;  JFrame frame = new JFrame("JFrame Source Demo");&lt;br /&gt;  // Add a window listner for close button&lt;br /&gt;  frame.addWindowListener(new WindowAdapter() {&lt;br /&gt;&lt;br /&gt;   public void windowClosing(WindowEvent e) {&lt;br /&gt;    System.exit(0);&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;  // This is an empty content area in the frame&lt;br /&gt;  JLabel jlbempty = new JLabel("");&lt;br /&gt;  jlbempty.setPreferredSize(new Dimension(175, 100));&lt;br /&gt;  frame.getContentPane().add(jlbempty, BorderLayout.CENTER);&lt;br /&gt;  frame.pack();&lt;br /&gt;  frame.setVisible(true);&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p class="style4"&gt;Output&lt;/p&gt; &lt;p class="style9"&gt;&lt;img src="http://www.javabeginner.com/images/jframe.jpg" alt="" height="151" /&gt;&lt;/p&gt;  &lt;h3 class="style8"&gt;Java JFrame Hierarchy&lt;/h3&gt; &lt;p&gt;javax.swing&lt;br /&gt;&lt;span class="style5"&gt;Class JFrame&lt;/span&gt;&lt;br /&gt;java.lang.Object&lt;br /&gt;java.awt.Component&lt;br /&gt;java.awt.Container&lt;br /&gt;java.awt.Window&lt;br /&gt;java.awt.Frame&lt;br /&gt;javax.swing.JFrame&lt;br /&gt;All Implemented Interfaces:&lt;br /&gt;Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants&lt;/p&gt; &lt;h2&gt;JFrame Constructor&lt;/h2&gt; &lt;p&gt;&lt;span class="style5"&gt;JFrame()&lt;/span&gt;&lt;br /&gt;Constructs a new frame that is initially invisible.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JFrame(GraphicsConfiguration gc)&lt;/span&gt;&lt;br /&gt;Creates a Frame in the specified GraphicsConfiguration of a screen device and a blank title.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JFrame(String title)&lt;/span&gt;&lt;br /&gt;Creates a new, initially invisible Frame with the specified title.&lt;/p&gt; &lt;p&gt;&lt;span class="style5"&gt;JFrame(String title, GraphicsConfiguration gc)&lt;/span&gt;&lt;br /&gt;Creates a JFrame with the specified title and the specified GraphicsConfiguration of a screen device.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8152818880556163645?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8152818880556163645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/09/east-way-to-study-java-jframe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8152818880556163645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8152818880556163645'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/09/east-way-to-study-java-jframe.html' title='East way to study Java :: JFrame'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-4451245796408058686</id><published>2009-09-12T20:09:00.000-07:00</published><updated>2009-09-12T20:21:32.891-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='swing'/><category scheme='http://www.blogger.com/atom/ns#' term='AWT'/><title type='text'>Easy way to study JAVA :: Swing</title><content type='html'>&lt;p&gt;What is &lt;strong&gt;Swings in java&lt;/strong&gt; ?&lt;/p&gt; &lt;ul&gt;&lt;li&gt; A part of The JFC&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Swing Java &lt;/strong&gt;consists of&lt;br /&gt;Look and feel&lt;br /&gt;Accessibility&lt;br /&gt;Java 2D&lt;br /&gt;Drag and Drop, etc&lt;/li&gt;&lt;li&gt; &lt;span class="style4"&gt;Compiling &amp;amp; running programs&lt;/span&gt;&lt;/li&gt;&lt;li&gt;if you do not explicitly add a GUI component to a container, the GUI component will not be displayed when the container appears on the screen.&lt;/li&gt;&lt;/ul&gt;   &lt;p&gt;&lt;span class="style11"&gt; &lt;span style="font-weight: 400; text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;Swing Model/view design&lt;/span&gt;:&lt;/span&gt; &lt;/span&gt;The “view part” of the MV design is implemented with a component object and the UI object. The “model part” of the MV design is implemented by a model object and a change listener object&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Swing&lt;/span&gt; is built on top of AWT and is entirely written in Java, using AWT’s lightweight component support. In particular, unlike AWT, t he architecture of Swing components makes it easy to customize both their appearance and behavior. Components from AWT and Swing can be mixed, allowing you to add Swing support to existing AWT-based programs. For example, swing components such as JSlider, JButton and JCheckbox could be used in the same program with standard AWT labels, textfields and scrollbars. You could subclass the existing Swing UI, model, or change listener classes without having to reinvent the entire implementation. Swing also has the ability to replace these objects on-the-fly.&lt;/p&gt; &lt;table style="color: rgb(0, 0, 0);" width="600" border="0" cellpadding="2" cellspacing="2"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td bgcolor="#fafadf"&gt; &lt;ul&gt;&lt;li&gt;100% Java implementation of components&lt;/li&gt;&lt;li&gt;Pluggable Look &amp;amp; Feel&lt;/li&gt;&lt;li&gt;Lightweight components&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Uses MVC Architecture&lt;br /&gt;&lt;/strong&gt; Model represents the data&lt;br /&gt;View as a visual representation of the data&lt;br /&gt;Controller takes input and translates it to changes in data&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Three parts &lt;/strong&gt;&lt;br /&gt;Component set (subclasses of JComponent)&lt;br /&gt;Support classes&lt;br /&gt;Interfaces&lt;/li&gt;&lt;/ul&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;&lt;span style="font-weight: bold;"&gt;In Swing&lt;/span&gt;, classes that represent GUI components have names beginning with the letter J. Some examples are JButton, JLabel, and JSlider. Altogether there are more than 250 new classes and 75 interfaces in Swing — twice as many as in AWT.&lt;/p&gt; &lt;p&gt;&lt;strong style="text-decoration: underline;"&gt;Java Swing class hierarchy&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The class &lt;strong style="font-weight: 400;"&gt;JComponent&lt;/strong&gt;, descended directly from Container, is the root class for most of Swing’s user interface components.&lt;/p&gt; &lt;p&gt;&lt;img style="width: 331px; height: 325px;" src="http://www.javabeginner.com/images/java-swing.gif" alt="" /&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-weight: bold;"&gt;Swing&lt;/span&gt; contains &lt;strong style="font-weight: 400;"&gt;components&lt;/strong&gt; that you’ll use to build a GUI. I am listing you some of the commonly used Swing components. To learn and understand these swing programs, AWT Programming knowledge &lt;strong&gt;is not&lt;/strong&gt; required.&lt;/p&gt; &lt;h1&gt;&lt;span style="font-size:medium;"&gt;Java Swing Examples&lt;/span&gt;&lt;/h1&gt; &lt;p class="style4"&gt;Below is a java swing code for the traditional Hello World program.&lt;/p&gt; &lt;p&gt;Basically, the idea behind this Hello World program is to learn how to create a java program, compile and run it. To create your java source code you can use any editor( Text pad/Edit plus are my favorites) or you can use an IDE like &lt;strong style="font-weight: 400;"&gt;Eclipse&lt;/strong&gt;.&lt;/p&gt; &lt;table style="color: rgb(0, 0, 0);" width="700" bgcolor="#fafadf" border="0" cellpadding="2" cellspacing="2"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;pre&gt;import javax.swing.JFrame;&lt;br /&gt;import javax.swing.JLabel;&lt;br /&gt;&lt;br /&gt;//import statements&lt;br /&gt;//Check if window closes automatically. Otherwise add suitable code&lt;br /&gt;public class HelloWorldFrame extends JFrame {&lt;br /&gt;&lt;br /&gt;public static void main(String args[]) {&lt;br /&gt;new HelloWorldFrame();&lt;br /&gt;}&lt;br /&gt;HelloWorldFrame() {&lt;br /&gt;JLabel jlbHelloWorld = new JLabel("Hello World");&lt;br /&gt;add(jlbHelloWorld);&lt;br /&gt;this.setSize(100, 100);&lt;br /&gt;// pack();&lt;br /&gt;setVisible(true);&lt;br /&gt;}&lt;br /&gt;}&lt;/pre&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p class="style4"&gt;Output&lt;/p&gt; &lt;p class="style9"&gt;&lt;img src="http://www.javabeginner.com/images/java-swing-example.jpg" alt="" width="140" height="100" /&gt;&lt;/p&gt; &lt;p&gt;&lt;span class="style14"&gt;&lt;strong&gt;Note: &lt;/strong&gt;&lt;span class="style13"&gt;Below are some links to java swing tutorials that forms a helping hand to get started with java programming swing.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;span class="style5"&gt;JPanel&lt;/span&gt; is Swing’s version of the AWT class Panel and uses the same default layout, FlowLayout. JPanel is descended directly from JComponent.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JFrame&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; is Swing’s version of Frame and is descended directly from that class. The components added to the frame are referred to as its contents; these are managed by the contentPane. To add a component to a JFrame, we must use its contentPane instead.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JInternalFrame&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; is confined to a visible area of a container it is placed in. It can be iconified , maximized and layered.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JWindow&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a href="http://www.javabeginner.com/java-swing/java-jwindow-class-example"&gt;&lt;span class="style6"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;is Swing’s version of Window and is descended directly from that class. Like Window, it uses BorderLayout by default.&lt;/li&gt;&lt;li&gt;&lt;span class="style5"&gt;JDialog&lt;/span&gt; is Swing’s version of Dialog and is descended directly from that class. Like Dialog, it uses BorderLayout by default. Like JFrame and JWindow,&lt;br /&gt;JDialog contains a rootPane hierarchy including a contentPane, and it allows layered and glass panes. All dialogs are modal, which means the current&lt;br /&gt;thread is blocked until user interaction with it has been completed. JDialog class is intended as the basis for creating custom dialogs; however, some&lt;br /&gt;of the most common dialogs are provided through static methods in the class JOptionPane.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JLabel&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;, descended from JComponent, is used to create text labels.&lt;/li&gt;&lt;li&gt;The abstract class AbstractButton extends class JComponent and provides a foundation for a family of button classes, including&lt;br /&gt;&lt;span class="style6"&gt;&lt;span class="style6"&gt;&lt;strong&gt;JButton&lt;/strong&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JTextField&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; allows editing of a single line of text. New features include the ability to justify the text left, right, or center, and to set the text’s font.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JPasswordField&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; (a direct subclass of JTextField) you can suppress the display of input. Each character entered can be replaced by an echo character.&lt;br /&gt;This allows confidential input for passwords, for example. By default, the echo character is the asterisk, *.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JTextArea&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;allows editing of multiple lines of text. JTextArea can be used in conjunction with class JScrollPane to achieve scrolling. The underlying &lt;span class="style6"&gt; &lt;strong style="font-weight: 400;"&gt;JScrollPane&lt;/strong&gt;&lt;/span&gt; can be forced to always or never have either the vertical or horizontal scrollbar;&lt;br /&gt;JButton is a component the user clicks to trigger a specific action.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JRadioButton&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; is similar to JCheckbox, except for the default icon for each class. A set of radio buttons can be associated as a group in which only&lt;br /&gt;one button at a time can be selected.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JCheckBox&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;is not a member of a checkbox group. A checkbox can be selected and deselected, and it also displays its current state.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JComboBox&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;is like a drop down box. You can click a drop-down arrow and select an option from a list. For example, when the component has focus,&lt;br /&gt;pressing a key that corresponds to the first character in some entry’s name selects that entry. A vertical scrollbar is used for longer lists.&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: left;"&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JList&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;provides a scrollable set of items from which one or more may be selected. JList can be populated from an Array or Vector. JList does not&lt;br /&gt;&lt;/div&gt;support scrolling directly, instead, the list must be associated with a scrollpane. The view port used by the scroll pane can also have a user-defined&lt;br /&gt;border. JList actions are handled using ListSelectionListener.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JTabbedPane&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;a href="http://www.javabeginner.com/java-swing/java-jtabbedpane-class-example"&gt; &lt;/a&gt;contains a tab that can have a tool tip and a mnemonic, and it can display both text and an image.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JToolbar&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; contains a number of components whose type is usually some kind of button which can also include separators to group related components&lt;br /&gt;within the toolbar.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;FlowLayout&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; when used arranges swing components from left to right until there’s no more space available. Then it begins a new row below it and moves&lt;br /&gt;from left to right again. Each component in a FlowLayout gets as much space as it needs and no more.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;BorderLayout&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;places swing components in the North, South, East, West and center of a container. You can add horizontal and vertical gaps between&lt;br /&gt;the areas.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;GridLayout&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; is a layout manager that lays out a container’s components in a rectangular grid. The container is divided into equal-sized rectangles,&lt;br /&gt;and one component is placed in each rectangle.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;GridBagLayout&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; is a layout manager that lays out a container’s components in a grid of cells with each component occupying one or more cells,&lt;br /&gt;called its display area. The display area aligns components vertically and horizontally, without requiring that the components be of the same size.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;JMenubar&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;can contain several JMenu’s. Each of the JMenu’s can contain a series of JMenuItem ’s that you can select. Swing provides support for&lt;br /&gt;pull-down and popup menus.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;Scrollable JPopupMenu&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; is a scrollable popup menu that can be used whenever we have so many items in a popup menu that exceeds the screen visible height.&lt;br /&gt;&lt;h3&gt;Java Swing Projects&lt;/h3&gt; &lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;Java Swing Calculator&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;developed using Java Swing. It is a basic four-function calculator java program source code.&lt;/li&gt;&lt;li&gt;&lt;span class="style6"&gt;&lt;strong&gt;&lt;span class="style6"&gt;Java Swing Address&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt; Book demonstrates how to create a simple free address book program using java swing and jdbc. Also you will learn to use&lt;br /&gt;the following swing components like Jbuttons, JFrames, JTextFields and Layout Manager (GridBagLayout).&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-4451245796408058686?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/4451245796408058686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/09/easy-way-to-study-java-swing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/4451245796408058686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/4451245796408058686'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/09/easy-way-to-study-java-swing.html' title='Easy way to study JAVA :: Swing'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8413099257077064672</id><published>2009-09-05T23:57:00.001-07:00</published><updated>2009-09-05T23:57:54.136-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='api'/><category scheme='http://www.blogger.com/atom/ns#' term='J2EE'/><title type='text'>Why Web Services are needed in Industry</title><content type='html'>&lt;p&gt;Basically Web services mitigate the application integration crisis. It helps integrating applications at a significantly lower price point than any other integration technology. &lt;/p&gt;  &lt;p&gt;It’s a new kind of middleware based on XML and the Web. XML and the Web help solve the challenges associated with traditional application-to-application integration like heterogeneity. They are platform and language independent. &lt;/p&gt;  &lt;p&gt;Web Services has following advantages:&lt;/p&gt;  &lt;ol&gt;&lt;li&gt;Exposing your &lt;nobr&gt;&lt;span style="border-bottom: 1px solid rgb(153, 22, 22); color: rgb(153, 22, 22); text-decoration: underline; display: inline; background-color: transparent; font-size: 1em; padding-bottom: 1px; cursor: pointer; width: auto; margin-left: 0px; position: relative; line-height: 1em;" id="tfTextLink09900035768598081" class="tfTextLink"&gt;API&lt;/span&gt;&lt;/nobr&gt; onto a network Connecting Different Applications&lt;/li&gt;&lt;li&gt;Low Cost of communication &lt;/li&gt;&lt;li&gt;Support for Loosely Coupled Applications&lt;/li&gt;&lt;li&gt;Web Services are Self Describing using WSDL&lt;/li&gt;&lt;li&gt;Automatic Discovery using UDDI&lt;/li&gt;&lt;li&gt;Business Opportunity to grow your business&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8413099257077064672?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8413099257077064672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/09/why-web-services-are-needed-in-industry.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8413099257077064672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8413099257077064672'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/09/why-web-services-are-needed-in-industry.html' title='Why Web Services are needed in Industry'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-5578487250422057751</id><published>2009-07-13T21:58:00.001-07:00</published><updated>2009-07-13T21:58:50.690-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer 7</title><content type='html'>Q:      Is Empty .java file a valid source file?&lt;br /&gt;A:     Yes, an empty .java file is a perfectly valid source file.&lt;br /&gt;     &lt;br /&gt;Q:     Can a .java file contain more than one java classes?&lt;br /&gt;A:     Yes, a .java file contain more than one java classes, provided at the most one of them is a public class.&lt;br /&gt;&lt;br /&gt;Q:     Is String a primitive data type in Java?&lt;br /&gt;A:     No String is not a primitive data type in Java, even though it is one of the most extensively used object. Strings in Java are instances of String class defined in java.lang package.&lt;br /&gt;&lt;br /&gt;Q:     Is main a keyword in Java?&lt;br /&gt;A:     No, main is not a keyword in Java.&lt;br /&gt;     &lt;br /&gt;Q:     Is next a keyword in Java?&lt;br /&gt;A:     No, next is not a keyword.&lt;br /&gt;     &lt;br /&gt;Q:     Is delete a keyword in Java?&lt;br /&gt;A:     No, delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.&lt;br /&gt;     &lt;br /&gt;Q:     Is exit a keyword in Java?&lt;br /&gt;A:     No. To exit a program explicitly you use exit method in System object.&lt;br /&gt;&lt;br /&gt;Q:     What happens if you dont initialize an instance variable of any of the primitive types in Java?&lt;br /&gt;A:     Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0, a boolean will be initialized to false.&lt;br /&gt;&lt;br /&gt;Q:     What will be the initial value of an object reference which is defined as an instance variable?&lt;br /&gt;A:     The object references are all initialized to null in Java. However in order to do anything useful with these references, you must set them to a valid object, else you will get NullPointerExceptions everywhere you try to use such default initialized references.&lt;br /&gt;     &lt;br /&gt;Q:     What are the different scopes for Java variables?&lt;br /&gt;A:     The scope of a Java variable is determined by the context in which the variable is declared. Thus a java variable can have one of the three scopes at any given point in time.&lt;br /&gt;1. Instance : - These are typical object level variables, they are initialized to default values at the time of creation of object, and remain accessible as long as the object accessible.&lt;br /&gt;2. Local : - These are the variables that are defined within a method. They remain accessbile only during the course of method excecution. When the method finishes execution, these variables fall out of scope.&lt;br /&gt;3. Static: - These are the class level variables. They are initialized when the class is loaded in JVM for the first time and remain there as long as the class remains loaded. They are not tied to any particular object instance.&lt;br /&gt;     &lt;br /&gt;Q:     What is the default value of the local variables?&lt;br /&gt;A:     The local variables are not initialized to any default value, neither primitives nor object references. If you try to use these variables without initializing them explicitly, the java compiler will not compile the code. It will complain abt the local varaible not being initilized..&lt;br /&gt;     &lt;br /&gt;Q:     How many objects are created in the following piece of code?&lt;br /&gt;MyClass c1, c2, c3;&lt;br /&gt;c1 = new MyClass ();&lt;br /&gt;c3 = new MyClass ();&lt;br /&gt;A:     Only 2 objects are created, c1 and c3. The reference c2 is only declared and not initialized.&lt;br /&gt;&lt;br /&gt;Q:     Can a public class MyClass be defined in a source file named YourClass.java?&lt;br /&gt;A:     No the source file name, if it contains a public class, must be the same as the public class name itself with a .java extension.&lt;br /&gt;&lt;br /&gt;Q:     Can main method be declared final?&lt;br /&gt;A:     Yes, the main method can be declared final, in addition to being public static.&lt;br /&gt;     &lt;br /&gt;Q:     What will be the output of the following statement?&lt;br /&gt;System.out.println ("1" + 3);&lt;br /&gt;A:     It will print 13.&lt;br /&gt;     &lt;br /&gt;Q:     What will be the default values of all the elements of an array defined as an instance variable?&lt;br /&gt;A:     If the array is an array of primitive types, then all the elements of the array will be initialized to the default value corresponding to that primitive type. e.g. All the elements of an array of int will be initialized to 0, while that of boolean type will be initialized to false. Whereas if the array is an array of references (of any type), all the elements will be initialized to null.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-5578487250422057751?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/5578487250422057751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/5578487250422057751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/5578487250422057751'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-7.html' title='InterView Java :: Question vs Answer 7'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8457923364287111883</id><published>2009-07-13T21:57:00.000-07:00</published><updated>2009-07-13T21:58:18.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer 6</title><content type='html'>Q:     What is daemon thread and which method is used to create the daemon thread?&lt;br /&gt;A:     Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.&lt;br /&gt;&lt;br /&gt;Q:     Can applets communicate with each other?&lt;br /&gt;A:     At this point in time applets may communicate with other applets running in the same virtual machine. If the applets are of the same class, they can communicate via shared static variables. If the applets are of different classes, then each will need a reference to the same class with static variables. In any case the basic idea is to pass the information back and forth through a static variable.&lt;br /&gt;&lt;br /&gt;An applet can also get references to all other applets on the same page using the getApplets() method of java.applet.AppletContext. Once you get the reference to an applet, you can communicate with it by using its public members.&lt;br /&gt;&lt;br /&gt;It is conceivable to have applets in different virtual machines that talk to a server somewhere on the Internet and store any data that needs to be serialized there. Then, when another applet needs this data, it could connect to this same server. Implementing this is non-trivial.&lt;br /&gt;&lt;br /&gt;Q:     What are the steps in the JDBC connection?&lt;br /&gt;A:       While making a JDBC connection we go through the following steps :&lt;br /&gt;&lt;br /&gt;Step 1 : Register the database driver by using :&lt;br /&gt;&lt;br /&gt;Class.forName(\" driver classs for that specific database\" );&lt;br /&gt;&lt;br /&gt;Step 2 : Now create a database connection using :&lt;br /&gt;&lt;br /&gt;Connection con = DriverManager.getConnection(url,username,password);&lt;br /&gt;&lt;br /&gt;Step 3: Now Create a query using :&lt;br /&gt;&lt;br /&gt;Statement stmt = Connection.Statement(\"select * from TABLE NAME\");&lt;br /&gt;&lt;br /&gt;Step 4 : Exceute the query :&lt;br /&gt;&lt;br /&gt;stmt.exceuteUpdate();&lt;br /&gt;&lt;br /&gt;Q:     How does a try statement determine which catch clause should be used to handle an exception?&lt;br /&gt;A:     When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exceptionis executed. The remaining catch clauses are ignored.&lt;br /&gt;&lt;br /&gt;Q:      Can an unreachable object become reachable again?&lt;br /&gt;A:     An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects.&lt;br /&gt;&lt;br /&gt;Q:     What method must be implemented by all threads?&lt;br /&gt;A:     All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.&lt;br /&gt;     &lt;br /&gt;Q:     What are synchronized methods and synchronized statements?&lt;br /&gt;A:     Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.&lt;br /&gt;&lt;br /&gt;Q:     What is Externalizable?&lt;br /&gt;A:     Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)&lt;br /&gt;&lt;br /&gt;Q:     What modifiers are allowed for methods in an Interface?&lt;br /&gt;A:     Only public and abstract modifiers are allowed for methods in interfaces.&lt;br /&gt;&lt;br /&gt;Q:     What are some alternatives to inheritance?&lt;br /&gt;A:     Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable, and forward messages to the instance. It is often safer than inheritance because it forces you to think about each message you forward, because the instance is of a known class, rather than a new class, and because it doesn't force you to accept all the methods of the super class: you can provide only the methods that really make sense. On the other hand, it makes you write more code, and it is harder to re-use (because it is not a subclass).&lt;br /&gt;     &lt;br /&gt;Q:     What does it mean that a method or field is "static"?&lt;br /&gt;A:     Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a static variable in a particular object, the value of that variable changes for all instances of that class.&lt;br /&gt;&lt;br /&gt;Static methods can be referenced with the name of the class rather than the name of a particular object of the class (though that works too). That's how library methods like System.out.println() work out is a static field in the java.lang.System class.&lt;br /&gt;&lt;br /&gt;Q:     What is the difference between preemptive scheduling and time slicing?&lt;br /&gt;A:     Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.&lt;br /&gt;     &lt;br /&gt;Q:     What is the catch or declare rule for method declarations?&lt;br /&gt;A:     If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8457923364287111883?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8457923364287111883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8457923364287111883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8457923364287111883'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-6.html' title='InterView Java :: Question vs Answer 6'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-2718868503614478855</id><published>2009-07-13T21:56:00.000-07:00</published><updated>2009-07-13T21:57:32.874-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer 5</title><content type='html'>Q:     What are the different ways to handle exceptions?&lt;br /&gt;A:     There are two ways to handle exceptions,&lt;br /&gt;1. By wrapping the desired code in a try block followed by a catch block to catch the exceptions. and&lt;br /&gt;2. List the desired exceptions in the throws clause of the method and let the caller of the method hadle those exceptions.&lt;br /&gt;     &lt;br /&gt;Q:     What is the basic difference between the 2 approaches to exception handling.&lt;br /&gt;1&gt; try catch block and&lt;br /&gt;2&gt; specifying the candidate exceptions in the throws clause?&lt;br /&gt;When should you use which approach?&lt;br /&gt;A:     In the first approach as a programmer of the method, you urself are dealing with the exception. This is fine if you are in a best position to decide should be done in case of an exception. Whereas if it is not the responsibility of the method to deal with it's own exceptions, then do not use this approach. In this case use the second approach. In the second approach we are forcing the caller of the method to catch the exceptions, that the method is likely to throw. This is often the approach library creators use. They list the exception in the throws clause and we must catch them. You will find the same approach throughout the java libraries we use.&lt;br /&gt;     &lt;br /&gt;Q:     Is it necessary that each try block must be followed by a catch block?&lt;br /&gt;A:     It is not necessary that each try block must be followed by a catch block. It should be followed by either a catch block OR a finally block. And whatever exceptions are likely to be thrown should be declared in the throws clause of the method.&lt;br /&gt;&lt;br /&gt;Q:     If I write return at the end of the try block, will the finally block still execute?&lt;br /&gt;A:     Yes even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.&lt;br /&gt;     &lt;br /&gt;Q:     If I write System.exit (0); at the end of the try block, will the finally block still execute?&lt;br /&gt;A:     No in this case the finally block will not execute because when you say System.exit (0); the control immediately goes out of the program, and thus finally never executes.&lt;br /&gt;&lt;br /&gt;Q:      How are Observer and Observable used?&lt;br /&gt;A:     Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.&lt;br /&gt;&lt;br /&gt;Q:     What is synchronization and why is it important?&lt;br /&gt;A:     With respect to multithreading, synchronization is the capability to control&lt;br /&gt;the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.&lt;br /&gt;     &lt;br /&gt;Q:     How does Java handle integer overflows and underflows?&lt;br /&gt;A:     It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.&lt;br /&gt;     &lt;br /&gt;Q:     Does garbage collection guarantee that a program will not run out of memory?&lt;br /&gt;A:     Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection&lt;br /&gt;.&lt;br /&gt;Q:     What is the difference between preemptive scheduling and time slicing?&lt;br /&gt;A:     Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.&lt;br /&gt;     &lt;br /&gt;Q:     When a thread is created and started, what is its initial state?&lt;br /&gt;A:     A thread is in the ready state after it has been created and started.&lt;br /&gt;     &lt;br /&gt;Q:     What is the purpose of finalization?&lt;br /&gt;A:     The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.&lt;br /&gt; &lt;br /&gt;Q:     What is the Locale class?&lt;br /&gt;A:     The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.&lt;br /&gt;&lt;br /&gt;Q:     What is the difference between a while statement and a do statement?&lt;br /&gt;A:     A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.&lt;br /&gt;&lt;br /&gt;Q:     What is the difference between static and non-static variables?&lt;br /&gt;A:     A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.&lt;br /&gt;     &lt;br /&gt;Q:     How are this() and super() used with constructors?&lt;br /&gt;A:     This() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.&lt;br /&gt;&lt;br /&gt;Q:     What are synchronized methods and synchronized statements?&lt;br /&gt;A:     Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-2718868503614478855?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/2718868503614478855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/2718868503614478855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/2718868503614478855'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-5.html' title='InterView Java :: Question vs Answer 5'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-1145501948777772885</id><published>2009-07-13T21:55:00.000-07:00</published><updated>2009-07-13T21:57:08.553-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer 4</title><content type='html'>Q:      Does Java provide any construct to find out the size of an object?&lt;br /&gt;A:     No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.&lt;br /&gt;&lt;br /&gt;Q:     Give a simplest way to find out the time a method takes for execution without using any profiling tool?&lt;br /&gt;A:     Read the system time just before the method is invoked and immediately after method returns. Take the time difference, which will give you the time taken by a method for execution.&lt;br /&gt;&lt;br /&gt;To put it in code...&lt;br /&gt;&lt;br /&gt;long start = System.currentTimeMillis ();&lt;br /&gt;method ();&lt;br /&gt;long end = System.currentTimeMillis ();&lt;br /&gt;&lt;br /&gt;System.out.println ("Time taken for execution is " + (end - start));&lt;br /&gt;&lt;br /&gt;Remember that if the time taken for execution is too small, it might show that it is taking zero milliseconds for execution. Try it on a method which is big enough, in the sense the one which is doing considerable amout of processing.&lt;br /&gt;   &lt;br /&gt;Q:     What are wrapper classes?&lt;br /&gt;A:     Java provides specialized classes corresponding to each of the primitive data types. These are called wrapper classes. They are e.g. Integer, Character, Double etc.&lt;br /&gt;   &lt;br /&gt;Q:     Why do we need wrapper classes?&lt;br /&gt;A:     It is sometimes easier to deal with primitives as objects. Moreover most of the collection classes store objects and not primitive data types. And also the wrapper classes provide many utility methods also. Because of these resons we need wrapper classes. And since we create instances of these classes we can store them in any of the collection classes and pass them around as a collection. Also we can pass them around as method parameters where a method expects an object.&lt;br /&gt;   &lt;br /&gt;Q:     What are checked exceptions?&lt;br /&gt;A:     Checked exception are those which the Java compiler forces you to catch. e.g. IOException are checked Exceptions.&lt;br /&gt;   &lt;br /&gt;Q:     What are runtime exceptions?&lt;br /&gt;A:     Runtime exceptions are those exceptions that are thrown at runtime because of either wrong input data or because of wrong business logic etc. These are not checked by the compiler at compile time.&lt;br /&gt;   &lt;br /&gt;Q:     What is the difference between error and an exception?&lt;br /&gt;A:     An error is an irrecoverable condition occurring at runtime. Such as OutOfMemory error. These JVM errors and you can not repair them at runtime. While exceptions are conditions that occur because of bad input etc. e.g. FileNotFoundException will be thrown if the specified file does not exist. Or a NullPointerException will take place if you try using a null reference. In most of the cases it is possible to recover from an exception (probably by giving user a feedback for entering proper values etc.).&lt;br /&gt;   &lt;br /&gt;Q:     How to create custom exceptions?&lt;br /&gt;A:     Your class should extend class Exception, or some more specific type thereof.&lt;br /&gt;   &lt;br /&gt;Q:     If I want an object of my class to be thrown as an exception object, what should I do?&lt;br /&gt;A:     The class should extend from Exception class. Or you can extend your class from some more precise exception type also.&lt;br /&gt;   &lt;br /&gt;Q:     If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?&lt;br /&gt;A:     One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.&lt;br /&gt;   &lt;br /&gt;Q:     How does an exception permeate through the code?&lt;br /&gt;A:     An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a code which is wrapped in a try block followed by one or more catch blocks, a search is made for matching catch block. If a matching type is found then that block will be invoked. If a matching type is not found then the exception moves up the method stack and reaches the caller method. Same procedure is repeated if the caller method is included in a try catch block. This process continues until a catch block handling the appropriate type of exception is found. If it does not find such a block then finally the program terminates.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-1145501948777772885?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/1145501948777772885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/1145501948777772885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/1145501948777772885'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer.html' title='InterView Java :: Question vs Answer 4'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-3097529888954332411</id><published>2009-07-13T21:53:00.000-07:00</published><updated>2009-07-13T21:54:40.375-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer 3</title><content type='html'>Q:      Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?&lt;br /&gt;A:     Yes the imports are checked for the semantic validity at compile time. The code containing above line of import will not compile. It will throw an error saying,can not resolve symbol&lt;br /&gt;symbol : class ABCD&lt;br /&gt;location: package io&lt;br /&gt;import java.io.ABCD;&lt;br /&gt;     &lt;br /&gt;Q:     Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?&lt;br /&gt;A:     No you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any of it's subpackage.&lt;br /&gt;     &lt;br /&gt;Q:     What is the difference between declaring a variable and defining a variable?&lt;br /&gt;A:     In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization.&lt;br /&gt;e.g String s; is just a declaration while String s = new String ("abcd"); Or String s = "abcd"; are both definitions.&lt;br /&gt;&lt;br /&gt;Q:     What is the default value of an object reference declared as an instance variable?&lt;br /&gt;A:     null unless we define it explicitly.&lt;br /&gt;     &lt;br /&gt;Q:     Can a top level class be private or protected?&lt;br /&gt;A:     No. A top level class can not be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a default access.If a top level class is declared as private the compiler will complain that the "modifier private is not allowed here". This means that a top level class can not be private. Same is the case with protected.&lt;br /&gt;     &lt;br /&gt;Q:     What type of parameter passing does Java support?&lt;br /&gt;A:     In Java the arguments are always passed by value .&lt;br /&gt;     &lt;br /&gt;Q:     Primitive data types are passed by reference or pass by value?&lt;br /&gt;A:     Primitive data types are passed by value.&lt;br /&gt;     &lt;br /&gt;Q:     Objects are passed by value or by reference?&lt;br /&gt;A:     Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object .&lt;br /&gt;     &lt;br /&gt;Q:     What is serialization?&lt;br /&gt;A:     Serialization is a mechanism by which you can save the state of an object by converting it to a byte stream.&lt;br /&gt;     &lt;br /&gt;QHow do I serialize an object to a file?&lt;br /&gt;A:     The class whose instances are to be serialized should implement an interface Serializable. Then you pass the instance to the ObjectOutputStream which is connected to a fileoutputstream. This will save the object to a file.&lt;br /&gt;     &lt;br /&gt;Q:     Which methods of Serializable interface should I implement?&lt;br /&gt;A:     The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods.&lt;br /&gt;     &lt;br /&gt;Q:     How can I customize the seralization process? i.e. how can one have a control over the serialization process?&lt;br /&gt;A:     Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.&lt;br /&gt;&lt;br /&gt;Q:     What is the common usage of serialization?&lt;br /&gt;A:     Whenever an object is to be sent over the network, objects need to be serialized. Moreover if the state of an object is to be saved, objects need to be serilazed.&lt;br /&gt;     &lt;br /&gt;Q:     What is Externalizable interface?&lt;br /&gt;A:     Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism. Thus if your class implements this interface, you can customize the serialization process by implementing these methods.&lt;br /&gt;&lt;br /&gt;Q:     When you serialize an object, what happens to the object references included in the object?&lt;br /&gt;A:     The serialization mechanism generates an object graph for serialization. Thus it determines whether the included object references are serializable or not. This is a recursive process. Thus when an object is serialized, all the included objects are also serialized alongwith the original obect.&lt;br /&gt;&lt;br /&gt;Q:     What one should take care of while serializing the object?&lt;br /&gt;A:     One should make sure that all the included objects are also serializable. If any of the objects is not serializable then it throws a NotSerializableException.&lt;br /&gt;     &lt;br /&gt;Q:     What happens to the static fields of a class during serialization?&lt;br /&gt;A:     There are three exceptions in which serialization doesnot necessarily read and write to the stream. These are&lt;br /&gt;1. Serialization ignores static fields, because they are not part of ay particular state state.&lt;br /&gt;2. Base class fields are only hendled if the base class itself is serializable.&lt;br /&gt;3. Transient fields.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-3097529888954332411?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/3097529888954332411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/3097529888954332411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/3097529888954332411'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-3.html' title='InterView Java :: Question vs Answer 3'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-3894486001094005377</id><published>2009-07-13T21:52:00.000-07:00</published><updated>2009-07-13T21:53:44.182-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer 2</title><content type='html'>Q:     What environment variables do I need to set on my machine in order to be able to run Java programs?&lt;br /&gt;A:     CLASSPATH and PATH are the two variables.&lt;br /&gt;     &lt;br /&gt;Q:     Can an application have multiple classes having main method?&lt;br /&gt;A:     Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method.&lt;br /&gt;     &lt;br /&gt;Q:     Can I have multiple main methods in the same class?&lt;br /&gt;A:     No the program fails to compile. The compiler says that the main method is already defined in the class.&lt;br /&gt;     &lt;br /&gt;Q:     Do I need to import java.lang package any time? Why ?&lt;br /&gt;A:     No. It is by default loaded internally by the JVM.&lt;br /&gt;     &lt;br /&gt;Q:     Can I import same package/class twice? Will the JVM load the package twice at runtime?&lt;br /&gt;A:     One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And the JVM will internally load the class only once no matter how many times you import the same class.&lt;br /&gt;     &lt;br /&gt;Q:     What are Checked and UnChecked Exception?&lt;br /&gt;A:     A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses.&lt;br /&gt;Making an exception checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOException thrown by java.io.FileInputStream's read() method·&lt;br /&gt;Unchecked exceptions are RuntimeException and any of its subclasses. Class Error and its subclasses also are unchecked. With an unchecked exception, however, the compiler doesn't force client programmers either to catch the&lt;br /&gt;exception or declare it in a throws clause. In fact, client programmers may not even know that the exception could be thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method· Checked exceptions must be caught at compile time. Runtime exceptions do not need to be. Errors often cannot be.&lt;br /&gt;     &lt;br /&gt;Q:     What is Overriding?&lt;br /&gt;A:     When a class defines a method using the same name, return type, and arguments as a method in its superclass, the method in the class overrides the method in the superclass.&lt;br /&gt;When the method is invoked for an object of the class, it is the new definition of the method that is called, and not the method definition from superclass. Methods may be overridden to be more public, not more private.&lt;br /&gt;     &lt;br /&gt;Q:     What are different types of inner classes?&lt;br /&gt;A:     Nested top-level classes, Member classes, Local classes, Anonymous classes&lt;br /&gt;&lt;br /&gt;Nested top-level classes- If you declare a class within a class and specify the static modifier, the compiler treats the class just like any other top-level class.&lt;br /&gt;Any class outside the declaring class accesses the nested class with the declaring class name acting similarly to a package. eg, outer.inner. Top-level inner classes implicitly have access only to static variables.There can also be inner interfaces. All of these are of the nested top-level variety.&lt;br /&gt;&lt;br /&gt;Member classes - Member inner classes are just like other member methods and member variables and access to the member class is restricted, just like methods and variables. This means a public member class acts similarly to a nested top-level class. The primary difference between member classes and nested top-level classes is that member classes have access to the specific instance of the enclosing class.&lt;br /&gt;&lt;br /&gt;Local classes - Local classes are like local variables, specific to a block of code. Their visibility is only within the block of their declaration. In order for the class to be useful beyond the declaration block, it would need to implement a&lt;br /&gt;more publicly available interface.Because local classes are not members, the modifiers public, protected, private, and static are not usable.&lt;br /&gt;&lt;br /&gt;Anonymous classes - Anonymous inner classes extend local inner classes one level further. As anonymous classes have no name, you cannot provide a constructor.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-3894486001094005377?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/3894486001094005377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/3894486001094005377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/3894486001094005377'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer-2.html' title='InterView Java :: Question vs Answer 2'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8394014211989269225</id><published>2009-07-13T21:50:00.000-07:00</published><updated>2009-07-13T21:52:14.201-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='interview java'/><category scheme='http://www.blogger.com/atom/ns#' term='J2EE'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='keywords'/><category scheme='http://www.blogger.com/atom/ns#' term='job'/><category scheme='http://www.blogger.com/atom/ns#' term='java question'/><title type='text'>InterView Java :: Question vs Answer1</title><content type='html'>Q:     What is the difference between an Interface and an Abstract class?&lt;br /&gt;A:     An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;Q:     What is the purpose of garbage collection in Java, and when is it used?&lt;br /&gt;A:     The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.&lt;br /&gt;&lt;br /&gt;Q:     Describe synchronization in respect to multithreading.&lt;br /&gt;A:     With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.&lt;br /&gt;     &lt;br /&gt;Q:     Explain different way of using thread?&lt;br /&gt;A:     The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.&lt;br /&gt;     &lt;br /&gt;Q:     What are pass by reference and passby value?&lt;br /&gt;A:     Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.&lt;br /&gt;     &lt;br /&gt;Q:     What is HashMap and Map?&lt;br /&gt;A:     Map is Interface and Hashmap is class that implements that.&lt;br /&gt;&lt;br /&gt;Q:     Difference between HashMap and HashTable?&lt;br /&gt;A:     The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.&lt;br /&gt;&lt;br /&gt;Q:     Difference between Vector and ArrayList?&lt;br /&gt;A:     Vector is synchronized whereas arraylist is not.&lt;br /&gt;&lt;br /&gt;Q:     Difference between Swing and Awt?&lt;br /&gt;A:     AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.&lt;br /&gt;&lt;br /&gt;Q:     What is the difference between a constructor and a method?&lt;br /&gt;A:     A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.&lt;br /&gt;A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.&lt;br /&gt;     &lt;br /&gt;Q:     What is an Iterator?&lt;br /&gt;A:     Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.&lt;br /&gt;&lt;br /&gt;Q:     State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.&lt;br /&gt;A:     public : Public class is visible in other packages, field is visible everywhere (class must be public too)&lt;br /&gt;private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.&lt;br /&gt;protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.&lt;br /&gt;default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package.&lt;br /&gt;&lt;br /&gt;Q:     What is an abstract class?&lt;br /&gt;A:     Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.&lt;br /&gt;A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.&lt;br /&gt;     &lt;br /&gt;Q:     What is static in java?&lt;br /&gt;A:     Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.&lt;br /&gt;&lt;br /&gt;Q:     What is final?&lt;br /&gt;A:     A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).&lt;br /&gt;&lt;br /&gt;Q:      What if the main method is declared as private?&lt;br /&gt;A:     The program compiles properly but at runtime it will give "Main method not public." message.&lt;br /&gt;&lt;br /&gt;Q:     What if the static modifier is removed from the signature of the main method?&lt;br /&gt;A:     Program compiles. But at runtime throws an error "NoSuchMethodError".&lt;br /&gt;     &lt;br /&gt;Q:     What if I write static public void instead of public static void?&lt;br /&gt;A:     Program compiles and runs properly.&lt;br /&gt;&lt;br /&gt;Q:     What if I do not provide the String array as the argument to the method?&lt;br /&gt;A:     Program compiles but throws a runtime error "NoSuchMethodError".&lt;br /&gt;     &lt;br /&gt;Q:     What is the first argument of the String array in main method?&lt;br /&gt;A:     The String array is empty. It does not have any element. This is unlike C/C++ where the first element by default is the program name.&lt;br /&gt;&lt;br /&gt;Q:     If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?&lt;br /&gt;A:     It is empty. But not null.&lt;br /&gt;     &lt;br /&gt;Q:     How can one prove that the array is not null but empty using one line of code?&lt;br /&gt;A:     Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown a NullPointerException on attempting to print args.length.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8394014211989269225?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8394014211989269225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8394014211989269225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8394014211989269225'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/interview-java-question-vs-answer1.html' title='InterView Java :: Question vs Answer1'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-1454210263845353239</id><published>2009-07-10T08:13:00.000-07:00</published><updated>2009-07-11T22:58:39.962-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='สอนจาวา'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='static'/><category scheme='http://www.blogger.com/atom/ns#' term='เรียนจาวา'/><category scheme='http://www.blogger.com/atom/ns#' term='จาวา'/><category scheme='http://www.blogger.com/atom/ns#' term='study java'/><title type='text'>Easy way to study JAVA :: Static</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;TH&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:applybreakingrules/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face  {font-family:"Cordia New";  panose-1:2 11 3 4 2 2 2 2 2 4;  mso-font-charset:0;  mso-generic-font-family:swiss;  mso-font-pitch:variable;  mso-font-signature:-2130706429 0 0 0 65537 0;} @font-face  {font-family:"Cambria Math";  panose-1:2 4 5 3 5 4 6 3 2 4;  mso-font-charset:0;  mso-generic-font-family:roman;  mso-font-pitch:variable;  mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face  {font-family:Calibri;  panose-1:2 15 5 2 2 2 4 3 2 4;  mso-font-charset:0;  mso-generic-font-family:swiss;  mso-font-pitch:variable;  mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face  {font-family:Tahoma;  panose-1:2 11 6 4 3 5 4 4 2 4;  mso-font-charset:0;  mso-generic-font-family:swiss;  mso-font-pitch:variable;  mso-font-signature:-520082689 -1073717157 41 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal  {mso-style-unhide:no;  mso-style-qformat:yes;  mso-style-parent:"";  margin-top:0cm;  margin-right:0cm;  margin-bottom:10.0pt;  margin-left:0cm;  line-height:115%;  mso-pagination:widow-orphan;  font-size:11.0pt;  mso-bidi-font-size:14.0pt;  font-family:"Calibri","sans-serif";  mso-ascii-font-family:Calibri;  mso-ascii-theme-font:minor-latin;  mso-fareast-font-family:Calibri;  mso-fareast-theme-font:minor-latin;  mso-hansi-font-family:Calibri;  mso-hansi-theme-font:minor-latin;  mso-bidi-font-family:"Cordia New";  mso-bidi-theme-font:minor-bidi;} p  {mso-style-noshow:yes;  mso-style-priority:99;  mso-margin-top-alt:auto;  margin-right:0cm;  mso-margin-bottom-alt:auto;  margin-left:0cm;  mso-pagination:widow-orphan;  font-size:12.0pt;  font-family:"Tahoma","sans-serif";  mso-fareast-font-family:"Times New Roman";} .MsoChpDefault  {mso-style-type:export-only;  mso-default-props:yes;  mso-ascii-font-family:Calibri;  mso-ascii-theme-font:minor-latin;  mso-fareast-font-family:Calibri;  mso-fareast-theme-font:minor-latin;  mso-hansi-font-family:Calibri;  mso-hansi-theme-font:minor-latin;  mso-bidi-font-family:"Cordia New";  mso-bidi-theme-font:minor-bidi;} .MsoPapDefault  {mso-style-type:export-only;  margin-bottom:10.0pt;  line-height:115%;} @page Section1  {size:612.0pt 792.0pt;  margin:72.0pt 72.0pt 72.0pt 72.0pt;  mso-header-margin:36.0pt;  mso-footer-margin:36.0pt;  mso-paper-source:0;} div.Section1  {page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable  {mso-style-name:"Table Normal";  mso-tstyle-rowband-size:0;  mso-tstyle-colband-size:0;  mso-style-noshow:yes;  mso-style-priority:99;  mso-style-qformat:yes;  mso-style-parent:"";  mso-padding-alt:0cm 5.4pt 0cm 5.4pt;  mso-para-margin-top:0cm;  mso-para-margin-right:0cm;  mso-para-margin-bottom:10.0pt;  mso-para-margin-left:0cm;  line-height:115%;  mso-pagination:widow-orphan;  font-size:11.0pt;  mso-bidi-font-size:14.0pt;  font-family:"Calibri","sans-serif";  mso-ascii-font-family:Calibri;  mso-ascii-theme-font:minor-latin;  mso-fareast-font-family:"Times New Roman";  mso-fareast-theme-font:minor-fareast;  mso-hansi-font-family:Calibri;  mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;-Static variable &lt;/span&gt;&lt;span style="font-size:100%;"&gt;:: can be access without creating any object. There is only one copy of static variable in the class and every object of that class access this Static variable&lt;/span&gt;&lt;/p&gt;    &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;-Static method&lt;/span&gt;&lt;span style="font-size:100%;"&gt;  :: is a method which accepts arguments instead of using instance variables.The opposite of a static method is an instance method.The default for a method is to be an instance method. Methods must be explicitly defined as static methods.A static method is also refer&lt;/span&gt;&lt;nobr&gt;&lt;/nobr&gt;&lt;span style="font-size:100%;"&gt; to as a  class method.&lt;/span&gt;&lt;/p&gt;        &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;Example1 ::&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;Class Demo {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;              &lt;/span&gt;&lt;span style="font-size:100%;"&gt;int i=10 //instant variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;              &lt;/span&gt;&lt;span style="font-size:100%;"&gt;static int a=50;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;              &lt;/span&gt;&lt;span style="font-size:100%;"&gt;public &lt;u&gt;static&lt;/u&gt; void display(){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;                             &lt;/span&gt;&lt;span style="font-size:100%;"&gt;System.out.println(“display method”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;              &lt;/span&gt;&lt;span style="font-size:100%;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;              &lt;/span&gt;&lt;span style="font-size:100%;"&gt;public static void main(String arg[]){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;                             &lt;/span&gt;&lt;span style="font-size:100%;"&gt;System.out.println(a); //directly call the variable&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;                             &lt;/span&gt;&lt;span style="font-size:100%;"&gt;display();&lt;/span&gt;&lt;span style="font-size:100%;"&gt;  &lt;/span&gt;&lt;span style="font-size:100%;"&gt;//directly calles function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;                             &lt;/span&gt;&lt;span style="font-size:100%;"&gt;Demo d = new Demo();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;                             &lt;/span&gt;&lt;span style="font-size:100%;"&gt;System.out.println(d.a); //called by object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;                             &lt;/span&gt;&lt;span style="font-size:100%;"&gt;System.out.println(d.display()); //calles by object.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;              &lt;/span&gt;&lt;span style="font-size:100%;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;Example2 ::&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;class Ax {&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;    int a;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;    Static int s;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;    public static void main(String arg[]) {&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          Ax a1 = new Ax();&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          a1.a++;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          a1.s++;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          System.out.println(a1.a);&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          Ax a2 = new Ax(); &lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          System.out.println(a2.a);&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;          System.out.println(a2.s);&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;    }&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;output&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;1&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;1&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;0&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;1&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 255, 255);"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;o:p&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/3076994668108386717-1454210263845353239?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/1454210263845353239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-way-to-study-java-static.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/1454210263845353239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/1454210263845353239'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-way-to-study-java-static.html' title='Easy way to study JAVA :: Static'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-7143640672189646771</id><published>2009-07-10T08:12:00.001-07:00</published><updated>2009-07-10T08:12:58.610-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Separators'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Easy step to study JAVA :: Separators</title><content type='html'>&lt;p&gt; Separators help define the structure of a program. The separators used in HelloWorld are parentheses, &lt;code&gt;( )&lt;/code&gt;, braces, &lt;code&gt;{ }&lt;/code&gt;, the period, &lt;code&gt;.&lt;/code&gt;, and the semicolon, &lt;code&gt;;&lt;/code&gt;. The table lists the six Java separators (nine if you count opening and closing separators as two). &lt;/p&gt;     &lt;table&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th rowspan="1" colspan="1"&gt;Separator Purpose&lt;/th&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;( )&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;Encloses arguments in method definitions and calling; adjusts precedence in arithmetic expressions; surrounds cast types and delimits test expressions in flow control statements&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;{ }&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;defines blocks of code and automatically initializes arrays&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;[ ]&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares array types and dereferences array values&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;terminates statements&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;,&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;separates successive identifiers in variable declarations; chains statements in the test, expression of a for loop&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;.&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;Selects a field or method from an object; separates package names from sub-package and class names&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;:&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;Used after loop labels&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-7143640672189646771?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/7143640672189646771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-separators.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/7143640672189646771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/7143640672189646771'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-separators.html' title='Easy step to study JAVA :: Separators'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-5732896696160134210</id><published>2009-07-10T08:10:00.000-07:00</published><updated>2009-07-10T08:12:06.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='implenents'/><category scheme='http://www.blogger.com/atom/ns#' term='public'/><category scheme='http://www.blogger.com/atom/ns#' term='extends'/><title type='text'>Easy step to study JAVA :: Keyword</title><content type='html'>&lt;p&gt; Keywords are identifiers like &lt;code&gt;public&lt;/code&gt;,  &lt;code&gt;static&lt;/code&gt; and &lt;code&gt;class&lt;/code&gt; that have a special meaning inside Java source code and outside of comments and Strings. Four keywords are used in Hello World, &lt;code&gt;public&lt;/code&gt;,  &lt;code&gt;static&lt;/code&gt;, &lt;code&gt;void&lt;/code&gt; and &lt;code&gt;class&lt;/code&gt;. &lt;/p&gt;  &lt;p&gt;Keywords are reserved for their intended use and cannot be used by the programmer for variable or method names.&lt;/p&gt;  &lt;p&gt;There are fifty reserved keywords in Java 1.1, 51 in Java 1.2, 52 in Java 1.4, and 54 in Java 5. The forty-eight that are actually used in are listed below. Don't worry if the purposes of the keywords seem a little opaque at this point. They will all be explained in much greater detail later.&lt;/p&gt;  &lt;h2&gt;Keywords Used in Java 1.1&lt;/h2&gt;  &lt;table&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th rowspan="1" colspan="1"&gt;Keyword&lt;/th&gt; &lt;th rowspan="1" colspan="1"&gt;Purpose&lt;/th&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;boolean&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a boolean variable or return type&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;byte&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a byte variable or return type&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;char&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a character variable or return type&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;double&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a double variable or return type&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;float&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a floating point variable or return type&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;short&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a short integer variable or return type&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;void&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declare that a method does not return a value&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;int&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares an integer variable or return type&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;long&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a long integer variable or return type&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;while&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;begins a while loop&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;for&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;begins a for loop&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;do&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;begins a do while loop&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;switch&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;tests for the truth of various possible cases&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;break&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;prematurely exits a loop&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;continue&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;prematurely return to the beginning of a loop&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;case&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;one case in a switch statement&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;default&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;default action for a switch statement&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;if&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;execute statements if the condition is true&lt;/td&gt; &lt;/tr&gt;    &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;else&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;signals the code to be executed if an if statement is not true&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;try&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;attempt an operation that may throw an exception&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;catch&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;handle an exception&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;finally&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a block of code guaranteed to be executed&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;class&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;signals the beginning of a class definition&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;abstract&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares that a class or method is abstract&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;extends&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;specifies the class which this class is a subclass of&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;final&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares that a class may not be subclassed or that a field or method may not be overridden&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;implements&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares that this class implements the given interface&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;import&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;permit access to a class or group of classes in a package&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;instanceof&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;tests whether an object is an instanceof a class&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;interface&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;signals the beginning of an interface definition&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;native&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares that a method is implemented in native code&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;new&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;allocates a new object&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;package&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;defines the package in which this source code file belongs&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;private&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a method or member variable to be private&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;protected&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a class, method or member variable to be protected&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;public&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares a class, method or member variable to be public&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;return&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;returns a value from a method&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;static&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares that a field or a method belongs to a class rather than an object&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;super&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;a reference to the parent of the current object&lt;/td&gt; &lt;/tr&gt;    &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;synchronized&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;Indicates that a section of code is not thread-safe&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;this&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;a reference to the current object&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;throw&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;throw an exception&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;throws&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;declares the exceptions thrown by a method&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;transient&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;This field should not be serialized&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;volatile&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;Warns the compiler that a variable changes asynchronously&lt;/td&gt; &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;Two other keywords, &lt;code&gt;const&lt;/code&gt; and &lt;code&gt;goto&lt;/code&gt;, are reserved by Java but are not actually implemented. This allows compilers to produce better error messages if these common C++ keywords are improperly used in a Java program.&lt;/p&gt;  &lt;p&gt;Java 1.2 adds the &lt;code&gt;strictfp&lt;/code&gt; keyword to declare that a method or class must be run with exact IEEE 754 semantics.&lt;/p&gt;  &lt;p&gt;Java 1.4 adds the &lt;code&gt;assert&lt;/code&gt; keyword to specify assertions.&lt;/p&gt;  &lt;p&gt;Java 5 adds &lt;code&gt;assert&lt;/code&gt; and &lt;code&gt;enum&lt;/code&gt;.&lt;/p&gt;  &lt;p&gt;&lt;code&gt;true&lt;/code&gt; and &lt;code&gt;false&lt;/code&gt; appear to be missing from this list. In fact, they are not keywords but rather boolean literals. You still can't use them as a variable name though.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-5732896696160134210?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/5732896696160134210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-keyword.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/5732896696160134210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/5732896696160134210'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-keyword.html' title='Easy step to study JAVA :: Keyword'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8811970079903416558</id><published>2009-07-10T08:09:00.001-07:00</published><updated>2009-07-10T08:09:48.437-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='operator'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Easy step to study JAVA :: Operator</title><content type='html'>&lt;p&gt; An operator is a symbol that operates on one or more arguments to produce a result. The Hello World program is so simple it doesn't use any operators, but almost all other programs you write will. &lt;/p&gt;   &lt;table&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th rowspan="1" colspan="1"&gt;Operator&lt;/th&gt; &lt;th rowspan="1" colspan="1"&gt;Purpose&lt;/th&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;+&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;addition of numbers, concatenation of Strings&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;+=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;add and assign numbers, concatenate and assign Strings&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;-&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;subtraction&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;-=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;subtract and assign&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;*&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;multiplication&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;*=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;multiply and assign&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;/&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;division&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;/=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;divide and assign&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;%&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;take remainder&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;%=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;take remainder and assign&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;++&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;increment by one&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;--&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;decrement by one&lt;/td&gt; &lt;/tr&gt;    &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&gt;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;greater than&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&gt;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;greater than or equal to&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&lt;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;less than&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&lt;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;less than or equal to&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;!&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;boolean NOT&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;!=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;not equal to&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;boolean AND&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;||&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;boolean OR&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;==&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;boolean equals&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;assignment&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;~&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise NOT&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;?:&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;conditional&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;instanceof&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;type checking&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;|&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise OR&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;|=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise OR and assign&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;^&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise XOR&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;^=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise XOR and assign&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&amp;amp;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise AND&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&amp;amp;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;bitwise AND and assign&lt;/td&gt; &lt;/tr&gt;   &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&gt;&gt;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;shift bits right with sign extension&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&gt;&gt;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;shift bits right with sign extension and assign&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&lt;&lt;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;shift bits left&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&lt;&lt;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;shift bits left and assign&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&gt;&gt;&gt;&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;unsigned bit shift right&lt;/td&gt; &lt;/tr&gt;  &lt;tr&gt; &lt;td rowspan="1" colspan="1"&gt;&lt;code&gt;&gt;&gt;&gt;=&lt;/code&gt;&lt;/td&gt; &lt;td rowspan="1" colspan="1"&gt;unsigned bit shift right and assign&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8811970079903416558?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8811970079903416558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8811970079903416558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8811970079903416558'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-operator.html' title='Easy step to study JAVA :: Operator'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-6667274560314894762</id><published>2009-07-10T08:07:00.000-07:00</published><updated>2009-07-10T08:08:44.288-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Easy step to study JAVA :: Primitive Data Type</title><content type='html'>&lt;p&gt;Java's primitive data types are very similar to those of C. They include boolean, byte, short, int, long, float, double, and char. The boolean type has been added. However the implementation of the data types has been substantially cleaned up in several ways.&lt;/p&gt;  &lt;ol&gt;&lt;li&gt;Where C and C++ leave a number of issues to be machine and compiler dependent (for instance the size of an &lt;code&gt;int&lt;/code&gt;) Java specifies everything.&lt;/li&gt;&lt;li&gt;Java prevents casting between arbitrary variables. Only casts between numeric variables and between sub and superclasses of the same object are allowed.&lt;/li&gt;&lt;li&gt;All numeric variables in Java are signed.&lt;/li&gt;&lt;/ol&gt;  &lt;p&gt;&lt;code&gt;sizeof&lt;/code&gt; isn't necessary in Java because all sizes are precisely defined. For instance, an &lt;code&gt;int&lt;/code&gt; is always 4 bytes. This may not seem to be adequate when dealing with objects that aren't base data types. However even if you did know the size of a particular object, you couldn't do anything with it anyway. You cannot convert an arbitrary object into bytes and back again.&lt;/p&gt;&lt;dl&gt;&lt;dt&gt;&lt;code&gt;boolean&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 1-bit. May take on the values &lt;code&gt;true&lt;/code&gt; and  &lt;code&gt;false&lt;/code&gt; only. &lt;/p&gt;  &lt;p&gt;&lt;code&gt;true&lt;/code&gt; and &lt;code&gt;false&lt;/code&gt; are defined constants of the language and are not the same as &lt;code&gt;True&lt;/code&gt; and &lt;code&gt;False&lt;/code&gt;, &lt;code&gt;TRUE&lt;/code&gt; and &lt;code&gt;FALSE&lt;/code&gt;, zero and nonzero, 1 and 0 or any other numeric value. Booleans may not be cast into any other type of variable nor may any other variable be cast into a boolean.&lt;/p&gt;   &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;byte&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 1 signed byte (two's complement). Covers values from -128 to 127. &lt;/p&gt;    &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;short&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 2 bytes, signed (two's complement), -32,768 to 32,767 &lt;/p&gt;   &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;int&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 4 bytes, signed (two's complement). -2,147,483,648 to 2,147,483,647. Like all numeric types ints may be cast into other numeric types (byte, short, long, float, double). When &lt;em&gt;lossy&lt;/em&gt; casts are done (e.g. int to byte) the conversion is done modulo the length of the smaller type. &lt;/p&gt;    &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;long&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 8 bytes signed (two's complement). Ranges from -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807. &lt;/p&gt;   &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;float&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 4 bytes, IEEE 754. Covers a range from 1.40129846432481707e-45 to 3.40282346638528860e+38 (positive or negative).  &lt;/p&gt;  &lt;p&gt;Like all numeric types floats may be cast into other numeric types (&lt;code&gt;byte&lt;/code&gt;, &lt;code&gt;short&lt;/code&gt;, &lt;code&gt;long&lt;/code&gt;, &lt;code&gt;int&lt;/code&gt;, &lt;code&gt;double&lt;/code&gt;). When &lt;i&gt;lossy&lt;/i&gt; casts to integer types are done (e.g. &lt;code&gt;float&lt;/code&gt; to  &lt;code&gt;short&lt;/code&gt;) the fractional part is truncated and the conversion is done modulo the length of the smaller type.&lt;/p&gt;   &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;double&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;8 bytes IEEE 754. Covers a range from 4.94065645841246544e-324d to 1.79769313486231570e+308d (positive or negative).   &lt;/dd&gt;&lt;dt&gt;&lt;code&gt;char&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;&lt;p&gt; 2 bytes, unsigned, Unicode, 0 to 65,535  &lt;/p&gt;   &lt;p&gt;Chars are not the same as bytes, ints, shorts or Strings.&lt;/p&gt;   &lt;/dd&gt;&lt;/dl&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-6667274560314894762?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/6667274560314894762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-primitive-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/6667274560314894762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/6667274560314894762'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-primitive-data.html' title='Easy step to study JAVA :: Primitive Data Type'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-2587267450359288982</id><published>2009-07-10T08:03:00.000-07:00</published><updated>2009-07-10T08:05:08.436-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='JVM'/><title type='text'>Easy step to study JAVA :: What's Java</title><content type='html'>&lt;p&gt;The term &lt;i&gt;Java&lt;/i&gt; actual refers to more than just a particular                language like C or Pascal. Java encompasses several parts, including                : &lt;/p&gt;             &lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style="color: rgb(0, 102, 102);"&gt;A high level language&lt;/span&gt;&lt;/b&gt; �                  the Java language is a high level one that at a glance looks very                  similar to C and C++ but offers many unique features of its own.                &lt;br /&gt;             &lt;br /&gt;             &lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style="color: rgb(0, 102, 102);"&gt;Java bytecode&lt;/span&gt;&lt;/b&gt; - a compiler,                  such as Sun's &lt;span style=";font-family:Courier New,Courier,mono;font-size:85%;"  &gt;javac&lt;/span&gt;,                  transforms the Java language source code to bytecode that runs                  in the JVM.&lt;br /&gt;             &lt;br /&gt;             &lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;span style="color: rgb(0, 102, 102);"&gt;Java Virtual Machine (JVM)&lt;/span&gt;&lt;/b&gt;                  � a program, such as Sun's &lt;span style=";font-family:Courier New,Courier,mono;font-size:85%;"  &gt;java&lt;/span&gt;,                  that runs on a given platform and takes the bytecode programs                  as input and interprets them just as if it were a physical processor                  executing machine code.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;             &lt;p&gt;Sun provides a set of programming tools such as &lt;span style=";font-family:Courier New,Courier,mono;font-size:85%;"  &gt;javac&lt;/span&gt;,                &lt;span style="font-family:Courier New,Courier,mono;"&gt; &lt;span style="font-size:85%;"&gt;java&lt;/span&gt;&lt;/span&gt;                and others in a bundle that it calls a Java&lt;i&gt; Software Development                Kit&lt;/i&gt; for each version of the language and for different platforms                such as Windows, Linux, etc.. Sun also provides a runtime bundle                with just the JVM when the programming tools are not needed. &lt;/p&gt;             &lt;p&gt;Note that because of the open nature of Java (see below), any or                all of these parts can be replaced by non-Sun components. For example,                just as many different languages can create machine code for a given                processor, compilers of other languages have been created that output                bytecode to run in the JVM. Similarly, many JVMs have been written                by groups outside of Sun. &lt;/p&gt;             &lt;p&gt;In this book and web course, when we use the term Java we are referring                to the the high level language unless noted otherwise. Also, those                packages that come with the SDK for a given version will be referred                to as comprising the core language for that version, as distinguished                from optional or third party packages. &lt;/p&gt;             &lt;p align="center"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;b&gt;&lt;span style="color: rgb(102, 0, 102);"&gt;Java,                Open or Closed?&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;             &lt;p&gt;Java is not quite an &lt;i&gt;open&lt;/i&gt; language but not quite a proprietary                one either. All the core language products - compiler, virtual machines                (VM), class packages, and other components - are free. Detailed                specifications and source code are made openly available. &lt;/p&gt;             &lt;p&gt;The Java Community Process                (JCP) leads the development of new standards for the language.&lt;br /&gt;             Other companies and organizations can legally create a &lt;i&gt;clean                sheet&lt;/i&gt; compiler and/or a Virtual Machine as long as it follows                the publicly available specifications. Microsoft did this with the                Version 1.1 JVM that it used in its Internet Explorer browser.&lt;br /&gt;           &lt;br /&gt;             Sun, however, does still assert final say on the specifications                and controls the copyrights to logos, and trademarks.&lt;br /&gt;           &lt;br /&gt;             For example, Microsoft's VM differed in a some significant details                from the specifications and Sun accused Microsoft of attempting                to weaken Java's "&lt;i&gt;write once, run anywhere&lt;/i&gt;" capabilities.                Sun sued Microsoft and the dispute was later settled out of court.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-2587267450359288982?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/2587267450359288982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-whats-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/2587267450359288982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/2587267450359288982'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-whats-java.html' title='Easy step to study JAVA :: What&apos;s Java'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-8037943774101125568</id><published>2009-07-10T07:57:00.000-07:00</published><updated>2009-07-10T08:02:39.902-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Easy step to study JAVA 1:: History</title><content type='html'>&lt;p&gt;Around 1990 James Gosling , Bill Joy and others at Sun Microsystems                began developing a language called &lt;i&gt;Oak&lt;/i&gt;. The wanted it primarily                to control microprocessors embedded in consumer items such as cable                set-top boxes,VCR's, toasters, and also for personal data assistants                (PDA).&lt;/p&gt;             &lt;p&gt;To serve these goals, Oak needed to be:&lt;br /&gt;            &lt;/p&gt;             &lt;ul&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;span style="color:#006666;"&gt;Platform independent (since multiple                    manufacturers involved)&lt;br /&gt;                  &lt;/span&gt; &lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#006666;"&gt;&lt;b&gt;Extremely reliable &lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#006666;"&gt;&lt;b&gt;Compact. &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;                &lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;             &lt;p&gt;However, as of 1993, interactive TV and PDA markets had failed                to take off. Then the Internet and Web explosion began, so Sun shifted                the target market to Internet applications and changed the name                of the project to Java.&lt;span style="color:#008000;"&gt;&lt;br /&gt;              &lt;/span&gt; &lt;/p&gt;             &lt;p&gt;By 1994 Sun's &lt;i&gt;HotJava&lt;/i&gt; browser appeared. Written in Java                in only a few months, it illustrated the power of &lt;i&gt;applets&lt;/i&gt;,                programs that run within a browser, and also the capabilities of                Java for speeding program development. &lt;/p&gt;             &lt;p&gt;Riding along with the explosion of interest and publicity in the                Internet, Java quickly received widespread recognition and expectations                grew for it to become the dominant software for browser and consumer                applications.&lt;span style="color:#993300;"&gt;&lt;span style="color:#000099;"&gt;&lt;br /&gt;              &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;             &lt;p&gt;However, the early versions of Java did not possess the breadth                and depth of capabilities needed for client (i.e. consumer) applications.                For example, the graphics in Java 1.0 seemed crude and clumsy compared                to mature software developed with C and other languages.&lt;/p&gt;             &lt;p&gt;Applets became popular and remain common but don't dominate interactive                or multimedia displays on web pages. Many other "plug-in"                types of programs also run within the browser environment.&lt;/p&gt;             &lt;p&gt;So Java has not succeeded at development of consumer applications.                However, Java's capabilities grew with the release of new and expanded                versions (see below) and it became a very popular language for development                of &lt;i&gt;enterprise&lt;/i&gt;, or &lt;i&gt;middleware&lt;/i&gt;, applications such as                on line web stores, transactions processing, database interfaces,                and so forth. &lt;/p&gt;             &lt;p&gt;Java has also become quite common on small platforms such as cell                phones and PDAs. Java is now used in several hundred cell phone                models. Over 600 million JavaCards, smart cards with additional                features provided by Java, have been sold as of the summer of 2004.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-8037943774101125568?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/8037943774101125568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-1-history.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8037943774101125568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/8037943774101125568'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-step-to-study-java-1-history.html' title='Easy step to study JAVA 1:: History'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-7434264103611823165</id><published>2009-07-10T07:55:00.000-07:00</published><updated>2009-07-10T07:56:51.897-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Easy step to study JAVA :: Java Software</title><content type='html'>&lt;p&gt; Before we start.  &lt;/p&gt; &lt;ol&gt;&lt;li&gt;You should have the software in your system.... if you don't have please download in Sun website&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;                                                                       &lt;a href="http://www.java.com/en/download/manual.jsp"&gt;Download&lt;/a&gt;  &lt;/p&gt;  &lt;p&gt;      2.  For Beginner you should spend 1/2 hrs every day for study both of theory and program.... &lt;/p&gt; &lt;p&gt;      3. Try to executed all the program in my blog...  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-7434264103611823165?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/7434264103611823165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-way-to-study-java-java-software.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/7434264103611823165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/7434264103611823165'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/easy-way-to-study-java-java-software.html' title='Easy step to study JAVA :: Java Software'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-762354627506609829</id><published>2009-07-08T18:55:00.000-07:00</published><updated>2009-07-08T19:14:09.414-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='va-rita'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><category scheme='http://www.blogger.com/atom/ns#' term='EJB'/><category scheme='http://www.blogger.com/atom/ns#' term='api'/><category scheme='http://www.blogger.com/atom/ns#' term='adsense'/><category scheme='http://www.blogger.com/atom/ns#' term='e-book'/><category scheme='http://www.blogger.com/atom/ns#' term='cookbook'/><title type='text'>EJB book is avaliable right now!!!</title><content type='html'>&lt;span style="font-weight: bold;"&gt;EJB&lt;/span&gt; ::Enterprise JavaBeans (EJB) technology is the server-side component architecture for Java Platform, Enterprise Edition (Java EE). EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology.&lt;div class="padbottom10"&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://java.sun.com/products/ejb/docs.html"&gt;EJB 3.0 Specification Final Release&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;This specification defines the new simplified EJB API targeted at ease of development. It also includes the new Java Persistence API for the management of persistence and object/relational mapping with Java EE and Java SE.&lt;/p&gt; &lt;p&gt;&lt;b&gt;&lt;a href="http://java.sun.com/javaee/technologies/persistence.jsp"&gt;Java Persistence API&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;The Java Persistence API is the standard API for the management of persistence and object/relational mapping. It provides an object/relational mapping facility for application developers using a Java domain model to manage a relational database.  The Java Persistence API is part of the Java EE platform.  It can also be used in Java SE environments.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;a href="http://java.sun.com/products/ejb/docs.html"&gt;EJB 2.1 specification&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;This spec, created under the &lt;a href="http://jcp.org/" target="_blank"&gt;Java Community Process (JCP)&lt;/a&gt;, enhances EJB architecture with support for Web services, making it easier to implement and deploy Web services applications based on Java technology.&lt;/p&gt; &lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9337PT7W1TY/SlVQ3TcgXqI/AAAAAAAAABc/r0_o8-2FM1E/s1600-h/1930110944.01.LZZZZZZZ.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 254px; height: 320px;" src="http://1.bp.blogspot.com/_9337PT7W1TY/SlVQ3TcgXqI/AAAAAAAAABc/r0_o8-2FM1E/s320/1930110944.01.LZZZZZZZ.jpg" alt="" id="BLOGGER_PHOTO_ID_5356276242869935778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.4shared.com/file/115273228/8f387741/1930110944.html"&gt;--&gt;Download&lt;--&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9337PT7W1TY/SlVP_um_iOI/AAAAAAAAABU/-b9RqScCSM8/s1600-h/EJB+%26+JSP+Java+on+the+Edge.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 255px; height: 320px;" src="http://1.bp.blogspot.com/_9337PT7W1TY/SlVP_um_iOI/AAAAAAAAABU/-b9RqScCSM8/s320/EJB+%26+JSP+Java+on+the+Edge.jpg" alt="" id="BLOGGER_PHOTO_ID_5356275288089004258" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.4shared.com/file/115260167/567897d3/Wiley-EJBandJSPJavaontheEdge.html"&gt;--&gt;Download&lt;--&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9337PT7W1TY/SlVPykwn4GI/AAAAAAAAABM/HuHSjDZhYa8/s1600-h/EJB.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 230px; height: 320px;" src="http://1.bp.blogspot.com/_9337PT7W1TY/SlVPykwn4GI/AAAAAAAAABM/HuHSjDZhYa8/s320/EJB.JPG" alt="" id="BLOGGER_PHOTO_ID_5356275062106742882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.4shared.com/file/115273227/1f876ad0/0471208310.html"&gt;--&gt;Download&lt;--&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9337PT7W1TY/SlVPnNiZ9SI/AAAAAAAAABE/Zzg8dP81MTM/s1600-h/1933988347.01._SCLZZZZZZZ_V44632449_.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 255px; height: 320px;" src="http://1.bp.blogspot.com/_9337PT7W1TY/SlVPnNiZ9SI/AAAAAAAAABE/Zzg8dP81MTM/s320/1933988347.01._SCLZZZZZZZ_V44632449_.jpg" alt="" id="BLOGGER_PHOTO_ID_5356274866894533922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.4shared.com/file/115260170/d1073331/ManningEJB3inActionApr2007.html"&gt;--&gt;Download&lt;--&lt;/a&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/3076994668108386717-762354627506609829?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/762354627506609829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/ejb-book-is-avaliable-right-now.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/762354627506609829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/762354627506609829'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/ejb-book-is-avaliable-right-now.html' title='EJB book is avaliable right now!!!'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_9337PT7W1TY/SlVQ3TcgXqI/AAAAAAAAABc/r0_o8-2FM1E/s72-c/1930110944.01.LZZZZZZZ.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-285688649193535604</id><published>2009-07-05T07:57:00.000-07:00</published><updated>2009-09-20T04:00:27.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='O&apos;Reilly'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><category scheme='http://www.blogger.com/atom/ns#' term='EJB'/><category scheme='http://www.blogger.com/atom/ns#' term='e-book'/><category scheme='http://www.blogger.com/atom/ns#' term='java script'/><category scheme='http://www.blogger.com/atom/ns#' term='head first'/><category scheme='http://www.blogger.com/atom/ns#' term='servlet'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>ประเดิม blog ด้วย ตระกูล HEAD FIRST ::]</title><content type='html'>&lt;div style="text-align: center;"&gt;หนังสือตระกูล Head first ของ O'Reilly คงเป็นสำหนังพิมพ์ที่หลายๆ คนชอบอ่าน&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;เรามารู้จักหนังสือตระกูล Head first กันเลยดีกว่า!!!&lt;br /&gt;&lt;br /&gt;=======================================================&lt;br /&gt;&lt;br /&gt;เล่มแรก&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://rcm.amazon.com/e/cm?t=dekrian-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=0596009208&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 277px; height: 320px;" src="http://3.bp.blogspot.com/_9337PT7W1TY/SlDBokgK5ZI/AAAAAAAAAAc/cd6FrlB2Uxs/s320/hf-java.jpg" alt="" id="BLOGGER_PHOTO_ID_5354992859681056146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2d370b4f.linkbucks.com"&gt;---&gt;Download&lt;---&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_9337PT7W1TY/SlDBwuczkXI/AAAAAAAAAAk/REWWclICh8Q/s1600-h/hf-ejb.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 277px; height: 320px;" src="http://4.bp.blogspot.com/_9337PT7W1TY/SlDBwuczkXI/AAAAAAAAAAk/REWWclICh8Q/s320/hf-ejb.jpg" alt="" id="BLOGGER_PHOTO_ID_5354992999790252402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://bccb95c2.linkbucks.com"&gt;---&gt;Download&lt;---&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://rcm.amazon.com/e/cm?t=dekrian-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=059610197X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 278px; height: 320px;" src="http://3.bp.blogspot.com/_9337PT7W1TY/SlDCUSnrjTI/AAAAAAAAAAs/zZZWw5QCIPE/s320/hf-html-css.jpg" alt="" id="BLOGGER_PHOTO_ID_5354993610794962226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://fe8cf558.linkbucks.com"&gt;---&gt;Download&lt;---&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_9337PT7W1TY/SlDCdoVgvbI/AAAAAAAAAA0/GYZEq0iDiWo/s1600-h/hf-js.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 277px; height: 320px;" src="http://1.bp.blogspot.com/_9337PT7W1TY/SlDCdoVgvbI/AAAAAAAAAA0/GYZEq0iDiWo/s320/hf-js.jpg" alt="" id="BLOGGER_PHOTO_ID_5354993771243158962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://e25fb75f.linkbucks.com"&gt;---&gt;Download&lt;---&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_9337PT7W1TY/SlDCn97NyEI/AAAAAAAAAA8/nnWvvh2FJHg/s1600-h/hf-srv-jsp.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 277px; height: 320px;" src="http://3.bp.blogspot.com/_9337PT7W1TY/SlDCn97NyEI/AAAAAAAAAA8/nnWvvh2FJHg/s320/hf-srv-jsp.jpg" alt="" id="BLOGGER_PHOTO_ID_5354993948837136450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://5f72fa80.linkbucks.com"&gt;---&gt;Download&lt;---&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3076994668108386717-285688649193535604?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/285688649193535604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/blog-head-first.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/285688649193535604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/285688649193535604'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/blog-head-first.html' title='ประเดิม blog ด้วย ตระกูล HEAD FIRST ::]'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_9337PT7W1TY/SlDBokgK5ZI/AAAAAAAAAAc/cd6FrlB2Uxs/s72-c/hf-java.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3076994668108386717.post-3500784154170832005</id><published>2009-07-04T19:35:00.000-07:00</published><updated>2009-07-05T22:05:50.393-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><category scheme='http://www.blogger.com/atom/ns#' term='EJB'/><category scheme='http://www.blogger.com/atom/ns#' term='javaBean'/><category scheme='http://www.blogger.com/atom/ns#' term='free'/><category scheme='http://www.blogger.com/atom/ns#' term='J2EE'/><category scheme='http://www.blogger.com/atom/ns#' term='e-book'/><category scheme='http://www.blogger.com/atom/ns#' term='head first'/><category scheme='http://www.blogger.com/atom/ns#' term='program'/><category scheme='http://www.blogger.com/atom/ns#' term='O&apos;Reilly'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp5'/><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='adsense'/><category scheme='http://www.blogger.com/atom/ns#' term='JSF'/><category scheme='http://www.blogger.com/atom/ns#' term='java script'/><category scheme='http://www.blogger.com/atom/ns#' term='scjp'/><category scheme='http://www.blogger.com/atom/ns#' term='PTP'/><category scheme='http://www.blogger.com/atom/ns#' term='PTC'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>เปิดตัว Va-Rita แล้วววว</title><content type='html'>&lt;div style="text-align: center;"&gt;จนแล้วจนรอด ก้อมี blog ด้าน คอม ของตัวเองซักที&lt;br /&gt;&lt;br /&gt;หลังจากที่ &lt;span style="font-weight: bold;"&gt;แอบ&lt;/span&gt; อ่านตาม  blog อื่นมานาน&lt;br /&gt;&lt;br /&gt;=============================================================&lt;br /&gt;&lt;br /&gt;หลายคนอาจสงสัย ทำไม ต้อง &lt;span style="font-weight: bold;"&gt;Va-Rita&lt;/span&gt; แฮะๆ จริงๆแล้วมันมาจากคำว่า&lt;br /&gt;&lt;br /&gt;VARISTHA&lt;br /&gt;&lt;br /&gt;ชื่อเราเอง อิอิ&lt;br /&gt;&lt;br /&gt;แต่เพื่อความง่าย ความเก๋ ตัด S H ออก&lt;br /&gt;&lt;br /&gt;ว้าว สวยงาม (คิดไปเองป่าวหว่า)&lt;br /&gt;&lt;br /&gt;เอาเป็นว่าโดนแล้วกัน&lt;br /&gt;&lt;br /&gt;=============================================================&lt;br /&gt;&lt;br /&gt;---------&gt;บล็อกนี้จะมีไรบ้าง&lt;--------------  หลายคนอาจสงสัย ว่าทำไม blog นี้จึงเกิดขึ้น  ง่ายๆเลย ตอนนี้ e-book ในเครื่องเยอะมากกกกกกก  upload เก็บใน web บ้าง แต่ไม่รู้จะไปปล่อยที่ไหน  เลย เอาว่ะ สร้างส่วนตัวเลยดีกว่า  จะได้เป็นศูนย์รวมนักอ่านอย่างเราๆไง (ฟรี ที่สำคัญ)   ไม่จบเท่านี้ เราจะรวมแหล่ง ของฟรีอื่นๆ ทั้ง โปรแกรม  บทความน่าอ่าน  ตลอดจน หาเงินในเน็ต อันนี้เราจะคัดสันแต่  &lt;span style="font-weight: bold;"&gt;ได้เงินจริงเท่านั้น&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;มาวางใน blog เรา&lt;br /&gt;&lt;br /&gt;okay เกรินนำแค่นี้พอดีกว่า ไปดูเองเองละกานนนะ&lt;br /&gt;&lt;br /&gt;===============================================================&lt;br /&gt;&lt;br /&gt;เพิ่มเต็มเพื่อ ความรวดเร็วทันใจของทุกคน&lt;br /&gt;&lt;br /&gt;ใครอยากได้หนังสืออะไร &lt;span style="font-weight: bold;"&gt;post&lt;/span&gt; บอกไว้ได้นะคะ&lt;br /&gt;&lt;br /&gt;เรายินดีช่วยหา แล้วเอามาแปะให้ทุกคนได้ &lt;span style="font-weight: bold;"&gt;load&lt;/span&gt; กันเล้ย&lt;br /&gt;&lt;br /&gt;เพราะหนังสือในเครื่องเยอะมากๆๆๆๆ&lt;br /&gt;&lt;br /&gt;ต้องทะยอย upload เข้าเว็บคะ&lt;br /&gt;&lt;br /&gt;เน็ตมันไม่แรงพออ่า!!!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&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/3076994668108386717-3500784154170832005?l=va-rita.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://va-rita.blogspot.com/feeds/3500784154170832005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://va-rita.blogspot.com/2009/07/va-rita.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/3500784154170832005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3076994668108386717/posts/default/3500784154170832005'/><link rel='alternate' type='text/html' href='http://va-rita.blogspot.com/2009/07/va-rita.html' title='เปิดตัว Va-Rita แล้วววว'/><author><name>yeaz</name><uri>http://www.blogger.com/profile/05560367839145231588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
