tag:blogger.com,1999:blog-75836480132299552662024-02-08T12:18:42.860-08:00Free Java Programming Language TutorialsFree Java Programming Language Lessons; learn the Basics of Java Programming, Free Tips on Java, Practice Java, Develop Stand Alone Java Applications, Develop Web Applications Using Java, Java J2EE, EJBUnknownnoreply@blogger.comBlogger14125tag:blogger.com,1999:blog-7583648013229955266.post-53295186896688576732011-10-13T02:48:00.000-07:002011-10-13T02:48:55.072-07:00Creating and Running an Employee Java Application<br>
<b>Creating a Java Application.</b><br>
<b><br></b><br>
You need to create an Employee class that consists of various data members, such as employeeName, employeeAge, employeeSalary, employeeId. The application must initialize the data members to default values when an object of the Employee class is created. In addition, the application must display the data stored in the object.<br>
<br>
To solve the above given problem, the things needs to be done.<br>
1.<span class="Apple-tab-span" style="white-space: pre;"> </span>Code the application<br>
2.<span class="Apple-tab-span" style="white-space: pre;"> </span>Compile and execute the application.<br>
<br>
<a href="http://studyjavaprogramming.blogspot.com/2011/10/creating-and-running-employee-java.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-62919622937633516122011-10-11T05:52:00.000-07:002011-10-11T05:52:23.909-07:00Access Specifiers and Modifiers in Java Programming Language<br>
<div class="MsoNormal">
<b><span style="color: black; font-size: 16.0pt;">Access
Specifiers and Modifiers <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span style="color: black;">Classes enable an object to access data variables or
methods of another class. Java provides access specifiers and modifiers to
decide which part of the class, such as data members and methods will be
accessible to other classes or objects and how the data members are used in
other classes and objects.<o:p></o:p></span></div>
<div class="MsoNormal">
<br></div>
<div class="MsoNormal">
<span style="color: black;"><b>Access Specifiers<o:p></o:p></b></span></div>
<div class="MsoNormal">
<span style="color: black;">An access specifier controls the access of class members
and variable by other objects. The variouse types of access specifiers in Java
are:<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black;"></span></div>
<a href="http://studyjavaprogramming.blogspot.com/2011/10/access-specifiers-and-modifiers-in-java.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-70727757735654399212011-10-03T03:39:00.000-07:002011-10-03T03:39:36.943-07:00Structure of a Java Application, Introduction to Classes and Object<br>
<div class="MsoNormal">
<b><span style="color: black;">Structure of a
Java Application, Introduction to Classes and Object<o:p></o:p></span></b></div>
<div class="MsoNormal">
<br></div>
<div class="MsoNormal">
<span style="color: black;">In Java, you can either create a Stand-alone application or
a networked application. a stand-alone application uses the resources of a
local computer while a networked application uses resources available over a
network.<span> </span>Classes and object form the
basis of the structure of a Java application. A Java application consists of a
class, in which you declare the data members and methods. An object is an
instance of a class and it encapsulates the method and data members of a class.
<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black;">Creating Classes, Objects and Methods<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black;">All concepts that you need to implement in a Java
application is encapsulated within a class. A class defines the attributes and
methods of objects of the same type sharing common characteristics. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black;"></span></div>
<a href="http://studyjavaprogramming.blogspot.com/2011/10/structure-of-java-application.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-49442134621109385902011-09-19T04:35:00.000-07:002011-09-20T04:48:12.836-07:00Declaring Variable and Literals, Data Types, Keywords in Java<div class="MsoNormal"><b><span style="color: black;">Declaring Variable and Literal<o:p></o:p></span></b></div><div class="MsoNormal"><span style="color: black;">Java supports some basic programming elements, such as data types, keywords, literals and variables. Keywords are the reserved words for Java programming language, which cannot be used as names for variables, class or methods.<o:p></o:p></span></div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><b><span style="color: black;">Various Data Types<o:p></o:p></span></b></div><div class="MsoNormal"><span style="color: black;">The data stored on memory of the computer can be of different types. For example, a person’s age is stored as a numeric value and an address is stored as alphanumeric characters. Java is a strictly typed language, which means that Java gives importance to type checking. Expressions and variables in Java can be of different types, such as int, char, or string. Data Types in Java are divided into two categories as stated below:<o:p></o:p></span></div><ul type="disc"><li class="MsoNormal" style="color: black; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><b>Primitive or the simple data types<o:p></o:p></b></li>
<li class="MsoNormal" style="color: black; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><b>Abstract or the derived data types <o:p></o:p></b></li>
</ul><div class="MsoNormal"><br>
</div><a href="http://studyjavaprogramming.blogspot.com/2011/09/declaring-variable-and-literal-data.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-43304037131767855502011-09-06T04:50:00.000-07:002011-09-06T04:50:45.004-07:00How to run Java Application on NetBeans IDE<div class="MsoNormal"><b>How to run an application on NetBeans IDE.<o:p></o:p></b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><span class="apple-style-span"><span style="color: black;">To write your first program, you'll need:<o:p></o:p></span></span></div><ol start="1" type="1"><li class="MsoNormal"><b><span style="color: black;">The Java SE Development Kit 6 (JDK 6)</span></b></li>
<ul type="circle"><li class="MsoNormal" style="color: black; mso-list: l0 level2 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 72.0pt;">For Microsoft Windows, Solaris OS, and Linux:<span class="apple-converted-space"> </span><a href="http://java.sun.com/javase/6/download.jsp">http://java.sun.com/javase/6/download.jsp</a><o:p></o:p></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level2 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 72.0pt;">For Mac OS X:<span class="apple-converted-space"> </span><a href="http://connect.apple.com/">http://connect.apple.com</a><o:p></o:p></li>
</ul><li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><b>The NetBeans IDE</b><o:p></o:p></li>
<ul type="circle"><li class="MsoNormal" style="color: black; mso-list: l0 level2 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 72.0pt;">For all platforms:<span class="apple-converted-space"> </span><a href="http://www.netbeans.info/downloads/index.php" target="_blank">http://www.netbeans.info/downloads/index.php</a></li>
</ul></ol><h4><span style="color: #e76f00;">Create an IDE Project<o:p></o:p></span></h4><div><span style="color: #e76f00;"></span></div><a href="http://studyjavaprogramming.blogspot.com/2011/09/how-to-run-java-application-on-netbeans.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-35856147074959869952011-09-06T04:44:00.000-07:002011-09-06T04:44:24.487-07:00Running your first Java application from the command prompt for user of Microsoft Windows<div class="MsoNormal"><b><span style="color: black; font-size: 13.5pt;">Running your first Java application from the command prompt for user of Microsoft Windows <o:p></o:p></span></b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><span style="color: black;">To write and run your first Java application on Microsoft Windows, you’ll need the following:<o:p></o:p></span></div><ol start="1" type="1"><li class="MsoNormal" style="color: black; mso-list: l2 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><b>The Java SE Development Kit 6 (JDK 6)<o:p></o:p></b></li>
</ol><div class="MsoNormal"><span style="color: black;">You can download the Windows version from </span><a href="http://java.sun.com/javase/6/download.jsp">http://java.sun.com/javase/6/download.jsp</a>. you can Consult the <a class="OutsideLink" href="http://java.sun.com/javase/6/webnotes/install/index.html" target="_blank">installation instructions</a>.</div><ol start="2" type="1"><li class="MsoNormal"><b>A Text Editor </b></li>
</ol><div class="MsoNormal">We’ll be using Notepad, a simple editor included with the Windows Platform. These two items are all you’ll need to write and run your applications. </div><h3><span style="color: #e76f00; font-family: "Times New Roman"; font-size: 12.0pt;">Creating Your First Application</span></h3><div class="MsoNormal"><o:p></o:p></div><a href="http://studyjavaprogramming.blogspot.com/2011/09/running-your-first-java-application.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-37721220150706710452011-09-04T02:36:00.000-07:002011-09-04T02:36:53.327-07:00Installing Java Standard Edition Development Kit (JDK) and Setting the PATH Environment Variable<br>
<div class="MsoNormal"><b>Installing Java Standard Edition Development Kit (JDK)<o:p></o:p></b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal">From my next post, we shall start running Java applications. Before you can start running applications, you must first install the Java Standard Edition Development Kit (JDK) 6 or a Java Development tool that supports Java SE 6 (Example like NetBeans IDE). I shall also explain how to install and run your first application on NetBeans IDE. </div><div class="MsoNormal"><br>
</div><a href="http://studyjavaprogramming.blogspot.com/2011/09/installing-java-standard-edition.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-78977159610253164712011-08-31T08:37:00.000-07:002011-08-31T08:38:19.214-07:00Introduction to Java Programming Language<div class="MsoNormal"><b><span class="Apple-style-span" style="font-size: large;">Introduction to Java Programming Language</span></b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal">Java is an Object Oriented Language that was designed to meet the need for a platform independent language. Java is used to develop applications that can run on a single computer as well as on a distributed network. Java is a language that can be used to develop stand-alone and internet-based applications. A Java application works everywhere, from the smallest devices, such as remote controls and microwave ovens to supercomputers. One good thing about Java programs is that they are independent of the type of computer, telephone, television or operating system these devices run on. Java programs work on any type of compatible devices that support Java.</div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><b><span class="Apple-style-span" style="font-size: large;">Need for Java</span></b></div><div class="MsoNormal"><br>
</div><a href="http://studyjavaprogramming.blogspot.com/2011/08/introduction-to-java-programming.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-75619949339980565652011-08-27T08:18:00.000-07:002011-08-27T08:18:25.549-07:00Features of Object Oriented Programming<br>
<div class="MsoNormal"><b>Features of Object Oriented Programming <o:p></o:p></b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><br>
</div><div class="MsoNormal">Objects are the basic building blocks of Object Oriented Programming System. The real world objects have tow characteristics: State and behaviour. For example, human beings have state, such as name, color, age and height and behaviour such as walking and dancing. All the Objects in OOPS are based on real world having a specific state and behaviour.</div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><b>Object Oriented Programming System consists of the following features:</b></div><div class="MsoNormal"><br>
</div><ol start="1" style="margin-top: 0cm;" type="1"><li class="MsoNormal"><b>Encapsulation</b></li>
<li class="MsoNormal"><b>Abstraction </b></li>
<li class="MsoNormal"><b>Inheritance </b></li>
<li class="MsoNormal"><b>Polymorphism</b></li>
</ol><div class="MsoNormal"><br>
</div><a href="http://studyjavaprogramming.blogspot.com/2011/08/features-of-object-oriented-programming.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-81753244505002975762011-08-25T11:32:00.000-07:002011-08-25T11:32:58.820-07:00Advantages of Object Oriented Programming<br>
<div class="MsoNormal"><b>Advantages of Object Oriented Programming </b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal">As discussed in my previous post, Object Oriented Programming enables you to reuse various components of a program across programs. Reusability of codes not only saves time but also the effort of the programming team.</div><div class="MsoNormal"><br>
</div><div class="MsoNormal">Some of the advantages of Object Oriented Programming include:</div><div class="MsoNormal"><br>
</div><ul style="margin-top: 0cm;" type="disc"><li class="MsoNormal"><b>Real world programming</b></li>
<li class="MsoNormal"><b>Reusability of codes</b></li>
<li class="MsoNormal"><b>Modularity of codes</b></li>
<li class="MsoNormal"><b>Information hiding</b></li>
</ul><div class="MsoNormal">Let’s try and discuss each of these advantages in details.</div><div class="MsoNormal"><br>
</div><a href="http://studyjavaprogramming.blogspot.com/2011/08/advantages-of-object-oriented.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-38029713246215930942011-08-25T07:16:00.000-07:002011-08-25T07:16:58.320-07:00Object Oriented Programming (OOP) and Procedural Programming Approach<br>
<div class="MsoNormal"><b>Object Oriented Programming (OOP)</b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal">Since Java is an Object Programming Language, I have decided to write on the concept of Object Oriented Programming before moving to details about Java. So in this post and a few subsequent posts, I shall be writing about the concept of Object Oriented Programming. </div><div class="MsoNormal"><br>
</div><div class="MsoNormal">Before Object Oriented Programming came into effect, procedural programming was in use. Programs written using procedural programming approach consist of various functions. These functions can be executed anywhere within the program. The functions of procedural programs are interdependent; therefore they are difficult to separate from one another. These interdependent functions can not be reused in other programs. As a result, even for a similar task across programs, the entire function has to be recoded. This made program development a complex task. </div><div class="MsoNormal"></div><a href="http://studyjavaprogramming.blogspot.com/2011/08/object-oriented-programming-oop-and.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-88894742682643331832011-08-24T11:20:00.000-07:002011-08-24T11:20:26.644-07:00About Java Programming Technology<br>
<div class="MsoNormal"><b>About Java Programming Technology</b></div><div class="MsoNormal"><br>
</div><div class="MsoNormal">Java Technology is both a Programming Language and a Platform.</div><div class="MsoNormal"><br>
</div><div class="MsoNormal"><b>Java Programming Language</b></div><div class="MsoNormal"><br>
</div><a href="http://studyjavaprogramming.blogspot.com/2011/08/about-java-programming-technology.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-61588498314485844842011-08-23T09:49:00.000-07:002014-09-05T10:22:59.657-07:00History of Java Programming Language<br>
<div class="MsoNormal">
My intention for this blog is to write what I know and understand about the Java Programming Language. I hope this help’s anybody seeking and wanting to learn Java Programming. I am going to start from the very beginning to enable visitors of my site learn the Language from the very start. </div>
<div class="MsoNormal">
<br></div>
<div class="MsoNormal">
<b>History of Java Programming</b></div>
<div class="MsoNormal">
<br></div>
<div class="MsoNormal">
The microprocessor revolution’s most important contribution to date is that it made possible the development of personal computers. Personal Computers have greatly affected people’s lives and the ways organisations conduct and manage their businesses. Recognising this, Sun Microsystems in 1991 funded an internal corporate research project named Green, which resulted in C++ based language that its creator, James Gosling, called Oak after an oak tree outside his window at Sun. it was later discovered that there was already a Programming Language called Oak. When a group of Sun Microsystems employees visited a local coffee shop, the name Java was suggested and that was how Java Programming Knowledge got its name. </div>
<div class="MsoNormal">
<br></div>
<a href="http://studyjavaprogramming.blogspot.com/2011/08/history-of-java-programming-language.html#more">Read more »</a>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-7583648013229955266.post-40840717769884992932011-03-28T07:44:00.000-07:002011-08-25T07:37:09.732-07:00Introduction and My Intentions about this blog<div class="MsoNormal">Good day visitors, this post is a brief description of who I am and my intentions for creating this blog. My name is Gino Osahon and I am from <st1:place w:st="on"><st1:country-region w:st="on">Nigeria</st1:country-region></st1:place>. My intentions for creating this blog is to try as much as possible to discourse and share my view and what I know about Java Programming Language to anybody on the internet who is interested in studying or wanting to know about Java Programming Language. </div><div class="MsoNormal"><br />
</div><div class="MsoNormal">I studied a 3 years course in Software Engineering (Java Technologies) here in <st1:country-region w:st="on"><st1:place w:st="on">Nigeria</st1:place></st1:country-region>, as such I came up with the idea to just discourse and write about Java on the internet. I am not as perfect as you might think but I intend to write about Java right from the basics even to the very end of Java Programming. Each of my post will write about Java and the subsequent once will continue from the last post. I hope to do this no mater how long it takes me to finish the full Java modules. Well I think I have said enough for now because I said this post was going to be a brief description of my intensions for this blog. Less I forget I also intend to display Google Adsence also on this blog. Feel free to drop your comments and questions about my blog and how we all can get the best out of this experience. Hey guys, look forward to my next post. </div>Unknownnoreply@blogger.com0