How memory is allocated to object in java. : I have pojo containing 300 variable in it. I want to hold list of this pojo. There will always 150 field will be null which are not used. 
Could you please let me will jvm will allocate memory to null fields. ? Will it be problematic for heap memory.  ?