How to Write/Read Multiple and Complex Objects to disk using Serialization in Java

preview_player
Показать описание
This tutorial will walk you through how to read and write java objects to/from disk through serialization. This set up is great to use for building serializable structures as well. I have used this approach to build a BTree and it would work well for other structures as well. This is generally a good approach when you have more data to store than you have RAM.

Starter Files:

Java APIs used:
Serializable interface:

RandomAccessFile:

ByteArrayOutputStream

ByteArrayInputStream

ObjectInputStream

ObjectOutputStream

Remember to subscribe. This video was a lot of work to make, so I would greatly appreciate your subscription. Also, be sure to follow me on Instagram, @aj_trantham
Рекомендации по теме
Комментарии
Автор

Dang! This makes it so easy! I’m using this for my Btree project ASAP! Thanks for making the video!

maxrichmond
Автор

Holy shit dude you should look into making some more code tutorials. I didn't even need to learn this right now and I still was engaged the whole time.

odintheprole
join shbcf.ru