Coffeehouse Post

Single Post Permalink

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

    ?? I think Integer is fine? It is essentially

    public class Interger

    {

     int _value;

     override operator = .....

    }

    But, still, Integer is not int. It cost extra pointer in memory. Unless I am wrong? Which no one has yet to explain how Integer is structured.

    IMO, Integer[ one billion ] = ( 64bits pointer + 32bits value ) * one billion. Which is absolutly big no no in my previous examples.

    And just for me only, I totally don't like to use objects when I can use primitives. Some people can debate this to death, but, I want to use int, that's all that matters.