Skip to main content

Posts

Showing posts from 2011

What is the mean of ..............public static void main(String args[ ]).............in java?

Public: - public specify that the method is accessible from outside the class. ClassName.function()   Static: - Static specifies that the method can be called without creating the object. Void: - Void specifies that the method does not return any result to the calling environment. String args []:- While running a program at the control line we can pass some arguments to it. These arguments and this array are used to hold the args provided at the command prompt.

How to execute a java program

Basically a java program execute in two steps .....In first step it's interact with compiler after this in second step it's interact wit  Interpreter :-    As shown in fig:-

Starting with java

 Types of java program :- There are two types of  java program 1.Applets :- {Program that are embedded in a web page ( HTML). 2. Application :-Program that are written for a specific application and run on any machine that supports java.     Now the Application program can be further divided into two parts :- (A) Console Application :- Program that support I/O in text format ( Like C/C++). (B)  GUI Application :- Programs that can create and manage at multiple windows and GUI provide mechanism of a window based program