Is there a way to send various objects using the TCP socket to the client? (and recieving)

for example, I may wish to send or recieve text, numbers or an arraylist and so on... is there a way to send objects as well as recieving them using the TCP Socket?