Java: what file extension should be used when recording objects using ObjectOutputStream

The API shows .tmpin my text book is used .dat, and I saw .ser
Is it important?

I am writing arraylist objects

+4
source share
3 answers

Extensions do not matter. You can also use your nicolas name as an extension. Extensions are designed to bind files to a specific program.

+3
source

. . , abc.txt . .txt, . , , .

+3

Many people use .ser. You can use .bin, everything you really like, except for those that indicate text: .txt, .doc, etc. This is binary, not text.

+3
source

Source: https://habr.com/ru/post/1540173/


All Articles