Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Public static void main( String[] args) and public static void main (String args[])

Status
Not open for further replies.

bjerkely

Member level 4
Member level 4
Joined
May 26, 2004
Messages
72
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Turkiye
Activity points
589
Hi friends,

Can you explain what is the difference between
public static void main( String[] args)
and public static void main(String args[])
My program prints out the parameters typed by the user but it seems they both work.

regards,
 

Re: JAVA beginner

hi,
these are 2 way that Java allow user to declare main method and both work.But we should declare as the first way String[] args because it is encouraged.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top