473,382 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

doubt about main function

hi,
can anybody tell me the meaning of public static void main(Strin args[])?
can you please explain the meaning of each term?
Apr 24 '08 #1
4 1109
JosAH
11,448 Expert 8TB
I bet you didn't care to at least read a tutorial on the basics of Java.

kind regards,

Jos (moderator)
Apr 24 '08 #2
I bet you didn't care to at least read a tutorial on the basics of Java.

kind regards,

Jos (moderator)
Dear friend,
Actually public in psvm(String args[]) means that the main function in the program is accesible to every other function, outside the file in which main is written, void means the one that does not return anything,main is the function name thru which java program starts executing and String is the class name. I know little about static. In java the method or variables whose names start with static, are stored in Ram while non static contents are stored in the Object. I would like to know abt args here and also more abt static keyword. please explain me.
Apr 24 '08 #3
Laharl
849 Expert 512MB
args is any command line arguments to the program, as for static, I recommend a Google search for something like 'java static keyword'.
Apr 24 '08 #4
sukatoa
539 512MB
I know little about static. In java the method or variables whose names start with static, are stored in Ram while non static contents are stored in the Object.
Can you post the article that supports your knowledge?

I like to read it... for me it is interesting..... :)

Maybe this is a big impact for me when designing a serious applications soon....

Object? maybe in processor's registers.....

regards,
sukatoa
Apr 24 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: mahesh | last post by:
Hi all, I have a doubt with OOAD and Dialogs. I have a Dialog Class. tkSimple.py It contains a class body as below. Now I am calling the tkSimple.py in another python program and using the...
1
by: Srini | last post by:
I was reading the "Exceptional C++" of Herb Sutter. In an example, he mentions the following. // In some library header: namespace N { class C{}; } int operator+(int i, N::C) { return i+1; }...
5
by: CViniciusM | last post by:
Hello, The output of the code below is: number = 10 number = 0 (or other number except 15) Why the output of the second 'number' is not 15? Why the 'number' address is not changed? Thanks...
20
by: maadhuu | last post by:
firstly, i am thankful to all those who answered the 1st set of doubts. And i am not yet enlightened to that extent , coz ' i keep getting doubts. is the following defined in the language ?? int...
4
by: sureshk | last post by:
In 'C' the signature of any function's prototype and the definiton of the function should match.But for function main may recieve the arguments or may not recieve the arguments 'It is optional'. How...
8
by: naveen.dixit | last post by:
I have a piece of code #include<iostream> using namespace std; main() { int x=12; int *p = &x; cout<<endl<<p<<endl<<*p++<<endl; cout<<endl<<p<<endl<<*p<<endl;
1
by: shiniskumar | last post by:
i go tto perform some validation while ck=liking a button without refreshing the value.. i used ajax.My code is as follows...on button click i call the function validateGridAdd(); Inside tat...
2
by: rajendra | last post by:
hi friends, i have placed code because i want to explain my doubt clearly to you ,and i have placed my doubt in Main of the program (static void Main(string args)) by // before that ...
1
by: vhanwaribrahim | last post by:
Hi all, please see the below code. int main() { char *a; a= malloc(20); strcpy("a,"India""); change(a);
11
by: whirlwindkevin | last post by:
I saw a program source code in which a variable is defined in a header file and that header file is included in 2 different C files.When i compile and link the files no error is being thrown.How is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.