• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PSVM

 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between
public static void main (String[] args) {}
public static void main (String... args) {}
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15219
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no practical difference. The version with the dots is using varargs.

See section 12.1.4 of the Java Language Specification.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, what's PSVM?
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:By the way, what's PSVM?


public static void main
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12102
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10277
60
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10277
60
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic