• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PSVM

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the difference between
public static void main (String[] args) {}
public static void main (String... args) {}
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way, what's PSVM?
 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What's gotten into you? Could it be this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic