• Post Reply Bookmark Topic Watch Topic
  • New Topic

About string  RSS feed

 
kumarbobby
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all


i have a small doubt is String is a Wrapper class?
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not classified as a Wrapper class.
 
Mani Ram
Ranch Hand
Posts: 1140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically speaking, it is not classified as a Wrapper class, because it doesn't wrap a primitive datatype.

Integer wraps int, Double wraps double, Character wraps char, String wraps - nothing.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!