Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diff bet~n String s1[] & String s1

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between

String s1[];

and

String s1;

???
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The former is a reference to an *array* of Strings, the latter to a single String object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic