String array is serializable and we can transmit it throug net-work or to files. So, do you think we also need to create a class Record You don't
need to, but you're
allowed to if you want.
what approach is better, using String[] or class Record to transmit data? I think that depends on whether you use a fat client or thin client design. Or as they're commonly but misleadingly called here, 2-tier or 3-tier. Read
this thread until you get bored, make a decision, and then don't worry about it. If you use the "2 tier" model, you wouldn't have a Record class in your networking code; you'd just use String[]. If you use "3-tier" you have the
option of using a Record class. In this case I think you could go either way - I don't think it matters much whether you use a new class or not. Perhaps others have strong opinions on this though.