Exabyting interview question

How many types of memory in java?