File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes PSVM Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "PSVM" Watch "PSVM" New topic
Author

PSVM

Tarun Oohri
Ranch Hand

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

Joined: Aug 16, 2005
Posts: 12952
    
    3

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: 8209
    
  71

By the way, what's PSVM?

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

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


public static void main
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 52
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: 10040
    
    6

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.


Never ascribe to malice that which can be adequately explained by stupidity.
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 52
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: 4902
    
    7

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?
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 52
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: 4902
    
    7

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: PSVM
 
Similar Threads
how to complie/run a java prog with 2 or more classes
odd array signature
First Java Program not working
scope
Very Basic Question ....