More specifically, Runescape uses 32-bit Java. This is why Max Cash is 2,147,483,648 GP. Since experience is stored in tenths, the same number applies, however it is divided by 10 to make 214,748,364.8 be the highest value that can be stored for EXP using this 32-bit Java.
We probably won't be seeing 64-bit RS for years, if ever, however, assuming it does happen eventually, that means cash could be 9,223,372,036,854,775,808 GP (9,223,372,036.85 Bill = ~9,223,372 Trillion = ~9.233 Quintillion)
Let's put that in familiar terms:
Let's place Blue Partyhats @ 3Bil each, as that is right in the middle of their current price range. In order to possess over max cash worth of Blue Phats, you would need to own 3,074,457,346 of them. That's 3.0745 BILLION blue partyhats. I don't think anyone would ever actually succeed in reaching max cash should RS ever switch to 64-bit and allow the value system to change with it.