Monday, May 26, 2008

Java Features

1.Simple :
Java is a simple programming language. Pointers are not available in Java.Java resembles with C,C++ languages.In Java some features(pointers) of C language are deleted.Reason: Pointer's lead to confusion for a programmer.->Pointers may crash a program easily.->Using pointers harmful programs like virus and hacking programs can be developed.

2. Object Oriented: Java is an object oriented programming language. Using java we can create objects and classes.Definition of an Object: Any thing that exits in this real world is an Object. An object will have ‘properties’ and perform some ‘Actions’.Properties are represented by ‘Variables’ and ‘Actions’ are represented by ‘methods’ (nothing but the functions in C language).Definition of a Class: A class is a group name that specifies properties and actions for a group of Objects.A class is a ‘model’ for creating the objects.Objects are created from a class. Object does not exist without a class, but a class can exist without any object.Note: In Java we must use atleast one Class during a program

3. Distributed: Information is distributed on a various computers on a network.

4. Robust: Java programs will not terminate in the middle.

5. Secure: Java enable the construction of virus-free and tamper free systems.
6.Architecture Neutral : Java’s byte code is not machine dependent.
7. Portable : Java programs give same results on all machine unlike C,C++ program’s. This is the major reason for C and C++ programs being not used on the internet as INTERNET contains different machines with different configurations

Java Constructor

Constructors
A constructor is a piece of code that runs when an instance of an object is created. A constructor is indicated by a method that:
Has the same name as the object
Has no return type specified

Java Object

Everything in Java is an object. An object is a collection of data and actions that make up a programming entity. A 'car' object, for example, might have some data (i.e. 'speed,' 'direction,' 'lights on,' 'current fuel,' etc.) and some actions it can take ('turn right,' 'turn lights on,' 'accelerate,' etc.). Objects provide a number of advantages when programming; the include the ability to hide what's going on 'inside' the object from other programmers, which is useful for writing code that others can work with but not easily mess up. However, the biggest advantage to programming with objects is that objects simply 'make sense'; they form the nouns and verbs that you use to write the 'story' of your program.

Java is Easy

dear all,
This blog is to tell you that how Java language is easy.
slowly you will become master of the JAVA.
keep blogging
Have a wonderful day
--Java