Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

String.class - What member is this ?

 
shukla raghav
Ranch Hand
Posts: 203
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While studying struts i was reading about Type Conversions and in one of the methods implemented for the Converter i saw this kind of an expression



Now i may sound like stupid to so many but i never heard a static member called class in String class. I kept searching the API i could not find such a member in the String class, or Object or Class class or even the CharSequence class. what is this member and another such member that i am intregued about is the

String.TYPE

why does the API not show about these members. Is this some new development. All the drop-down assistence in eclipse shows such a static member for String. Which version has it ? Why was the need for a class member as well as TYPE member in the classes.What good do they do if they really exist and they are no GHOST members
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class literals

Not new at all.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic