im new to java

im new to java

what is the significance of public static void main(string args[])statement
View Answers

April 19, 2010 at 12:24 PM

Hi Friend,

This statement is necessary for a java class to execute it as a command line application.

public- It provide access to the JVM to call any method without being a member of that class.

static- It allow the JVM to call main method without creating object.

void- It specifies the return type.

main- This method in java is designed not to return anything to the JVM, hence the return type of the main function is void.

String args[]-Java take's each argument as string.

For more information, visit the following link:

http://www.roseindia.net/java/gettingstartedwithjava/public-static-void-main.shtml

Thanks









Related Tutorials/Questions & Answers:
im new to java - Java Beginners
im new to java  what is the significance of public static void main... for a java class to execute it as a command line application. public- It provide...- It specifies the return type. main- This method in java is designed
Maven dependency for com.smartydroid - support-im version 0.0.4 is released. Learn to use support-im version 0.0.4 in Maven based Java projects
this version ( com.smartydroid - support-im version 0.0.4 ) in their Java.... Step 1: Create or use a Maven project First of all you have to create a new Java...Maven dependency for  com.smartydroid  - Version 0.0.4 of support-im
Advertisements
New to Java - New to java tutorial
Technical description of Java Mail API       This section introduces you with the core concepts of Java Mail API. You must understand the Java Mail API before actually delving
to all Experts.. please help me. im using a Jcreator. - Java Beginners
to all Experts.. please help me. im using a Jcreator.  3. Write a program that asks the user to enter a word. The program will then repeat word..."); Scanner input=new Scanner(System.in); String word=input.next(); int len
opening new browser with new JSESSIONID using java
opening new browser with new JSESSIONID using java  I am facing following problem, I am trying to open a new browser using java. First i have opened one IE browser and manually. And i ran my LaunchURL.java file, it is opening new
AJAX IM
AJAX IM       ajax im ("asynchronous javascript and xml instant messenger"... is updated in real-time via JavaScript.  ADS_TO_REPLACE_1 Ajax IM (Ajax
new java technologies 2012
new java technologies 2012  new java technologies 2012
New To JAVA - Java Beginners
New To JAVA  hi iam new to java..,can you please guide me how to learn the java and also tell me how many days it takes to learn java  Hi... will get more information about java. Read more detail. http
add new package java
add new package java  How to add new package in Java
new java technologies 2011
new java technologies 2011  what are the new java technologies in 2011
NEW IN JAVA - Java Beginners
NEW IN JAVA  Suppose you are asked to design a software tool... static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); Random random1 = new Random(); Random random2 = new Random(); int
New to Java Please help
New to Java Please help  Hi I need help, can some one help me.... Thanks!   If you are new in java, then you need to learn core java concepts.So go through the following link: Core Java Tutorials Here, you will find
Very new to Java
Very new to Java   hi I am pretty new to java and am wanting to create a programe for the rhyme 10 green bottles. 10 green bottles standing on the wall 10 green bottles standing on the wall and if 1 green bottle should
ModuleNotFoundError: No module named 'IM'
ModuleNotFoundError: No module named 'IM'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'IM' How to remove the ModuleNotFoundError: No module named 'IM' error
new
new    hi i am jane pls explain the difference between string greeting = good morning string greeting = new string ("good morning
new
new    hi i am jane pls explain the difference between heap memory and stack memory
new
new  hi the difference between string sname = good morning string sname =new("good morning
new
new   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html
Im not getting validations - Struts
to trace the problem.... BeCoz..Im new to Struts... Thanks InAdvance...Im not getting validations  I created one struts aplication im using... in s-c.xml But Im unable to get validations This is my validation.xml file
New to Java?
New to Java?       If you are new to Java technology and you want to learn Java and make...: New to Java? Understanding the Java Technology Java technology
The new keyword in java
The new keyword in java In this section you will learn about new keyword in java. The new keyword is used to create a instance of a class. The new keyword...; A ob1 = new A(12,56); Shape ob2 = new Shape(ob,32,98); First line creates
How to make a new List in Java
How to make a new List in Java  Hi, I have to create list object in Java. How to make a new List in Java? Thanks (adsbygoogle... the new operator as shown below: List list = new ArrayList(); Thanks
new String(text) - Java Beginners
(text): In this Case Java will create a new String object in normal (non-pool...new String(text)  Please, what is the difference between this.text = text; and this.text = new String(text); in the example: public
Java create new array of strings.
Java create new array of strings.  Java create new array of strings.   Example: public class StringArray { public static void main... (eg. int,char,float etc). For example String name[]=new String[7
opening new window - Java Beginners
opening new window  Hi All, I have two classes with me , lets say A and B.when I press a button in class A , the class B should open in a new window.i.e., I want to know, how a new window(B) can be opened by clicking a button
Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im version 0.0.3
:support-im:0.0.3 Java library in your project.. Maven, Gradle, SBT, Ivy, Grape, Leiningen and  Buildr Dependency for support-im version 0.0.3...Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im
Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im version 0.0.2
:support-im:0.0.2 Java library in your project.. Maven, Gradle, SBT, Ivy, Grape, Leiningen and  Buildr Dependency for support-im version 0.0.2...Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im
Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im version 0.0.1
:support-im:0.0.1 Java library in your project.. Maven, Gradle, SBT, Ivy, Grape, Leiningen and  Buildr Dependency for support-im version 0.0.1...Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im
Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im version 0.0.4
:support-im:0.0.4 Java library in your project.. Maven, Gradle, SBT, Ivy, Grape, Leiningen and  Buildr Dependency for support-im version 0.0.4...Maven, Gradle, SBT, Ivy, Grape, Leiningen and Buildr Dependency for support-im
ModuleNotFoundError: No module named 'im-debouncedtask'
ModuleNotFoundError: No module named 'im-debouncedtask'  Hi, My... named 'im-debouncedtask' How to remove the ModuleNotFoundError: No module named 'im-debouncedtask' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'im-fragalysis'
ModuleNotFoundError: No module named 'im-fragalysis'  Hi, My... 'im-fragalysis' How to remove the ModuleNotFoundError: No module named 'im-fragalysis' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'im-futuregcsfilesharded'
ModuleNotFoundError: No module named 'im-futuregcsfilesharded'  Hi...: No module named 'im-futuregcsfilesharded' How to remove the ModuleNotFoundError: No module named 'im-futuregcsfilesharded' error? Thanks   
ModuleNotFoundError: No module named 'im-gcsfilesharded'
ModuleNotFoundError: No module named 'im-gcsfilesharded'  Hi, My... named 'im-gcsfilesharded' How to remove the ModuleNotFoundError: No module named 'im-gcsfilesharded' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'im-memcacher'
ModuleNotFoundError: No module named 'im-memcacher'  Hi, My Python... 'im-memcacher' How to remove the ModuleNotFoundError: No module named 'im-memcacher' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'im-qsb'
ModuleNotFoundError: No module named 'im-qsb'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'im-qsb' How to remove the ModuleNotFoundError: No module named 'im-qsb'
ModuleNotFoundError: No module named 'im-task-webapp2'
ModuleNotFoundError: No module named 'im-task-webapp2'  Hi, My... named 'im-task-webapp2' How to remove the ModuleNotFoundError: No module named 'im-task-webapp2' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'snipe-im'
ModuleNotFoundError: No module named 'snipe-im'  Hi, My Python... 'snipe-im' How to remove the ModuleNotFoundError: No module named 'snipe-im... to install padas library. You can install snipe-im python with following
ModuleNotFoundError: No module named 'IM-client'
ModuleNotFoundError: No module named 'IM-client'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'IM-client' How to remove the ModuleNotFoundError: No module named 'IM
ModuleNotFoundError: No module named 'im-critsec'
ModuleNotFoundError: No module named 'im-critsec'  Hi, My Python... 'im-critsec' How to remove the ModuleNotFoundError: No module named 'im... have to install padas library. You can install im-critsec python
ModuleNotFoundError: No module named 'im-finished'
ModuleNotFoundError: No module named 'im-finished'  Hi, My Python... 'im-finished' How to remove the ModuleNotFoundError: No module named 'im... you have to install padas library. You can install im-finished python
ModuleNotFoundError: No module named 'im-future'
ModuleNotFoundError: No module named 'im-future'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'im-future' How to remove the ModuleNotFoundError: No module named 'im
ModuleNotFoundError: No module named 'im-futuregcscompose'
ModuleNotFoundError: No module named 'im-futuregcscompose'  Hi, My... named 'im-futuregcscompose' How to remove the ModuleNotFoundError: No module named 'im-futuregcscompose' error? Thanks   Hi
ModuleNotFoundError: No module named 'im-futurendbsharded'
ModuleNotFoundError: No module named 'im-futurendbsharded'  Hi, My... named 'im-futurendbsharded' How to remove the ModuleNotFoundError: No module named 'im-futurendbsharded' error? Thanks   Hi
ModuleNotFoundError: No module named 'im-futuretest'
ModuleNotFoundError: No module named 'im-futuretest'  Hi, My... 'im-futuretest' How to remove the ModuleNotFoundError: No module named 'im-futuretest' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'im-futuretest-webapp2'
ModuleNotFoundError: No module named 'im-futuretest-webapp2'  Hi...: No module named 'im-futuretest-webapp2' How to remove the ModuleNotFoundError: No module named 'im-futuretest-webapp2' error? Thanks   Hi
ModuleNotFoundError: No module named 'im-gcscacher'
ModuleNotFoundError: No module named 'im-gcscacher'  Hi, My Python... 'im-gcscacher' How to remove the ModuleNotFoundError: No module named 'im-gcscacher' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'im_man'
ModuleNotFoundError: No module named 'im_man'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'im_man' How to remove the ModuleNotFoundError: No module named 'im_man'
ModuleNotFoundError: No module named 'im-ndbsharded'
ModuleNotFoundError: No module named 'im-ndbsharded'  Hi, My... 'im-ndbsharded' How to remove the ModuleNotFoundError: No module named 'im-ndbsharded' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'im-pysquonk'
ModuleNotFoundError: No module named 'im-pysquonk'  Hi, My Python... 'im-pysquonk' How to remove the ModuleNotFoundError: No module named 'im... you have to install padas library. You can install im-pysquonk python
ModuleNotFoundError: No module named 'im-task'
ModuleNotFoundError: No module named 'im-task'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'im-task' How to remove the ModuleNotFoundError: No module named 'im-task

Ads