プログラミング言語・実行環境の「Java」には、整数を扱うための仕組みとして「int」と「Integer」の2つがある。“字面”だけで判断して「intもIntegerも同じであり、intはIntegerの略に過ぎない」と考えてはいけない。intとIntegerは名称は似ているものの ...
プログラミング言語・実行環境の「Java」で整数を扱う際、開発者は整数を扱う際に「int」と「Integer」という2つの仕組みを利用できる。両者は何がどのように違うのか。それを理解するために、まずは仕様上の違いを見ていこう。 intとIntegerの主な違いは ...
Community driven content discussing all aspects of software development from DevOps to design patterns. Primitive types represent the simplest, most direct way to represent data in code. Even the most ...