Coffeehouse Post

Single Post Permalink

View Thread: Java value types Vs .NET
  • User profile image
    Bass

    @Sven

    There is no "toString", but there is String.valueOf(prim) where prim is a value type, so you don't have to "new" anything to convert a primative to a string. It is possible that this ends up creating an object and calling toString in most Java implementions internally.