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
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,
 

bobobo

Newbie level 2
Joined
Apr 26, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top