<?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-6576711329890495963</id><updated>2012-03-15T12:30:03.114-07:00</updated><title type='text'>Anyone Can Code</title><subtitle type='html'>&lt;b&gt;Java is today’s most powerful Object Oriented programming language which is the choice of many developers. You too can be a java programmer. It's not hard…. pick up the basics, understand the Object Oriented concepts and you are ready to go pro&lt;/b&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anyonecancode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6576711329890495963/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anyonecancode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>psmd</name><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>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6576711329890495963.post-5064808912388440290</id><published>2008-04-22T06:17:00.000-07:00</published><updated>2008-04-22T10:33:48.550-07:00</updated><title type='text'>Java Question of the Day- 22/04/2008</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;What is the output? (Don’t compile or execute this program)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="MsoNormal"&gt;public class Anyonecancode {&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;static void main(String[] args) {&lt;br /&gt;&lt;br /&gt;    String s1 = new String("Anyone can Code");&lt;br /&gt;    String s2 = new String("Anyone can Code");&lt;br /&gt;&lt;br /&gt;    StringBuffer sb1 = new StringBuffer("Anyone can Code");&lt;br /&gt;    StringBuffer sb2 = new StringBuffer("Anyone can Code");&lt;br /&gt;&lt;br /&gt;    System.out.println(sb1 == sb2 &amp;amp;&amp;amp; s1 == s2);&lt;br /&gt;    System.out.println(s1.equals(s2) || sb1.equals(sb2));&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;a)&lt;br /&gt;true&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;true&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;/div&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;b)&lt;br /&gt;false&lt;br /&gt;false&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;c)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;false&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;d)&lt;br /&gt;true&lt;br /&gt;false&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:courier new;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;e)&lt;br /&gt;other&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/6576711329890495963-5064808912388440290?l=anyonecancode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anyonecancode.blogspot.com/feeds/5064808912388440290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6576711329890495963&amp;postID=5064808912388440290&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6576711329890495963/posts/default/5064808912388440290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6576711329890495963/posts/default/5064808912388440290'/><link rel='alternate' type='text/html' href='http://anyonecancode.blogspot.com/2008/04/question-of-day.html' title='Java Question of the Day- 22/04/2008'/><author><name>psmd</name><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-6576711329890495963.post-6941210085753396160</id><published>2008-04-10T23:36:00.000-07:00</published><updated>2008-04-11T06:14:12.453-07:00</updated><title type='text'>First step with java</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:180%;"&gt;J&lt;/span&gt;&lt;span style="font-size:100%;"&gt;ava program is mostly a collection of objects talking to other objects by invoking each other's methods. Every object is of a certain type, and that type is defined by a class or an interface. Most Java programs use a collection of objects of many different types&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;span style="font-weight: bold;"&gt;Class :&lt;/span&gt;  A template that describes the kinds of state and behavior that objects of its type support.  &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;span style="font-weight: bold;"&gt;Object :&lt;/span&gt;  At runtime, when the Java Virtual Machine (JVM) encounters the new keyword, it will use the appropriate class to make an object which is an instance of that class. That object will have its own state, and access to all of  the behaviors defined by its class. &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;span style="font-weight: bold;"&gt;State &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;(instance variables) :&lt;/span&gt;  Each object (instance of a class) will have its own unique set of instance variables as defined in the class. Collectively, the values assigned to an object's instance variables make up the object's state. &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;span style="font-weight: bold;"&gt;Behavior (methods) : &lt;/span&gt; When a programmer creates a class, she creates methods for that class. Methods are where the class' logic is stored. Methods are where the real work gets done. They are where algorithms get executed, and data gets manipulated&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6576711329890495963-6941210085753396160?l=anyonecancode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://anyonecancode.blogspot.com/feeds/6941210085753396160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6576711329890495963&amp;postID=6941210085753396160&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6576711329890495963/posts/default/6941210085753396160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6576711329890495963/posts/default/6941210085753396160'/><link rel='alternate' type='text/html' href='http://anyonecancode.blogspot.com/2008/04/first-step-with-java.html' title='First step with java'/><author><name>psmd</name><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>1</thr:total></entry></feed>
