Steps for Creating Java Application

All applications programs are written and compiled in the following manner:- 


  1. start any text editor (For ex: notepad…… but i prefer dreamWeaver or NetBeans IDE to write the code


  2. Write the building block of code for class as shown in the next considering the class Untitled-1 copy


  3. Write the code in side the main method (function) block as illustrated before.


  4. [For NotePad] compile the Java file using the commend JAVAC as follow:-




    • Run the DOS environment form MS-DOS prompt command from programs submenu from the start menu

Let's Start: Creating Java Appliction

Java has three applictions and that are:

  • Console Applictions
  • Windows Applictions
  • Applet Applections
All aplictions are created by Java and interpreted using Java Virtual Machine is called class so the firat step is to create a class, this class contains the code to be run which is divided into functions called methods (this will be illustrated more later)
The main syntax to the class as follow:

Class Class_name
{
           The building block for the class
} 
//the method (first function to run when runnung the appliction) is called main metod when running the appliction runss is start running from it has the following syntax:
public static void main (String[] args)
{
                       the building block for the method(function)
} 
So to build an appliction the structure block for starting the class is as follow:
Class class_name
{
public static void main(String[] args)
   {
      //the building block for the method (funtion) code written here
    }
}

Break

Java s0ftwarfe

the first Java kit was known as JDK(Java Development Kit) with many versions JDK1.1, after time this kit is developed with many other tools to be SDK (Java 2 Software Development Kit) which is compatibe with pervious versions of JDK.

Java virtual Machine (JVM)

Java Virtual Machine is the software program that runs any java enables appliction either stand-alone appliction or applet appliction independently of operating system runningthe java appliction>

once an aplliction is created by a machine running spicific operating system, this appliction can be used in other operating systems without any change using Java Virtual Machine of other operting system.

Java is Multithresded

Multithreaded in Java means you can create Java programs with multiple threads of execution, by means of execution of several tasks simultaneously. For examle, you can create Java program that displays an animation sequence of moving images and at the same time accept input from the user's keybound.

Java is Portable

Portability of Java means that you can create and comile varity of platforms without changes. This includes different excellent langauge for developing Internet applications that must run on a wide varity of system configurations.

Java is Platform-Independent

Java programs unlike those in other programming langauges are platform-independent. This allows Java applets and application to be run on varying platforms without recompiling the source code. This features is realized because Java is an interpreted langauge. The disadvantage of byte code is execution speed, but Java programs add the extra interpreter layer. There are methods to work around this speed principle.

Java is Intepreted

Unlike the comile of C++ program that produces machine instractions, the jave compiler produces that are then executed by Java Virtual Machine (JVM). there are just in time (JIT) compilers availabe for Java applications, which translate the byte codes into machine instructions for the PC they are executed on.

Java is Secure

Java has security restrictions built into its foundation. Security is important because user access the web pages without knowing exactly what is executing on them.

Java is Object-Oriented

    Java is completed object -oriented langauge. So it allows programmers to greate modular, flexable programs. As in other object oriented langauges such C++, Java contains classes, objects,, encapsulation, interitance, and polymorphism.

 A class is the bass building block of an object-oriented program. it contains variables known as members, and functions, known as methods. An object is simply an example of a particular class. For example, you could have a class named Human, and an object of that class names Jhon.

Encapsulation is the capility to hide class varibles from outside classes. 

Inheritance is the capability of one class to be produced from another.

Polymorphism means that a class can override the implementation of a commonly named method from the class, which produces from.

Java is Simple

Java programming language is simple, and experienced C++ developers will quickly go on with it, because Java syntax is derived from C/C++. Also, the developers of java attempted to keep the langauge as small as possible, to make it easier to learn and use.

Dor example memory leaks that are a constant source of headaches in other programming languages are handles by Java itself. As soon as a varible in Java program go out of scope, any memory is used is released and returned to the system. Secandly, the Java langauge eliminates pointers, which are often a source of program errors that are very hard to debug. Thirdly, the class libraies included with Java language are much smaller in other language like Visual C++.


Java Definition



     Due to the increasing for the funcionality of the World Wide Web, Java programming language provides an excellent opportunity to good web pages. However, Java Programming is not restictes to Web programming, but its good features give it the ideality for developing standalone application.

     In 1995, Sun Microsystems inrroduced the java programming language to the world. Although this langauge derives heavily from C++, it has many special features that have made it a huge sucess with programmers at all levels.


     There are many definitions of the Java programming language today, most of them are similar to the following"

     "java os a simple, Object-Oriented, secure, interperted, platform independent, portable and multithreaded langauge"

Welcome

Welcome to your blog everyone...
let's try to understand programming by Java in simple way..
With your interaction , we will actieve the best results..
With my best regards..
                Elsayed Helaly