Main function..

Ads

 
 

Share on Google+Share on Google+

SakthiPrabhu.g
Main function..
1 Answer(s)      8 years ago
Posted in : Java Beginners
Ads
View Answers

December 23, 2008 at 6:14 AM


Hi friend,

public: The method can be accessed outside the class / package
static: You need not have an instance of the class to access the method

void: Your application need not return a value, as the JVM launcher would return the value when it exits

main(): This is the entry point for the application

args[] : This is an argument an array of String.

Thanks

Ads









Related Tutorials/Questions & Answers:
main function
main function  Give me the description of public static void main(Strings args
Main function.. - Java Beginners
Main function..  Hi Friend.. public static void main(String args[]) What does it mean...public - static - void - main -(String args[]) Can u plz... return the value when it exits main(): This is the entry point for the application
Advertisements
main function in java - Java Interview Questions
main function in java  1....why is function main() define as static in java? 2...drawbacks of using rmi
main function defnition in class - Java Beginners
main function defnition in class  why do we use public infront of a main function   Hi friend, The main method is similar to the main function in C and C++; it's the entry point for your application
Understanding public static void main function
Understanding public static void main function       The public static void main function is important function in Java programming language. In this section we will learn about main
Main function parameter in C language - Ajax
Main function parameter in C language  Please let me know how this Main(int argc,char*argv[]) works and detailed example on their roles in command...; Hi Friend, int main(int argc, char **argv) The main function serves
How I call the function union from the main - Java Interview Questions
How I call the function union from the main  Please, from public static void main(String[] args) I would like to call the function union and I... declared in main function //------------------------------- package model
function
function  difference between function overloading and operator overloading
What is Public static void main
What is Public static void main In most of the Programming language, main function is the first function where program start execution. This is the first... are the variation of main method. public static void main(String[] args) public
main method
main method  What is the argument type of a program's main() method
main method
main method  Why is the java main method static
main() method
main() method  Can we define two main() methods having same parameter but with different return type in a program
main method
main method  hello, Can I make multiple main methods in the same... can not make multiple main with in the same class program fails to compile. Compiler gives error that the main method is already defined in the class
MAin error
MAin error  Error while running hello program in another dir rather... but @ d tym of runnin error in main class is generated Exception in thread "main".java.lang.NoClassFoundDefLoader. : Hello caused
main method
main method  psvm(String args[]) what does this arguement in paranthesis denote?   Hi Friend, public-It indicates that the main() method can be called by any object. static-It indicates that the main() method
main func - Java Beginners
main func  why do we pass array of strings in main function of java?  Hi Friend, It is used to signify that the user may opt to enter parameters to the java program at command line. Thanks
unoin function
unoin function  how to define a union function in java?(ex:a=a U b) how to write tha java code?give ex.   Java Union Function You have... sets. import java.util.*; public class SetsUnion { public static void main
function method
function method  i. void display(String str.int p)with one string... is an example where we have created a function that accepts a string and an integer... static void main(String[] args) { Scanner input=new Scanner(System.in
isNaN function
isNaN function  What does isNaN function do
Main method overloading
Main method overloading  Can we overload main()method
why not float main?
why not float main?  why should the main be int or void?why cant it be float or char? why int main()?why not float main()?or char main
why not float main?
why not float main?  why should the main be int or void?why cant it be float or char? why int main()?why not float main()?or char main
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
JSON main question
JSON main question  What is the main purpose of JSON ,in which cases can i use
JSON main question
JSON main question  What is the main purpose of JSON ,in which cases can i use
Main memory is also known as
Main memory is also known as   Main memory of a computer is also known
If function in PHP
If function in PHP  Hi, Provide me the example of If function in PHP. Thanks   Hi, If function is PHP is used to check for some condition and the execute a block of code. He is an example of if() function in PHP
Calling a function
Calling a function  Hi, I have a function xyz() in php code. When a button is clicked it should execute that particular function for that i have... function function xyz() { } but this is not working can u tell me
function method
function method  input Rs. 12000 Discount= 10%, 8% = Rs.(12000-1200) = Rs.(10800-864) = Rs. 9936