<?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-83428943169467893</id><updated>2011-11-27T16:03:49.115-08:00</updated><title type='text'>Java - Free Learning Tutorials</title><subtitle type='html'>Learn Java basics in a simple way</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javabuzz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/83428943169467893/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javabuzz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vidhyadhar Birnale</name><uri>http://www.blogger.com/profile/12646601670900095814</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>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-83428943169467893.post-8867381308593225751</id><published>2010-10-27T02:21:00.001-07:00</published><updated>2010-10-27T02:21:46.981-07:00</updated><title type='text'>Introduction</title><content type='html'> Java is related to C++, which is a direct descendent of C. From C, java derives its syntax.&lt;br /&gt;Many of java’s object oriented features were influenced by C++.&lt;br /&gt; Java was conceived by James Gosling, Patrick Naughton, Ed Frank, and Mike Sheridan at&lt;br /&gt;Sun Microsystems, Inc. in 1991. This language was initially called “Oak”, but was renamed&lt;br /&gt;to “Java” in 1995.&lt;br /&gt; The primary motivation behind development of Java was the need for a platformindependent&lt;br /&gt;language that could be used to create software to be embedded in various&lt;br /&gt;consumer electronic devices, such as microwave ovens and remote controls.&lt;br /&gt; The output of Java compiler is not executable code. Rather, it is bytecode. Bytecode is a&lt;br /&gt;highly optimized set of instructions designed to be executed by the Java run-time system,&lt;br /&gt;which is called Java Virtual Machine (JVM). The JVM is an interpreter for bytecode.&lt;br /&gt; HotSpot technology of Sun provides a Just-In-Time (JIT) compiler for bytecode. When a JIT&lt;br /&gt;compiler is part of JVM, selected portions of bytecode are compiled into executable code in&lt;br /&gt;real time.&lt;br /&gt; Java features : i) Simple ii) Secure iii) Portable iv) Object-oriented v) Robust&lt;br /&gt;vi) Multithreaded vii) Architectura-neutral viii) Interpreted&lt;br /&gt;ix) High performance x) Distributed xi) Dynamic&lt;br /&gt; Object Oriented Programming organizes a program around its data (i.e., objects). An object&lt;br /&gt;oriented program can be characterized as data controlling access to code.&lt;br /&gt; Object - An object is a real world entity or real world thing, which one knows how to use it&lt;br /&gt;but unaware of its internal structure or the way it works.&lt;br /&gt; Abstraction – An abstraction is a lack of knowledge. An Object Oriented Programming&lt;br /&gt;language advises the programmer to maintain an abstraction between user &amp;amp; application to&lt;br /&gt;keep away the complexity of an application from user. A powerful way to manage the&lt;br /&gt;abstraction is through the use of hierarchical classifications.&lt;br /&gt; Three Object Oriented Programming Principles&lt;br /&gt; Encapsulation – Encapsulation is the mechanism that binds together code and data it&lt;br /&gt;manipulates, and keeps both safe from outside interference and misuse. In java, the basis&lt;br /&gt;of encapsulation is the class. Each method or variable in a class may be marked private&lt;br /&gt;or public. The public interface of a class represents everything that external users of the&lt;br /&gt;class need to know, or may know. The private methods and data can only be accessed&lt;br /&gt;by code that is a member of a class.&lt;br /&gt; Interference – Interference is the process by which object acquires the properties of&lt;br /&gt;another object. A new subclass inherits all of the attributes of all of its ancestors.&lt;br /&gt; Polymorphism – Polymorphism is a feature that allows one interface to be used for a&lt;br /&gt;general class of actions. The concept of polymorphism is often expressed by the phrase&lt;br /&gt;“one interface, multiple methods.”&lt;br /&gt; As compared to VB, which is object based language, Java is class based language with more&lt;br /&gt;than 15 thousand classes &amp;amp; above 2 lack methods.&lt;br /&gt; Java uses both compiler &amp;amp; interpreter to execute a program.&lt;br /&gt; In case of a program, containing multiple classes, one can assign any name to a program,&lt;br /&gt;but can execute the program using the class name which has ‘main’ method. A ‘.class’ file is&lt;br /&gt;created for each class in a program.&lt;br /&gt; Java doesn’t recognize ‘boolean’ data type as ‘int’. It stores ‘true’ &amp;amp; ‘false’ literals.&lt;br /&gt; A first simple program : Displaying messages on console.&lt;br /&gt;1. class Example {&lt;br /&gt;2. public static void main(String args[]) {&lt;br /&gt;3. System.out.println(“Hello! Vishal Birnale”);&lt;br /&gt;4. }&lt;br /&gt;5. }&lt;br /&gt;The 1 s t line uses the keyword class to declare that a new class is being defined.&lt;br /&gt;The 2 nd line of code uses:&lt;br /&gt;‘ public’ keyword – it is an access specifier, which allows the programmer to control the&lt;br /&gt;visibility of class members. public member may be accessed by code outside the class in&lt;br /&gt;which it is declared.&lt;br /&gt;‘ static’ keyword – it allows main() to be called without having to instantiate particular&lt;br /&gt;instance of the class.&lt;br /&gt;‘ void’ keyword – it simply tells the compiler that the main() doesn’t return a value.&lt;br /&gt;The 3 rd line contains System class, which is a predefined class that provides access to system,&lt;br /&gt;and out is the output stream that is connected to the console.&lt;br /&gt;println() displays the string which is passed to it.&lt;br /&gt; Block of code ({ . . . })&lt;br /&gt;Coding is done in blocks. A variable declared in a block is local to that block &amp;amp; is&lt;br /&gt;accessible anywhere within the same block; it can’t be accessed in any other block.&lt;br /&gt;In case of nesting of blocks, the variable of outer block can be accessed in inner block but&lt;br /&gt;not vice versa.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/83428943169467893-8867381308593225751?l=javabuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javabuzz.blogspot.com/feeds/8867381308593225751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=83428943169467893&amp;postID=8867381308593225751&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/83428943169467893/posts/default/8867381308593225751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/83428943169467893/posts/default/8867381308593225751'/><link rel='alternate' type='text/html' href='http://javabuzz.blogspot.com/2010/10/introduction.html' title='Introduction'/><author><name>Vidhyadhar Birnale</name><uri>http://www.blogger.com/profile/12646601670900095814</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-83428943169467893.post-5655726478751731539</id><published>2010-10-26T22:38:00.001-07:00</published><updated>2010-10-26T22:40:44.765-07:00</updated><title type='text'></title><content type='html'>&lt;a href="http://java.com/inc/BrowserRedirect1.jsp?locale=en&amp;amp;host=java.com"&gt;download&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/83428943169467893-5655726478751731539?l=javabuzz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javabuzz.blogspot.com/feeds/5655726478751731539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=83428943169467893&amp;postID=5655726478751731539&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/83428943169467893/posts/default/5655726478751731539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/83428943169467893/posts/default/5655726478751731539'/><link rel='alternate' type='text/html' href='http://javabuzz.blogspot.com/2010/10/download.html' title=''/><author><name>Vidhyadhar Birnale</name><uri>http://www.blogger.com/profile/12646601670900095814</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>
