• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

main method

 
saravanan ragunathan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i heard that when i call the main method(java Ex one two)with commandline arguments
jvm will allocate the memory for this arguments and assign the reference to the variable arg..then
what will be the reference when i call main without command line arguments

 
Henry Wong
author
Marshal
Pie
Posts: 21226
81
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saravanan ragunathan wrote:then what will be the reference when i call main without command line arguments



An empty array?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(And you could answer questions like this by just trying it.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic