Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

valueOf() is static but calls toString(). How ?

  Asked By: Cesar    Date: Aug 18    Category: Java    Views: 512
  

valueOf()is declared as a static method. Static methods can call only
other static methods. toString() is not static. Yet valueOf() calls
toString() when valueOf() is invoked with an Object.

How is this possible ?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on valueOf() is static but calls toString(). How ? Or get search suggestion and latest updates.




Tagged: