Skip to content

Instantly share code, notes, and snippets.

View hyunolike's full-sized avatar
✈️
Traveling in 🇲🇾🇯🇵

장현호 Hyunho Jang hyunolike

✈️
Traveling in 🇲🇾🇯🇵
View GitHub Profile
@singun
singun / java-puzzler-3.md
Last active January 24, 2024 00:18
Long 자료형 나눗셈

다음 소스코드의 실행 결과는 뭐가 나올까?

public class HelloWorld{
     public static void main(String []args){
        final long MICROS_PER_DAY = 24 * 60 * 60 * 1000 * 1000;
        final long MILLIS_PER_DAY = 24 * 60 * 60 * 1000;
        System.out.println(MICROS_PER_DAY / MILLIS_PER_DAY);
     }
}