jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes PSVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PSVM" Watch "PSVM" New topic
Author

PSVM

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 175
What is the difference between
public static void main (String[] args) {}
public static void main (String... args) {}
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14116
    
  16

There's no practical difference. The version with the dots is using varargs.

See section 12.1.4 of the Java Language Specification.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

By the way, what's PSVM?

[My Blog] [JavaRanch Journal]
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 175
Jaikiran Pai wrote:By the way, what's PSVM?


public static void main
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 175
Jesper de Jong wrote:There's no practical difference. The version with the dots is using varargs.

See section 12.1.4 of the Java Language Specification.


Thanks Jesper de Jong
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11256
    
  16

Tarun Oohri wrote:
Jaikiran Pai wrote:By the way, what's PSVM?


public static void main

This is why we ask that you Use Real Words. I've been on this site for about ten years, and have never seen anyone use "PVSM" before.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 175
fred rosenberger wrote:
Tarun Oohri wrote:
Jaikiran Pai wrote:By the way, what's PSVM?


public static void main

This is why we ask that you Use Real Words. I've been on this site for about ten years, and have never seen anyone use "PVSM" before.


Everything happens for the first time.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7709
    
  20

Tarun Oohri wrote:Everything happens for the first time.

???

Anyway, I presume you're here to get help; in which case, isn't it in your interests to make your questions as easily understood as possible?

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 175
Winston Gutkowski wrote:
Tarun Oohri wrote:Everything happens for the first time.

???

Anyway, I presume you're here to get help; in which case, isn't it in your interests to make your questions as easily understood as possible?

Winston


I totally agree with you guys..I am new in here and this was the first time i used short hand...You all are much more experienced and full of knowledge..So, i have a great regard for all of you and i appreciate the way problems are being addressed here...
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7709
    
  20

Tarun Oohri wrote:I totally agree with you guys..I am new in here and this was the first time i used short hand...

No probs. Asking questions well is a bit of a "black art".

One of the best pages I know on the subject is this one; and of course there's also our HowToAskQuestionsOnJavaRanch page too.

There's quite a bit of content in both, but they really are worth getting to know, because it helps both you and us.

Good luck.

Winston
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PSVM