Monday, September 19, 2011

Declaring Variable and Literals, Data Types, Keywords in Java

Declaring Variable and Literal
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.

Various Data Types
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:
  • Primitive or the simple data types
  • Abstract or the derived data types

Tuesday, September 6, 2011

How to run Java Application on NetBeans IDE

How to run an application on NetBeans IDE.

To write your first program, you'll need:
  1. The Java SE Development Kit 6 (JDK 6)
  2. The NetBeans IDE

Create an IDE Project

Running your first Java application from the command prompt for user of Microsoft Windows

Running your first Java application from the command prompt for user of Microsoft Windows

To write and run your first Java application on Microsoft Windows, you’ll need the following:
  1. The Java SE Development Kit 6 (JDK 6)
You can download the Windows version from http://java.sun.com/javase/6/download.jsp. you can Consult the installation instructions.
  1. A Text Editor
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.

Creating Your First Application

Sunday, September 4, 2011

Installing Java Standard Edition Development Kit (JDK) and Setting the PATH Environment Variable


Installing Java Standard Edition Development Kit (JDK)

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.

Wednesday, August 31, 2011

Introduction to Java Programming Language

Introduction to Java Programming Language

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.

Need for Java

Saturday, August 27, 2011

Features of Object Oriented Programming


Features of Object Oriented Programming


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.

Object Oriented Programming System consists of the following features:

  1. Encapsulation
  2. Abstraction
  3. Inheritance
  4. Polymorphism

Thursday, August 25, 2011

Advantages of Object Oriented Programming


Advantages of Object Oriented Programming

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.

Some of the advantages of Object Oriented Programming include:

  • Real world programming
  • Reusability of codes
  • Modularity of codes
  • Information hiding
Let’s try and discuss each of these advantages in details.

Object Oriented Programming (OOP) and Procedural Programming Approach


Object Oriented Programming (OOP)

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.

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.

Wednesday, August 24, 2011

About Java Programming Technology


About Java Programming Technology

Java Technology is both a Programming Language and a Platform.

Java Programming Language

Tuesday, August 23, 2011

History of Java Programming Language


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.

History of Java Programming

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.