1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JAVA long型 適当にメモ

Last updated at Posted at 2016-07-05

▪️JAVA

long l = 5 + 2L;
		System.out.println(l);//結果7


異なる型で演算を行った場合、
大きな型に統一されてから演算


equalsと==の違い

・文字列(オブジェクト型)は、「equals」で比較する。
・数値(プリミティブ型)は、「==」で比較する。


1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?