Question

The API shows .tmp, my text book uses .dat and I've seen .ser
Does it matter?

I'm writing an arraylist of objects

Was it helpful?

Solution

Extensions doesn't matter. You could also use your name nicolas as extension too. Extensions are for OS to associate files to particular program.

OTHER TIPS

You can use any custom extensions. Extensions are meant to identify default program for the file. For example, abc.txt file should be opened with text programs. You can change extension of your video file to .txt and your computer will try to open it with text processing program. Hence, you can provide any extension unless you want to open file by particular program.

Many people use .ser. You could use .bin, anything you like really, except the ones that indicate text: .txt, .doc, etc. It's binary, not text.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top