I have entity objects with large no of uninitialized fields that are of datatype ranging from primitives to collection objects, etc. However the issue is that for most of the time not all the fields are required so they are left uninitialized.
A large no of such entity objects are created & destroyed upon each user request! So I am a bit worried about if this might be a concern in terms of memory or performance ?! The fields are not initialized, unless they are required. So I wanted to ask whether it really matters if I declare a lot of fields within my class but initialize/use just a few ones?