I need no know if java can assign hex and a example, i need it for a nes emulator i am making:

I need to assign 1 MB or more

1 MB = 0x10000:0000