What is the difference between an int and an Integer in Java and C#?

前端 未结 26 1738
生来不讨喜
生来不讨喜 2020-11-22 12:00

I was reading More Joel on Software when I came across Joel Spolsky saying something about a particular type of programmer knowing the difference between an i

26条回答
  •  旧时难觅i
    2020-11-22 12:42

    In C#, int is just an alias for System.Int32, string for System.String, double for System.Double etc...

    Personally I prefer int, string, double, etc. because they don't require a using System; statement :) A silly reason, I know...

提交回复
热议问题