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.